Skip to content

Commit 89214f7

Browse files
author
Dave Wichers
committed
Make database helper method private since not intended to be used by
test cases.
1 parent 36f30ff commit 89214f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/owasp/benchmark/helpers/DatabaseHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public class DatabaseHelper {
4141
new org.owasp.benchmark.helpers.HibernateUtil(true);
4242
public static final boolean hideSQLErrors =
4343
false; // If we want SQL Exceptions to be suppressed from being displayed to the user of
44+
4445
// the web app.
4546

4647
static {
@@ -168,7 +169,7 @@ public static java.sql.Connection getSqlConnection() {
168169
return conn;
169170
}
170171

171-
public static void executeSQLCommand(String sql) throws Exception {
172+
private static void executeSQLCommand(String sql) throws Exception {
172173
Statement stmt = getSqlStatement();
173174
stmt.executeUpdate(sql);
174175
}

0 commit comments

Comments
 (0)