]> source.dussan.org Git - jgit.git/commitdiff
Add missing @Deprecated to deprecated fields and methods 03/22803/1
authorShawn Pearce <spearce@spearce.org>
Mon, 3 Mar 2014 18:37:06 +0000 (10:37 -0800)
committerShawn Pearce <spearce@spearce.org>
Mon, 3 Mar 2014 18:37:06 +0000 (10:37 -0800)
Java spec requires the @Deprecated annotation on any deprecated
field or method. Add the missing annotation to fields and methods
already declared deprecated in the javadoc.

Change-Id: Ic0ef24b43cfd99ac947e771ef5a28e493c304274

org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java

index dc081439dfbd7294018df6cadb6b591c72cd8db5..7f7ef8d4d1531b7d0ebf5ecd0f0baabdeaeea886 100644 (file)
@@ -103,6 +103,7 @@ public abstract class TextBuiltin {
         *
         * @deprecated Use outw instead
         */
+       @Deprecated
        protected PrintWriter out;
 
        /** Git repository the command was invoked within. */
index 633865ed4d38779673a4f268bf51def43bd39f50..a50adf91f49ce82f3f85f36480d02449f3c7dcbd 100644 (file)
@@ -810,6 +810,7 @@ public abstract class WorkingTreeIterator extends AbstractTreeIterator {
         * @return true if content is most likely different.
         * @deprecated Use {@link #isModified(DirCacheEntry, boolean, ObjectReader)}
         */
+       @Deprecated
        public boolean isModified(DirCacheEntry entry, boolean forceContentCheck) {
                try {
                        return isModified(entry, forceContentCheck, null);