by
0
4
529
0
Top 5% !
Popular
Specified
OpenSource
Popularity: 1227054th place
Created
Modified May 8, 2017
No tags for this snippet yet.
Languagejava
LicenseMIT_X11

Potential NPE

Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1793429/Potential-NPE?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
//@Override //public boolean isSatisfiedBy(T candidate) { //return left.isSatisfiedBy(candidate) && right.isSatisfiedBy(candidate); //потенциальный NPE //Nonnull as solvation? public class AndSpecification<T> extends CompositeSpecification<T> { @Nonnull private final Specification<T> left; @Nonnull private final Specification<T> right; public AndSpecification(@Nonnull Specification<T> left, @Nonnull Specification<T> right) { this.left = left; this.right = right; } @Override public boolean isSatisfiedBy(T candidate) { return left.isSatisfiedBy(candidate) && right.isSatisfiedBy(candidate); } }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus