From 13bb1834dd1f821acb28f4a226ae284250003dcf Mon Sep 17 00:00:00 2001 From: Dave Borowitz Date: Thu, 8 Oct 2015 10:11:55 -0400 Subject: [PATCH] PatchSet: Add @Deprecated annotation to deprecated method This exposes the deprecation to tools that do not read the javadoc, and fixes an Error Prone problem[1]. [1] http://errorprone.info/bugpattern/DepAnn Change-Id: I46effb8bb9a633705640b2629a0df6c4aa81df91 --- .../main/java/com/google/gerrit/reviewdb/client/PatchSet.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/client/PatchSet.java b/gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/client/PatchSet.java index b14a06f238..7fc140cb13 100644 --- a/gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/client/PatchSet.java +++ b/gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/client/PatchSet.java @@ -30,10 +30,12 @@ public final class PatchSet { return Id.fromRef(name) != null; } - /** Is the reference name a change reference? + /** + * Is the reference name a change reference? * * @deprecated use isChangeRef instead. **/ + @Deprecated public static boolean isRef(String name) { return isChangeRef(name); }