Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2016-11-26 23:25:43 +0000
committerStephan Herrmann2016-11-26 23:25:43 +0000
commitb889cf00f2d36c22c848ae67ad0deb08734d7780 (patch)
tree1349f2e2818a8da6f87b263c39f325ce97a39861 /org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CastExpression.java
parent02944c35e14fd9fc46bb9f58ae0fbd467d91cbd6 (diff)
downloadorg.eclipse.objectteams-b889cf00f2d36c22c848ae67ad0deb08734d7780.tar.gz
org.eclipse.objectteams-b889cf00f2d36c22c848ae67ad0deb08734d7780.tar.xz
org.eclipse.objectteams-b889cf00f2d36c22c848ae67ad0deb08734d7780.zip
update jdt.core to I20161124-2000
Diffstat (limited to 'org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CastExpression.java')
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CastExpression.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CastExpression.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CastExpression.java
index 13f06d9e1..bf50c2a28 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CastExpression.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CastExpression.java
@@ -360,6 +360,9 @@ public static void checkNeedForArgumentCasts(BlockScope scope, int operator, int
}
public boolean checkNPE(BlockScope scope, FlowContext flowContext, FlowInfo flowInfo, int ttlForFieldCheck) {
+ if((this.resolvedType.tagBits & TagBits.AnnotationNonNull) != 0) {
+ return true;
+ }
checkNPEbyUnboxing(scope, flowContext, flowInfo);
return this.expression.checkNPE(scope, flowContext, flowInfo, ttlForFieldCheck);
}

Back to the top