diff options
author | Stephan Herrmann | 2016-11-26 23:25:43 +0000 |
---|---|---|
committer | Stephan Herrmann | 2016-11-26 23:25:43 +0000 |
commit | b889cf00f2d36c22c848ae67ad0deb08734d7780 (patch) | |
tree | 1349f2e2818a8da6f87b263c39f325ce97a39861 /org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CastExpression.java | |
parent | 02944c35e14fd9fc46bb9f58ae0fbd467d91cbd6 (diff) | |
download | org.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.java | 3 |
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); } |