Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Kinzler2011-02-08 05:20:50 -0500
committerMathias Kinzler2011-02-08 05:20:50 -0500
commit6b03dd890a5c347591cef259298d62297cfda700 (patch)
tree93dace20bb292ba88a33c552a68bc90b903a4d9e
parent93e541a9fcacd91f3ea80f52f0f200d0b011cbdb (diff)
downloadegit-6b03dd890a5c347591cef259298d62297cfda700.tar.gz
egit-6b03dd890a5c347591cef259298d62297cfda700.tar.xz
egit-6b03dd890a5c347591cef259298d62297cfda700.zip
Get rid of "Redundant Null Check" compiler warning
Change-Id: Icdebc1529c6c99c88c2c5b7ba4c936cc004288a4 Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceHelper.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceHelper.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceHelper.java
index b6d9f3171..22b773418 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceHelper.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceHelper.java
@@ -201,8 +201,7 @@ class DecoratableResourceHelper {
decoratableResource.dirty = false;
decoratableResource.assumeValid = true;
} else {
- if (workspaceIterator != null
- && workspaceIterator.isModified(indexEntry, true))
+ if (workspaceIterator.isModified(indexEntry, true))
decoratableResource.dirty = true;
}
return decoratableResource;

Back to the top