aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2014-02-28 11:48:20 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2014-03-05 19:01:38 -0500
commiteffc2f34b8fe282ac26f7eb3be028bdfab651ee3 (patch)
tree9545b6b6cea1a8197db7d4387b082271214eed71 /org.eclipse.jgit
parenta482fc72735fd9d8de9d7ced87b75b4ff3bf3e07 (diff)
downloadjgit-effc2f34b8fe282ac26f7eb3be028bdfab651ee3.tar.gz
jgit-effc2f34b8fe282ac26f7eb3be028bdfab651ee3.zip
[findBugs] Declare some private methods of WorkingTreeIterator static
Change-Id: I09cd39c367f408b5a963ff004f235f558990f338 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java
index 70f8327b1f..964869bb87 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java
@@ -401,11 +401,11 @@ public abstract class WorkingTreeIterator extends AbstractTreeIterator {
}
}
- private boolean isBinary(byte[] content, int sz) {
+ private static boolean isBinary(byte[] content, int sz) {
return RawText.isBinary(content, sz);
}
- private boolean isBinary(Entry entry) throws IOException {
+ private static boolean isBinary(Entry entry) throws IOException {
InputStream in = entry.openInputStream();
try {
return RawText.isBinary(in);
@@ -414,7 +414,7 @@ public abstract class WorkingTreeIterator extends AbstractTreeIterator {
}
}
- private ByteBuffer filterClean(byte[] src, int n)
+ private static ByteBuffer filterClean(byte[] src, int n)
throws IOException {
InputStream in = new ByteArrayInputStream(src);
try {
@@ -424,7 +424,7 @@ public abstract class WorkingTreeIterator extends AbstractTreeIterator {
}
}
- private InputStream filterClean(InputStream in) {
+ private static InputStream filterClean(InputStream in) {
return new EolCanonicalizingInputStream(in, true);
}
@@ -980,7 +980,7 @@ public abstract class WorkingTreeIterator extends AbstractTreeIterator {
return FS.detect().normalize(RawParseUtils.decode(content));
}
- private long computeLength(InputStream in) throws IOException {
+ private static long computeLength(InputStream in) throws IOException {
// Since we only care about the length, use skip. The stream
// may be able to more efficiently wade through its data.
//
@@ -1183,7 +1183,7 @@ public abstract class WorkingTreeIterator extends AbstractTreeIterator {
return r.getRules().isEmpty() ? null : r;
}
- private void loadRulesFromFile(IgnoreNode r, File exclude)
+ private static void loadRulesFromFile(IgnoreNode r, File exclude)
throws FileNotFoundException, IOException {
if (FS.DETECTED.exists(exclude)) {
FileInputStream in = new FileInputStream(exclude);