Skip to content

Commit 604b2b6

Browse files
committed
Fix
1 parent bf4d217 commit 604b2b6

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

core/src/main/java/me/zort/sqllib/SQLConnectionPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void close() {
5858
}
5959

6060
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
61-
private static class SQLPooledConnection {
61+
private static final class SQLPooledConnection {
6262
private final SQLDatabaseConnection connection;
6363
private long lastUsed = System.currentTimeMillis();
6464

core/src/main/java/me/zort/sqllib/util/Regex.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,6 @@ private Regex() {
88
}
99

1010
public static String skipRegexCharacters(String input) {
11-
boolean thrown = true;
12-
while(thrown) {
13-
try {
14-
input.replaceAll(input, input);
15-
thrown = false;
16-
} catch(PatternSyntaxException e) {
17-
input = _skipRegexCharacters(input);
18-
}
19-
}
20-
return input;
21-
}
22-
23-
private static String _skipRegexCharacters(String input) {
2411
String s = input;
2512
StringBuilder stringBuilder = new StringBuilder(s);
2613
try {

0 commit comments

Comments
 (0)