Skip to content

Commit

Permalink
Resolve some SonarCloud complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 authored and rickie committed Sep 3, 2024
1 parent 8b22398 commit 69d9d62
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 69d9d62

Please sign in to comment.