diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java index f139afc00..0cbb83d6e 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java @@ -103,7 +103,7 @@ public int compare(final DirCacheTree o1, final DirCacheTree o2) { private DirCacheTree parent; /** Name of this tree within its parent. */ - private byte[] encodedName; + byte[] encodedName; /** Number of {@link DirCacheEntry} records that belong to this tree. */ private int entrySpan; diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdOwnerMap.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdOwnerMap.java index c9b483f7f..95b16d917 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdOwnerMap.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdOwnerMap.java @@ -83,16 +83,16 @@ public class ObjectIdOwnerMap implements * The low {@link #bits} of the SHA-1 are used to select the segment from * this directory. Each segment is constant sized at 2^SEGMENT_BITS. */ - private V[][] directory; + V[][] directory; /** Total number of objects in this map. */ - private int size; + int size; /** The map doubles in capacity when {@link #size} reaches this target. */ private int grow; /** Number of low bits used to form the index into {@link #directory}. */ - private int bits; + int bits; /** Low bit mask to index into {@link #directory}, {@code 2^bits-1}. */ private int mask; diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java index 69972dc01..48aa109e7 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java @@ -63,13 +63,13 @@ public class ObjectIdSubclassMap implements Iterable { private static final int INITIAL_TABLE_SIZE = 2048; - private int size; + int size; private int grow; private int mask; - private V[] table; + V[] table; /** Create an empty map. */ public ObjectIdSubclassMap() { diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/BlockList.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/BlockList.java index 0454e7e0d..9d0ad736f 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/BlockList.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/BlockList.java @@ -74,9 +74,9 @@ public class BlockList extends AbstractList { private static final int BLOCK_MASK = BLOCK_SIZE - 1; - private T[][] directory; + T[][] directory; - private int size; + int size; private int tailDirIdx; @@ -282,11 +282,11 @@ public Iterator iterator() { return new MyIterator(); } - private static final int toDirectoryIndex(int index) { + static final int toDirectoryIndex(int index) { return index >>> BLOCK_BITS; } - private static final int toBlockIndex(int index) { + static final int toBlockIndex(int index) { return index & BLOCK_MASK; } diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java index e5219b2a9..d860d8ac7 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java @@ -110,7 +110,7 @@ public FS detect(Boolean cygwinUsed) { } } - private final static Logger LOG = LoggerFactory.getLogger(FS.class); + final static Logger LOG = LoggerFactory.getLogger(FS.class); /** The auto-detected implementation selected for this operating system and JRE. */ public static final FS DETECTED = detect(); @@ -490,9 +490,9 @@ private static class GobblerThread extends Thread { private final String desc; private final String dir; private final boolean debug = LOG.isDebugEnabled(); - private final AtomicBoolean fail = new AtomicBoolean(); + final AtomicBoolean fail = new AtomicBoolean(); - private GobblerThread(Process p, String[] command, File dir) { + GobblerThread(Process p, String[] command, File dir) { this.p = p; if (debug) { this.desc = Arrays.asList(command).toString(); diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/RefList.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/RefList.java index 4695111de..0853e9536 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/RefList.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/RefList.java @@ -80,9 +80,9 @@ public static RefList emptyList() { return (RefList) EMPTY; } - private final Ref[] list; + final Ref[] list; - private final int cnt; + final int cnt; RefList(Ref[] list, int cnt) { this.list = list; diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/RefMap.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/RefMap.java index 5cc7e92c5..c72727b54 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/RefMap.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/RefMap.java @@ -78,10 +78,10 @@ public class RefMap extends AbstractMap { * All reference names in this map must start with this prefix. If the * prefix is not the empty string, it must end with a '/'. */ - private final String prefix; + final String prefix; /** Immutable collection of the packed references at construction time. */ - private RefList packed; + RefList packed; /** * Immutable collection of the loose references at construction time. @@ -91,7 +91,7 @@ public class RefMap extends AbstractMap { * are typically unresolved, so they only tell us who their target is, but * not the current value of the target. */ - private RefList loose; + RefList loose; /** * Immutable collection of resolved symbolic references. @@ -101,11 +101,11 @@ public class RefMap extends AbstractMap { * from {@link #loose}. Every entry in this list must be matched by an entry * in {@code loose}, otherwise it might be omitted by the map. */ - private RefList resolved; + RefList resolved; - private int size; + int size; - private boolean sizeIsValid; + boolean sizeIsValid; private Set> entrySet; @@ -280,7 +280,7 @@ private String toRefName(String name) { return name; } - private String toMapKey(Ref ref) { + String toMapKey(Ref ref) { String name = ref.getName(); if (0 < prefix.length()) name = name.substring(prefix.length()); diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/TemporaryBuffer.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/TemporaryBuffer.java index e2738c03f..ca47f50fd 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/TemporaryBuffer.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/TemporaryBuffer.java @@ -69,7 +69,7 @@ public abstract class TemporaryBuffer extends OutputStream { protected static final int DEFAULT_IN_CORE_LIMIT = 1024 * 1024; /** Chain of data, if we are still completely in-core; otherwise null. */ - private ArrayList blocks; + ArrayList blocks; /** * Maximum number of bytes we will permit storing in memory.