aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/api
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-09-16 22:09:11 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-09-22 23:31:27 +0200
commit4cf246c9ab66cd815e76fe20c32502e5e5bb66f1 (patch)
treebfeb4184ceaed2b91adb276b0bbac73e0d0cd511 /org.eclipse.jgit/src/org/eclipse/jgit/api
parentd65170603f50db4bdafa9e926e56f0b2abab6f6e (diff)
downloadjgit-4cf246c9ab66cd815e76fe20c32502e5e5bb66f1.tar.gz
jgit-4cf246c9ab66cd815e76fe20c32502e5e5bb66f1.zip
[errorprone] Remove unnecessary parentheses
see https://errorprone.info/bugpattern/UnnecessaryParentheses Change-Id: Id08cf0e05b3d35f139fc34e0aa83882555a8a81a
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/api')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java
index 3b3baf5a12..483b9602da 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java
@@ -614,7 +614,7 @@ public class CommitCommand extends GitCommand<RevCommit> {
// specified the commit should not be empty. This behaviour differs
// from native git but can only be adapted in the next release.
// TODO(ch) align the defaults with native git
- allowEmpty = (only.isEmpty()) ? Boolean.TRUE : Boolean.FALSE;
+ allowEmpty = only.isEmpty() ? Boolean.TRUE : Boolean.FALSE;
// when doing a merge commit parse MERGE_HEAD and MERGE_MSG files
if (state == RepositoryState.MERGING_RESOLVED