From b2d9b2c1d26bde4108cf6366695e2316dd5002d4 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Wed, 26 Feb 2020 15:44:44 -0500 Subject: [PATCH] add new method to guide javadoc to show helps --- .../annotations/ClassWithDeprecatedMethod.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/core-java-modules/core-java-annotations/src/main/java/com/ossez/annotations/ClassWithDeprecatedMethod.java b/core-java-modules/core-java-annotations/src/main/java/com/ossez/annotations/ClassWithDeprecatedMethod.java index d365a3df8b..911ed3f36d 100644 --- a/core-java-modules/core-java-annotations/src/main/java/com/ossez/annotations/ClassWithDeprecatedMethod.java +++ b/core-java-modules/core-java-annotations/src/main/java/com/ossez/annotations/ClassWithDeprecatedMethod.java @@ -1,9 +1,23 @@ package com.ossez.annotations; + class ClassWithDeprecatedMethod { + /** + * Calculate period between versions + * * @deprecated + * * This method is no longer acceptable to compute time between versions. + * *

Use {@link ClassWithDeprecatedMethod#updatedMethod()} instead. + */ @Deprecated static void deprecatedMethod() { } + + /** + * Updated Method instead of deprecatedMethod. + */ + static void updatedMethod() { + } + }