changeset 19492:5a91549293df

Truffle/Instrumentation: placate FindBugs
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Wed, 18 Feb 2015 20:38:04 -0800
parents 4d66c000d253
children c162000dd30c c4173ea6c8c7 b08cf18b9f0a
files graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Probe.java
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Probe.java	Wed Feb 18 18:30:49 2015 -0800
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Probe.java	Wed Feb 18 20:38:04 2015 -0800
@@ -338,11 +338,7 @@
     }
 
     private void notifyTrapSet() {
-        if (tagTrap == null && !isTrapActive) {
-            // Special case, could be common, where we don't need to do anything.
-            return;
-        }
-        this.isTrapActive = this.isTaggedAs(tagTrap.getTag());
+        this.isTrapActive = tagTrap != null && this.isTaggedAs(tagTrap.getTag());
         invalidateProbeUnchanged();
     }