Merge pull request #22 from DevFactory/release/utility-classes-should-not-have-public-constructors-fix-1

Code quality fix - Utility classes should not have public constructors.
This commit is contained in:
David
2016-04-26 22:33:12 +02:00
4 changed files with 9 additions and 0 deletions

View File

@@ -6,6 +6,8 @@ import java.util.function.*;
import java.util.stream.*;
public class TagCreator {
private TagCreator() {}
/**
* Creates a DomContent object containing HTML using a mapping function on a collection

View File

@@ -1,6 +1,9 @@
package j2html.attributes;
public class Attr {
private Attr() {}
public static String HIDDEN = "hidden";
public static String HIGH = "high";
public static String HREF = "href";

View File

@@ -59,6 +59,8 @@ import java.util.logging.*;
import java.util.regex.*;
public class CSSMin {
private CSSMin() {}
private static final Logger LOG = Logger.getLogger(CSSMin.class.getName());

View File

@@ -4,6 +4,8 @@ import com.google.javascript.jscomp.*;
import com.google.javascript.jscomp.Compiler;
public class JSMin {
private JSMin() {}
public static String compressJs(String code, String sourcePath) {
com.google.javascript.jscomp.Compiler compiler = new Compiler();