]> source.dussan.org Git - jgit.git/commitdiff
Expose OBJ_ANY in ObjectReader 17/1217/3
authorShawn O. Pearce <spearce@spearce.org>
Fri, 30 Jul 2010 23:43:34 +0000 (16:43 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 21 Aug 2010 00:41:27 +0000 (17:41 -0700)
Storage implementations or application code using an ObjectReader
may want to access this constant without being inside of a subclass
of the reader.

Change-Id: I6c871a03d5846b9bb899de4d14a265e8b204d8e0
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java

index ae70638672cd6916f54706041584cc3e962c5f56..7bdc5bce4546a552243a88da3e09d63735a839a1 100644 (file)
@@ -57,7 +57,7 @@ import org.eclipse.jgit.storage.pack.ObjectReuseAsIs;
  */
 public abstract class ObjectReader {
        /** Type hint indicating the caller doesn't know the type. */
-       protected static final int OBJ_ANY = -1;
+       public static final int OBJ_ANY = -1;
 
        /**
         * Construct a new reader from the same data.