aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-07-26 15:53:29 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2019-07-26 15:53:29 +0200
commitd17efe880d0bb16c966dcc6fb55a98f46afc4508 (patch)
treec4f169a2d593056c4d719b47642da07f028273c6 /org.eclipse.jgit/src
parent130aa312620cb016dbe8d7ad71bcf38512eb85fe (diff)
downloadjgit-d17efe880d0bb16c966dcc6fb55a98f46afc4508.tar.gz
jgit-d17efe880d0bb16c966dcc6fb55a98f46afc4508.zip
Fix FileAttributeCache.toString()
We should not list the complete cache but only show the cache entry at hand. Change-Id: I22be2a4dcbf0145155e23f2389bfcf5662cf23a6 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java9
1 files changed, 3 insertions, 6 deletions
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 e33c4bff96..081776f081 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
@@ -86,7 +86,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
-import java.util.stream.Collectors;
import org.eclipse.jgit.annotations.NonNull;
import org.eclipse.jgit.annotations.Nullable;
@@ -438,12 +437,10 @@ public abstract class FS {
@SuppressWarnings("nls")
@Override
public String toString() {
- return "FileStoreAttributeCache[" + attributeCache.keySet()
- .stream()
- .map(key -> "FileStore[" + key + "]: fsTimestampResolution="
- + attributeCache.get(key).getFsTimestampResolution())
- .collect(Collectors.joining(",\n")) + "]";
+ return "FileStoreAttributeCache [fsTimestampResolution="
+ + fsTimestampResolution + "]";
}
+
}
/** The auto-detected implementation selected for this operating system and JRE. */