[tor-commits] [onionoo/master] Make utility class constructors private.
karsten at torproject.org
karsten at torproject.org
Mon Apr 14 13:29:24 UTC 2014
commit c935ad720db9c9e2288aa738e607691a3a2a7fd4
Author: Karsten Loesing <karsten.loesing at gmx.net>
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();
More information about the tor-commits
mailing list