From 04c8eff282ca05903b74585c5bfba390df72e063 Mon Sep 17 00:00:00 2001 From: VGalaxies Date: Sat, 16 Mar 2024 21:26:02 +0800 Subject: [PATCH] add value for Useless annotation --- .../main/java/org/apache/hugegraph/pd/common/Useless.java | 5 ++++- .../java/org/apache/hugegraph/pd/PartitionCacheTest.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hugegraph-pd/hg-pd-common/src/main/java/org/apache/hugegraph/pd/common/Useless.java b/hugegraph-pd/hg-pd-common/src/main/java/org/apache/hugegraph/pd/common/Useless.java index b4bd1d4af6..ec000f7503 100644 --- a/hugegraph-pd/hg-pd-common/src/main/java/org/apache/hugegraph/pd/common/Useless.java +++ b/hugegraph-pd/hg-pd-common/src/main/java/org/apache/hugegraph/pd/common/Useless.java @@ -28,4 +28,7 @@ */ @Target({ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE}) @Retention(RetentionPolicy.SOURCE) -public @interface Useless {} +public @interface Useless { + + String value() default "Remove or handle it later"; +} diff --git a/hugegraph-pd/hg-pd-test/src/main/java/org/apache/hugegraph/pd/PartitionCacheTest.java b/hugegraph-pd/hg-pd-test/src/main/java/org/apache/hugegraph/pd/PartitionCacheTest.java index 1acfd2eaf2..f01ba966d2 100644 --- a/hugegraph-pd/hg-pd-test/src/main/java/org/apache/hugegraph/pd/PartitionCacheTest.java +++ b/hugegraph-pd/hg-pd-test/src/main/java/org/apache/hugegraph/pd/PartitionCacheTest.java @@ -31,7 +31,7 @@ import com.google.common.collect.RangeMap; import com.google.common.collect.TreeRangeMap; -@Useless // can be merged to org.apache.hugegraph.pd.common.PartitionCacheTest +@Useless("can be merged to org.apache.hugegraph.pd.common.PartitionCacheTest") public class PartitionCacheTest { // @Test