From 62e3482ec3ff6286d71be3f1c9829a2e3c0cbb8f Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Mon, 30 May 2016 10:43:10 +0000
Subject: [PATCH] OPENDJ-2987 Annotate classes to be removed when SDK schema is fully used

---
 opendj-server-legacy/src/main/java/org/opends/server/util/ActivateOnceSDKSchemaIsUsed.java |    3 ++-
 opendj-server-legacy/src/main/java/org/opends/server/types/CommonSchemaElements.java       |    2 ++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/types/CommonSchemaElements.java b/opendj-server-legacy/src/main/java/org/opends/server/types/CommonSchemaElements.java
index 0aaefc6..1e7a334 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/types/CommonSchemaElements.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/types/CommonSchemaElements.java
@@ -27,6 +27,7 @@
 import org.forgerock.i18n.LocalizableMessage;
 import org.forgerock.opendj.ldap.ResultCode;
 import org.forgerock.opendj.ldap.schema.SchemaElement;
+import org.opends.server.util.RemoveOnceSDKSchemaIsUsed;
 
 import static org.forgerock.util.Reject.*;
 import static org.opends.messages.SchemaMessages.*;
@@ -58,6 +59,7 @@
  * associated schema file to be edited so that an element created over
  * protocol may be associated with a particular schema file.
  */
+@RemoveOnceSDKSchemaIsUsed
 @org.opends.server.types.PublicAPI(
      stability=org.opends.server.types.StabilityLevel.VOLATILE,
      mayInstantiate=false,
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/util/ActivateOnceSDKSchemaIsUsed.java b/opendj-server-legacy/src/main/java/org/opends/server/util/ActivateOnceSDKSchemaIsUsed.java
index fa977e6..a85b2a4 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/util/ActivateOnceSDKSchemaIsUsed.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/util/ActivateOnceSDKSchemaIsUsed.java
@@ -11,7 +11,7 @@
  * Header, with the fields enclosed by brackets [] replaced by your own identifying
  * information: "Portions Copyright [year] [name of copyright owner]".
  *
- * Copyright 2015 ForgeRock AS.
+ * Copyright 2015-2016 ForgeRock AS.
  */
 package org.opends.server.util;
 
@@ -23,6 +23,7 @@
  * SDK schema is used in place of legacy server schema.
  */
 @Retention(RetentionPolicy.SOURCE)
+@RemoveOnceSDKSchemaIsUsed
 public @interface ActivateOnceSDKSchemaIsUsed
 {
   /** Optional comment on activation. */

--
Gitblit v1.10.0