Skip to content

Commit

Permalink
Resolve some SonarCloud complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Aug 12, 2024
1 parent e1e1c88 commit af624dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ static final class OptionalOrOtherOptional<T> {
@SuppressWarnings({
"LexicographicalAnnotationAttributeListing" /* `key-*` entry must remain last. */,
"NestedOptionals" /* This violation will be rewritten. */,
"OptionalOrElse" /* Here `optional2` is a stand-in for expressions that may require computation. */,
"OptionalOrElse" /* Parameters represent expressions that may require computation. */,
"key-to-resolve-AnnotationUseStyle-and-TrailingComment-check-conflict"
})
Optional<T> before(Optional<T> optional1, Optional<T> optional2) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ private static boolean matches(ExpressionTree expressionTree) {
return matches(unary.getExpression());
}

if (ASTHelpers.constValue(expressionTree) != null) {
return false;
}

return true;
return ASTHelpers.constValue(expressionTree) == null;
}
}

0 comments on commit af624dc

Please sign in to comment.