diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-11-08 23:36:54 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-11-09 00:08:42 +0100 |
commit | 3ca786d76756a61e655a1c00c67ebb3e01e50151 (patch) | |
tree | 02003042f2a55a00a270c907d1abb97b6fdf01d4 | |
parent | 50d6701334fa2da5edd1157b1ef2a2d64449ef95 (diff) | |
download | jgit-3ca786d76756a61e655a1c00c67ebb3e01e50151.tar.gz jgit-3ca786d76756a61e655a1c00c67ebb3e01e50151.zip |
errorprone: remove unnecessary parentheses
See https://errorprone.info/bugpattern/UnnecessaryParentheses
Change-Id: I204987469d478c9cc887ac66c9ffc84c9977c400
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackObjectSizeIndexLoader.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackObjectSizeIndexLoader.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackObjectSizeIndexLoader.java index 930e711097..805f24f5ec 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackObjectSizeIndexLoader.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackObjectSizeIndexLoader.java @@ -35,15 +35,14 @@ public class PackObjectSizeIndexLoader { byte[] header = in.readNBytes(4); if (!Arrays.equals(header, PackObjectSizeIndexWriter.HEADER)) { throw new IOException(MessageFormat.format( - JGitText.get().unreadableObjectSizeIndex, - header.length, Arrays.toString(header))); + JGitText.get().unreadableObjectSizeIndex, header.length, + Arrays.toString(header))); } int version = in.readNBytes(1)[0]; if (version != 1) { - throw new IOException((MessageFormat.format( - JGitText.get().unsupportedObjectSizeIndexVersion, - version))); + throw new IOException(MessageFormat.format( + JGitText.get().unsupportedObjectSizeIndexVersion, version)); } return PackObjectSizeIndexV1.parse(in); } |