Browse Source

Add missing @Deprecated to deprecated fields and methods

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
stable-3.4
Shawn Pearce 11 years ago
parent
commit
fc8ff50e1a
  1. 1
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java
  2. 1
      org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java

1
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java

@ -103,6 +103,7 @@ public abstract class TextBuiltin {
* *
* @deprecated Use outw instead * @deprecated Use outw instead
*/ */
@Deprecated
protected PrintWriter out; protected PrintWriter out;
/** Git repository the command was invoked within. */ /** Git repository the command was invoked within. */

1
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java

@ -810,6 +810,7 @@ public abstract class WorkingTreeIterator extends AbstractTreeIterator {
* @return true if content is most likely different. * @return true if content is most likely different.
* @deprecated Use {@link #isModified(DirCacheEntry, boolean, ObjectReader)} * @deprecated Use {@link #isModified(DirCacheEntry, boolean, ObjectReader)}
*/ */
@Deprecated
public boolean isModified(DirCacheEntry entry, boolean forceContentCheck) { public boolean isModified(DirCacheEntry entry, boolean forceContentCheck) {
try { try {
return isModified(entry, forceContentCheck, null); return isModified(entry, forceContentCheck, null);

Loading…
Cancel
Save