Rename firstNanos and lastNanos to filterStart and filterEnd JEP-349-branch
authoregahlin
Thu, 29 Aug 2019 03:29:45 +0200
branchJEP-349-branch
changeset 57922 6598f2825b1f
parent 57921 08327ab323c5
child 57934 9c150f2b1fea
Rename firstNanos and lastNanos to filterStart and filterEnd
src/jdk.jfr/share/classes/jdk/jfr/consumer/EventParser.java
--- a/src/jdk.jfr/share/classes/jdk/jfr/consumer/EventParser.java	Thu Aug 29 03:27:49 2019 +0200
+++ b/src/jdk.jfr/share/classes/jdk/jfr/consumer/EventParser.java	Thu Aug 29 03:29:45 2019 +0200
@@ -54,8 +54,8 @@
     private RecordedEvent[] eventCache;
     private int index;
     private boolean ordered;
-    private long firstNanos;
-    private long lastNanos = Long.MAX_VALUE;
+    private long filterStart;
+    private long filterEnd = Long.MAX_VALUE;
     private long thresholdNanos = -1;
 
     EventParser(TimeConverter timeConverter, EventType type, Parser[] parsers) {
@@ -121,12 +121,12 @@
             }
             endTicks += durationTicks;
         }
-        if (firstNanos != 0L || lastNanos != Long.MAX_VALUE) {
+        if (filterStart != 0L || filterEnd != Long.MAX_VALUE) {
             long eventEnd = timeConverter.convertTimestamp(endTicks);
-            if (eventEnd < firstNanos) {
+            if (eventEnd < filterStart) {
                 return null;
             }
-            if (eventEnd > lastNanos) {
+            if (eventEnd > filterEnd) {
                 return null;
             }
         }
@@ -175,11 +175,11 @@
     }
 
     public void setFirstNanos(long firstNanos) {
-        this.firstNanos = firstNanos;
+        this.filterStart = firstNanos;
     }
 
     public void setLastNanos(long lastNanos) {
-        this.lastNanos = lastNanos;
+        this.filterEnd = lastNanos;
     }
 
     public void setOrdered(boolean ordered) {