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

[tor-commits] [onionoo/master] Make utility class constructors private.



commit c935ad720db9c9e2288aa738e607691a3a2a7fd4
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Tue Apr 8 23:22:11 2014 +0200

    Make utility class constructors private.
    
    Found with SonarQube.
---
 src/org/torproject/onionoo/DateTimeHelper.java |    3 +++
 src/org/torproject/onionoo/Logger.java         |    3 +++
 src/org/torproject/onionoo/Main.java           |    4 ++++
 3 files changed, 10 insertions(+)

diff --git a/src/org/torproject/onionoo/DateTimeHelper.java b/src/org/torproject/onionoo/DateTimeHelper.java
index f97c8c5..efe126b 100644
--- a/src/org/torproject/onionoo/DateTimeHelper.java
+++ b/src/org/torproject/onionoo/DateTimeHelper.java
@@ -11,6 +11,9 @@ import java.util.TimeZone;
 
 public class DateTimeHelper {
 
+  private DateTimeHelper() {
+  }
+
   public static final String ISO_DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
 
   public static final String ISO_DATETIME_TAB_FORMAT =
diff --git a/src/org/torproject/onionoo/Logger.java b/src/org/torproject/onionoo/Logger.java
index fa113f3..ccc7962 100644
--- a/src/org/torproject/onionoo/Logger.java
+++ b/src/org/torproject/onionoo/Logger.java
@@ -6,6 +6,9 @@ import java.util.Date;
 
 public class Logger {
 
+  private Logger() {
+  }
+
   private static Time time;
 
   public static void setTime(Time timeParam) {
diff --git a/src/org/torproject/onionoo/Main.java b/src/org/torproject/onionoo/Main.java
index 355baac..a4e2d92 100644
--- a/src/org/torproject/onionoo/Main.java
+++ b/src/org/torproject/onionoo/Main.java
@@ -6,6 +6,10 @@ import java.io.File;
 
 /* Update search data and status data files. */
 public class Main {
+
+  private Main() {
+  }
+
   public static void main(String[] args) {
 
     Time t = new Time();



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