Skip to content
Merged
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: 2 additions & 2 deletions src/main/java/org/audit4j/core/Configurations.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ public class Configurations {
static final String ENVIRONMENT_CONFIG_VARIABLE_NAME = "AUDIT4J_CONF_FILE_PATH";

/**
* Instantiates a new configurations.
*
*/
public Configurations() {
private Configurations() {

}

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/audit4j/core/CoreConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,9 @@ public final class CoreConstants {

/** The Constant ENCODE_UTF8. */
public static final String ENCODE_UTF8 = "UTF-8";

private CoreConstants(){

}

}
9 changes: 8 additions & 1 deletion src/main/java/org/audit4j/core/ErrorGuide.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,14 @@ public final class ErrorGuide {

/** The Constant LAYOUT_ERROR. */
public static final String OPTION_ERROR = ERROR_URL + "optionError";


/**
* private constructor to avoid instantiation of this class
*/
private ErrorGuide(){

}

/**
* Gets the guide.
*
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/org/audit4j/core/TroubleshootManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public final class TroubleshootManager {

/** The Constant MAX_PORT_NUMBER. */
public static final int MAX_PORT_NUMBER = 49151;

/**
* private constructor to avoid instantiation of this class
*/
private TroubleshootManager(){

}

/**
* Troubleshoot event.
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/org/audit4j/core/annotation/DeIdentifyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@
*/
public class DeIdentifyUtil {


/**
* private constructor to avoid instantiation of this class
*/
private DeIdentifyUtil(){

}

/**
* Deidentify left.
*
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/org/audit4j/core/dto/AuditLevel.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,12 @@ public class AuditLevel {

/** The Constant DEFAULT_LEVEL. */
public static final String DEFAULT_LEVEL = "default";

/**
* private constructor to avoid instantiation of this class
*/
private AuditLevel(){

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
public class ClasspathUrlFinder
{

/**
* private constructor to avoid instantiation of this class
*/
private ClasspathUrlFinder(){

}

/**
* Find the classpath URLs for a specific classpath resource. The classpath URL is extracted
* from loader.getResources() using the baseResource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@

public class IteratorFactory {
private static final ConcurrentHashMap<String, DirectoryIteratorFactory> registry = new ConcurrentHashMap<String, DirectoryIteratorFactory>();

/**
* private constructor to avoid instantiation of this class
*/
private IteratorFactory(){

}

static {
registry.put("file", new FileProtocolIteratorFactory());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
* @author <a href="mailto:janith3000@gmail.com">Janith Bandara</a>
*/
public final class FTPArchiveClient {

/**
* private constructor to avoid instantiation of this class
*/
private FTPArchiveClient(){

}

/** The Constant USAGE. */
public static final String USAGE = "Usage: ftp [options] <hostname> <username> <password> [<remote file> [<local file>]]\n"
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/org/audit4j/core/jmx/JMXUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
* @since 2.4.0
*/
public class JMXUtils {

/**
* private constructor to avoid instantiation of this class
*/
private JMXUtils(){

}

/**
* Gets the object name.
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/org/audit4j/core/schedule/TaskUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
* @since 3.0
*/
public abstract class TaskUtils {

/**
* private constructor to avoid instantiation of this class
*/
private TaskUtils(){

}

/**
* An ErrorHandler strategy that will log the Exception but perform no
* further handling. This will suppress the error so that subsequent
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/org/audit4j/core/schedule/util/ClassUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
import java.util.Set;

public class ClassUtils {

/**
* private constructor to avoid instantiation of this class
*/
private ClassUtils(){

}

/**
* Determine whether the given class has a public method with the given
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/org/audit4j/core/schedule/util/StringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ public class StringUtils {
private static final String TOP_PATH = "..";
private static final String CURRENT_PATH = ".";
private static final char EXTENSION_SEPARATOR = '.';

/**
* private constructor to avoid instantiation of this class
*/
private StringUtils(){

}

// ---------------------------------------------------------------------
// General convenience methods for working with Strings
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/org/audit4j/core/util/EnvUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
*/
public class EnvUtil {


/**
* private constructor to avoid instantiation of this class
*/
private EnvUtil(){

}

/**
* Checks if is jD k_ n_ or higher.
*
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/audit4j/core/util/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ public class Log {
/** The error stream. */
private static PrintStream errorStream = System.err;

/**
* private constructor to avoid instantiation of this class
*/
private Log(){

}
/**
* Write information in the console.
*
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/audit4j/core/web/ContextConfigParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,10 @@ class ContextConfigParams {

/** The Constant PARAM_PROPERTIES. */
static final String PARAM_PROPERTIES = "properties";
/**
* private constructor to avoid instantiation of this class
*/
private ContextConfigParams(){

}
}