Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2012-06-23 16:02:51 +0000
committerStephan Herrmann2012-06-23 16:02:51 +0000
commitcf5acb260b7b66bd97610b1b16fc29bedc331bfb (patch)
tree04872df4e028cfd18b062f93ec67a032b9b9458c
parent94dc6a3bccb678e35189c2f6a8ff4c40572de345 (diff)
downloadeclipse.jdt.core-cf5acb260b7b66bd97610b1b16fc29bedc331bfb.tar.gz
eclipse.jdt.core-cf5acb260b7b66bd97610b1b16fc29bedc331bfb.tar.xz
eclipse.jdt.core-cf5acb260b7b66bd97610b1b16fc29bedc331bfb.zip
Cosmetic improvement: order checks by relevance.
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/FlowContext.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/FlowContext.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/FlowContext.java
index 165e81b90d..50dc5cedca 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/FlowContext.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/FlowContext.java
@@ -131,8 +131,8 @@ public void addNullCheckedFieldReferences(Reference reference, int timeToLive) {
}
public void expireNullCheckedFieldInfo() {
- if (--this.timeToLiveForNullCheckInfo == 0) {
- if (this.nullCheckedFieldReferences != null) {
+ if (this.nullCheckedFieldReferences != null) {
+ if (--this.timeToLiveForNullCheckInfo == 0) {
this.nullCheckedFieldReferences[0] = null; // lazily wipe
}
}

Back to the top