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:
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user