Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Code quality fix - Utility classes should not have public constructors. #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main/java/us/monoid/json/CDL.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ of this software and associated documentation files (the "Software"), to deal
* @version 2009-09-11
*/
public class CDL {

private CDL() {

}

/**
* Get the next value. The value can be wrapped in quotes. The value can
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/us/monoid/json/Cookie.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ of this software and associated documentation files (the "Software"), to deal
* @version 2008-09-18
*/
public class Cookie {

private Cookie() {

}

/**
* Produce a copy of a string in which the characters '+', '%', '=', ';'
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/us/monoid/json/CookieList.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ of this software and associated documentation files (the "Software"), to deal
* @version 2008-09-18
*/
public class CookieList {

private CookieList() {

}

/**
* Convert a cookie list into a JSONObject. A cookie list is a sequence
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/us/monoid/json/HTTP.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ of this software and associated documentation files (the "Software"), to deal
* @version 2008-09-18
*/
public class HTTP {

private HTTP() {

}

/** Carriage return/line feed. */
public static final String CRLF = "\r\n";
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/us/monoid/json/JSONML.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ of this software and associated documentation files (the "Software"), to deal
* @version 2010-02-12
*/
public class JSONML {

private JSONML() {

}

/**
* Parse XML values and store them in a JSONArray.
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/us/monoid/json/XML.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ of this software and associated documentation files (the "Software"), to deal
* @version 2010-04-08
*/
public class XML {

private XML() {

}

/** The Character '&'. */
public static final Character AMP = new Character('&');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
import javax.net.ssl.TrustManager;

public class TrustAllX509SocketFactory {

private TrustAllX509SocketFactory() {

}

public static SSLSocketFactory getSSLSocketFactory() throws Exception {
SSLContext sc = SSLContext.getInstance("SSL");
sc.init(null, TrustAllX509Certificates.TRUST_MANAGER, null);
Expand Down