Skip to content

Commit

Permalink
Merge pull request #2186 from mnriem/issue-2182
Browse files Browse the repository at this point in the history
SpotBugs analysis: Holder.toString() may return null #2182
  • Loading branch information
arjantijms authored Sep 22, 2023
2 parents 6c033fe + 25fd05d commit 24faaf6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected int evaluate() {
@Override
public String toString() {
final E obj = get();
return obj != null ? "{" + obj + "}" : null;
return obj != null ? "{" + obj + "}" : "{}";
}

public static abstract class LazyHolder<E> extends Holder<E> {
Expand Down

0 comments on commit 24faaf6

Please sign in to comment.