Mark the classes and methods as deprecated in the javadoc
Project: http://git-wip-us.apache.org/repos/asf/incubator-reef/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-reef/commit/983fda5f Tree: http://git-wip-us.apache.org/repos/asf/incubator-reef/tree/983fda5f Diff: http://git-wip-us.apache.org/repos/asf/incubator-reef/diff/983fda5f Branch: refs/heads/REEF-395 Commit: 983fda5f6804bf6eecba2936f3fc8a02bfbef395 Parents: 5460906 Author: Yunseong Lee <[email protected]> Authored: Tue Jun 23 20:40:59 2015 +0900 Committer: Yunseong Lee <[email protected]> Committed: Tue Jun 23 20:40:59 2015 +0900 ---------------------------------------------------------------------- .../implementation/protobuf/ProtocolBufferClassHierarchy.java | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/983fda5f/lang/java/reef-tang/tang/src/main/java/org/apache/reef/tang/implementation/protobuf/ProtocolBufferClassHierarchy.java ---------------------------------------------------------------------- diff --git a/lang/java/reef-tang/tang/src/main/java/org/apache/reef/tang/implementation/protobuf/ProtocolBufferClassHierarchy.java b/lang/java/reef-tang/tang/src/main/java/org/apache/reef/tang/implementation/protobuf/ProtocolBufferClassHierarchy.java index 8429c4a..e21eb4e 100644 --- a/lang/java/reef-tang/tang/src/main/java/org/apache/reef/tang/implementation/protobuf/ProtocolBufferClassHierarchy.java +++ b/lang/java/reef-tang/tang/src/main/java/org/apache/reef/tang/implementation/protobuf/ProtocolBufferClassHierarchy.java @@ -31,6 +31,9 @@ import java.util.Arrays; import java.util.HashMap; import java.util.List; +/** + * @deprecated in 0.12. Use AvroClassHierarchy instead + */ @Deprecated public class ProtocolBufferClassHierarchy implements ClassHierarchy { @@ -48,6 +51,7 @@ public class ProtocolBufferClassHierarchy implements ClassHierarchy { * object is immutable, and does not make use of reflection to fill in any * missing values. This allows it to represent non-native classes as well * as snapshots of Java class hierarchies. + * @deprecated in 0.12. Use AvroClassHierarchy instead */ public ProtocolBufferClassHierarchy(ClassHierarchyProto.Node root) { namespace = new PackageNodeImpl(); @@ -198,6 +202,7 @@ public class ProtocolBufferClassHierarchy implements ClassHierarchy { * * @param classHierarchy * @return + * @deprecated in 0.12. Use AvroClassHierarchySerializer instead */ public static ClassHierarchyProto.Node serialize(ClassHierarchy classHierarchy) { return serializeNode(classHierarchy.getNamespace()); @@ -209,6 +214,7 @@ public class ProtocolBufferClassHierarchy implements ClassHierarchy { * @param file * @param classHierarchy * @throws IOException + * @deprecated in 0.12. Use AvroClassHierarchySerializer instead */ public static void serialize(final File file, final ClassHierarchy classHierarchy) throws IOException { final ClassHierarchyProto.Node node = serializeNode(classHierarchy.getNamespace()); @@ -225,6 +231,7 @@ public class ProtocolBufferClassHierarchy implements ClassHierarchy { * @param file * @return * @throws IOException + * @deprecated in 0.12. Use AvroClassHierarchySerializer instead */ public static ClassHierarchy deserialize(final File file) throws IOException { try (final InputStream stream = new FileInputStream(file)) {
