[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [collector/master] Remove unnecessary modifiers and semicolons.



commit 941a18353ae98b1b4eefe6c3d621e81978e85ae9
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Tue Aug 21 09:23:45 2018 +0200

    Remove unnecessary modifiers and semicolons.
---
 src/main/java/org/torproject/metrics/collector/conf/Annotation.java | 2 +-
 src/main/java/org/torproject/metrics/collector/conf/SourceType.java | 2 +-
 src/main/java/org/torproject/metrics/collector/sync/Criterium.java  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/torproject/metrics/collector/conf/Annotation.java b/src/main/java/org/torproject/metrics/collector/conf/Annotation.java
index a796f4d..f90516b 100644
--- a/src/main/java/org/torproject/metrics/collector/conf/Annotation.java
+++ b/src/main/java/org/torproject/metrics/collector/conf/Annotation.java
@@ -22,7 +22,7 @@ public enum Annotation {
   private final String annotation;
   private final byte[] bytes;
 
-  private Annotation(String annotation) {
+  Annotation(String annotation) {
     this.annotation = annotation;
     this.bytes = annotation.getBytes();
   }
diff --git a/src/main/java/org/torproject/metrics/collector/conf/SourceType.java b/src/main/java/org/torproject/metrics/collector/conf/SourceType.java
index 984ff21..ed5df4d 100644
--- a/src/main/java/org/torproject/metrics/collector/conf/SourceType.java
+++ b/src/main/java/org/torproject/metrics/collector/conf/SourceType.java
@@ -7,5 +7,5 @@ public enum SourceType {
   Cache,
   Local,
   Remote,
-  Sync;
+  Sync
 }
diff --git a/src/main/java/org/torproject/metrics/collector/sync/Criterium.java b/src/main/java/org/torproject/metrics/collector/sync/Criterium.java
index c9d6212..a90de8e 100644
--- a/src/main/java/org/torproject/metrics/collector/sync/Criterium.java
+++ b/src/main/java/org/torproject/metrics/collector/sync/Criterium.java
@@ -7,7 +7,7 @@ package org.torproject.metrics.collector.sync;
 public interface Criterium<T> {
 
   /** Determine, if the given object of type T fulfills the Criterium. */
-  public boolean applies(T object);
+  boolean applies(T object);
 
 }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits