Skip to content

Commit 802a9ff

Browse files
committed
NR-480384: feat : refactored
1 parent e101c7b commit 802a9ff

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

NewRelicVideoCore/src/main/java/com/newrelic/videoagent/core/model/NRTimeSinceTable.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,4 @@ public void applyAttributes(String action, Map<String, Object> attributes) {
5454
ts.now();
5555
}
5656
}
57-
}
58-
}
57+
}}

NewRelicVideoCore/src/main/java/com/newrelic/videoagent/core/model/NRTrackerState.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,5 +256,4 @@ public boolean goAdBreakEnd() {
256256
} else {
257257
return false;
258258
}
259-
}
260-
}
259+
}}

NewRelicVideoCore/src/main/java/com/newrelic/videoagent/core/tracker/NRVideoTracker.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,6 @@ public void sendHeartbeat() {
521521
state.accumulatedVideoWatchTime = 0L;
522522
}
523523

524-
525524
/**
526525
* Send rendition change event.
527526
*/
@@ -1369,7 +1368,6 @@ private void trackBitrateFromProcessedAttributes(String action, Map<String, Obje
13691368
updateQoeBitrateMetrics(currentBitrate, action);
13701369
}
13711370

1372-
13731371
/**
13741372
* Efficiently extract Long bitrate value from various numeric types.
13751373
* @param bitrateObj Object that may contain bitrate value
@@ -1407,9 +1405,7 @@ private void updateQoeBitrateMetrics(Long bitrate, String action) {
14071405
qoeBitrateSum = safeAdd(qoeBitrateSum, bitrate);
14081406
qoeBitrateCount++;
14091407
}
1410-
14111408
// QoE bitrate tracking completed
1412-
14131409
}
14141410

14151411

@@ -1434,7 +1430,6 @@ private static long safeAdd(long a, long b) {
14341430
if (((a ^ result) & (b ^ result)) < 0) {
14351431
throw new ArithmeticException("long overflow");
14361432
}
1437-
14381433
return result;
14391434
}
1440-
}
1435+
}

0 commit comments

Comments
 (0)