summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2021-05-11 23:34:30 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2021-05-11 23:34:30 +0200
commitadc1fc645f9643c5bda6a8ae3c602f6d42aaa70b (patch)
tree80b30e7e49a0f661df1f9b8739577a1ae7f534ce /org.eclipse.jgit/src
parentf2e5bace4841758927d47db7d20e4a6f7353ce57 (diff)
parent26dee2d984b6173fe6b85cdbe81715561c500c3d (diff)
downloadjgit-adc1fc645f9643c5bda6a8ae3c602f6d42aaa70b.tar.gz
jgit-adc1fc645f9643c5bda6a8ae3c602f6d42aaa70b.zip
Merge branch 'stable-5.7' into stable-5.8
* stable-5.7: Remove texts which were added by mistake in 00386272 Fix formatting which was broken in 00386272 Change-Id: I7ed3f47cb46e6c1bf483702c8925a24e88658e47
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java4
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/LockFile.java27
2 files changed, 13 insertions, 18 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
index 748b1b0d52..ef0d477af1 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
@@ -440,10 +440,6 @@ public class JGitText extends TranslationBundle {
/***/ public String lockOnNotHeld;
/***/ public String lockStreamClosed;
/***/ public String lockStreamMultiple;
- /***/ public String logInconsistentFiletimeDiff;
- /***/ public String logLargerFiletimeDiff;
- /***/ public String logSmallerFiletime;
- /***/ public String logXDGConfigHomeInvalid;
/***/ public String maxCountMustBeNonNegative;
/***/ public String mergeConflictOnNonNoteEntries;
/***/ public String mergeConflictOnNotes;
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/LockFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/LockFile.java
index f57581a299..78262e9773 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/LockFile.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/LockFile.java
@@ -218,14 +218,14 @@ public class LockFile {
int r;
while ((r = fis.read(buf)) >= 0) {
out.write(buf, 0, r);
+ }
}
- }
- } catch (FileNotFoundException fnfe) {
- if (ref.exists()) {
- throw fnfe;
- }
- // Don't worry about a file that doesn't exist yet, it
- // conceptually has no current content to copy.
+ } catch (FileNotFoundException fnfe) {
+ if (ref.exists()) {
+ throw fnfe;
+ }
+ // Don't worry about a file that doesn't exist yet, it
+ // conceptually has no current content to copy.
}
} catch (IOException | RuntimeException | Error ioe) {
unlock();
@@ -322,17 +322,16 @@ public class LockFile {
if (out == null) {
os = getStream();
if (fsync) {
- out = Channels.newOutputStream(os.getChannel());
+ out = Channels.newOutputStream(os.getChannel());
} else {
- out = os;
+ out = os;
}
}
return out;
}
@Override
- public void write(byte[] b, int o, int n)
- throws IOException {
+ public void write(byte[] b, int o, int n) throws IOException {
get().write(b, o, n);
}
@@ -359,10 +358,10 @@ public class LockFile {
}
if (out != null) {
if (fsync) {
- os.getChannel().force(true);
+ os.getChannel().force(true);
}
- out.close();
- os = null;
+ out.close();
+ os = null;
}
written = true;
} catch (IOException | RuntimeException | Error ioe) {