diff --git a/exist-core/src/main/java/org/exist/xquery/pragmas/TimePragma.java b/exist-core/src/main/java/org/exist/xquery/pragmas/TimePragma.java
index 5a9d29a8ee2..3bcbb9c13b3 100644
--- a/exist-core/src/main/java/org/exist/xquery/pragmas/TimePragma.java
+++ b/exist-core/src/main/java/org/exist/xquery/pragmas/TimePragma.java
@@ -99,10 +99,12 @@ public void after(final XQueryContext context, final Expression expression) thro
@Override
public void resetState(final boolean postOptimization) {
- if (timing != null && options.measurementMode == MeasurementMode.MULTIPLE) {
- logMultipleMeasurement();
+ if (timing != null) {
+ if (options.measurementMode == MeasurementMode.MULTIPLE) {
+ logMultipleMeasurement();
+ }
+ this.timing.reset();
}
- this.timing.reset();
}
/**
diff --git a/extensions/indexes/range/pom.xml b/extensions/indexes/range/pom.xml
index e9a28a8b8d7..4ce463c5340 100644
--- a/extensions/indexes/range/pom.xml
+++ b/extensions/indexes/range/pom.xml
@@ -91,6 +91,11 @@
${lucene.version}
+
+ com.google.code.findbugs
+ jsr305
+
+
xml-apis
xml-apis