Skip to content

Commit

Permalink
Fix Java compiler warning (#171)
Browse files Browse the repository at this point in the history
Co-authored-by: Basil Crow <[email protected]>
  • Loading branch information
chcg and basil authored Oct 24, 2024
1 parent 7c59f48 commit 5786a59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public ListBoxModel doFillValueItems(
} else if (o instanceof NamedEntity) {
try {
Method m = o.getClass().getMethod("getId");
Object id = (Long) m.invoke(o, null);
Object id = (Long) m.invoke(o);

Check warning on line 169 in src/main/java/org/jenkinsci/plugins/JiraTestResultReporter/config/SelectableArrayFields.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 169 is not covered by tests
if (id != null) {
listBox.add(((NamedEntity) o).getName(), id.toString());
}
Expand Down

0 comments on commit 5786a59

Please sign in to comment.