| commit | 982be5db14f98765486e3f3a59ce4e44b881f296 | [log] [tgz] |
|---|---|---|
| author | Christian Halstrick <christian.halstrick@sap.com> | Thu Aug 16 17:44:28 2018 +0200 |
| committer | Matthias Sohn <matthias.sohn@sap.com> | Thu Aug 16 14:30:46 2018 -0500 |
| tree | 09cd28dc557d8d62011d2a08bb902cb309033da3 | |
| parent | 09753591fae875cee71eb5674a0103844351e508 [diff] |
Fix wrong warning message in case of lock failures Bug: 537969 Change-Id: I0854bbbe7393abaca36640d429886c30d95d5bf1
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java index a2923db..3abf4dc 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
@@ -389,7 +389,7 @@ public boolean createNewFile(File lock) throws IOException { Integer nlink = (Integer) (Files.getAttribute(lockPath, "unix:nlink")); //$NON-NLS-1$ if (nlink != 2) { - LOG.warn("nlink of link to lock file {0} was not 2 but {1}", //$NON-NLS-1$ + LOG.warn("nlink of link to lock file {} was not 2 but {}", //$NON-NLS-1$ lock.getPath(), nlink); return false; }