Skip to content

Commit

Permalink
[sint] review feedback: drop unneeded null-check
Browse files Browse the repository at this point in the history
  • Loading branch information
guusdk committed Apr 9, 2024
1 parent e488c26 commit 1e2ebd3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ private static String getSpecificationReference(Method method) {
String line = spec.document().trim();

final SmackIntegrationTest test = method.getAnnotation(SmackIntegrationTest.class);
if (test.section() != null && !test.section().isBlank()) {
if (!test.section().isBlank()) {
line += " section " + test.section().trim();
}
if (test.quote() != null && !test.quote().isBlank()) {
if (!test.quote().isBlank()) {
line += ":\t\"" + test.quote().trim() + "\"";
}
assert !line.isBlank();
Expand Down

0 comments on commit 1e2ebd3

Please sign in to comment.