From 4cf246c9ab66cd815e76fe20c32502e5e5bb66f1 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sat, 16 Sep 2023 22:09:11 +0200 Subject: [errorprone] Remove unnecessary parentheses see https://errorprone.info/bugpattern/UnnecessaryParentheses Change-Id: Id08cf0e05b3d35f139fc34e0aa83882555a8a81a --- org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/api') 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 { // 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 -- cgit v1.2.3