Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@

import org.openjproxy.grpc.dto.Parameter;

import java.util.ArrayList;

Check warning on line 5 in ojp-jdbc-driver/src/main/java/org/openjproxy/jdbc/Constants.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this unused import 'java.util.ArrayList'.

See more on https://sonarcloud.io/project/issues?id=Open-J-Proxy_ojp&issues=AZ34gSweFAHyAZNrpDad&open=AZ34gSweFAHyAZNrpDad&pullRequest=491
import java.util.Collections;
import java.util.List;

/**
* Reusable constants. Mainly to save memory by creating less repeated objects.
*/
public class Constants {
public static final List<Parameter> EMPTY_PARAMETERS_LIST = new ArrayList<>();
public static final List<Parameter> EMPTY_PARAMETERS_LIST = Collections.emptyList();
public static final String USER = "user";
public static final String PASSWORD = "password";
public static final String SHA_256 = "SHA-256";
public static final String OJP_DRIVER_PREFIX = "ojp_";
public static final String EMPTY_STRING = "";
public static final String H2_DRIVER_CLASS = "org.h2.Driver";
public static final List<Object> EMPTY_OBJECT_LIST = new ArrayList<>();
public static final List<Object> EMPTY_OBJECT_LIST = Collections.emptyList();

}