Remove unnecessary public access modifiers.
@@ -81,22 +81,22 @@ public class ActiveContainerStatistics {
}
private static class ActiveContainerStats {
- public final Instant timeActivated;
- public Instant timeDeactivated;
+ final Instant timeActivated;
+ Instant timeDeactivated;
- public ActiveContainerStats(Instant timeActivated) {
+ ActiveContainerStats(Instant timeActivated) {
this.timeActivated = timeActivated;
}
- public boolean isDeactivated() {
+ boolean isDeactivated() {
return timeDeactivated != null;
}
}
private static class DeactivatedContainer {
- public final ActiveContainer activeContainer;
- public final Instant timeActivated;
- public final Instant timeDeactivated;
+ final ActiveContainer activeContainer;
+ final Instant timeActivated;
+ final Instant timeDeactivated;
public DeactivatedContainer(ActiveContainer activeContainer, Instant timeActivated, Instant timeDeactivated) {
this.activeContainer = activeContainer;
@@ -104,7 +104,7 @@ public class ActiveContainerStatistics {
this.timeDeactivated = timeDeactivated;
}
- public String toSummaryString() {
+ String toSummaryString() {
return String.format("%s: timeActivated=%s, timeDeactivated=%s, retainCount=%d",
activeContainer.toString(),
timeActivated.toString(),
@@ -114,10 +114,10 @@ public class ActiveContainerStatistics {
}
private static class DeactivatedContainerMetrics {
- public int deactivatedContainerCount = 0;
- public int deactivatedContainersWithRetainedRefsCount = 0;
+ int deactivatedContainerCount = 0;
+ int deactivatedContainersWithRetainedRefsCount = 0;
- public void aggregate(DeactivatedContainer deactivatedContainer) {
+ void aggregate(DeactivatedContainer deactivatedContainer) {
++deactivatedContainerCount;
if (deactivatedContainer.activeContainer.retainCount() > 0) {
++deactivatedContainersWithRetainedRefsCount;
