Skip to content

Commit 3a426f6

Browse files
committed
@SuppressWarnings, linear runtime thanks to atomic groups
1 parent 2d8f9be commit 3a426f6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • domain-models-runtime/src/main/java/org/folio/rest/persist

domain-models-runtime/src/main/java/org/folio/rest/persist/PgUtil.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public final class PgUtil {
8989
* <p>
9090
* 2 = <code>=(</code>
9191
*/
92+
@SuppressWarnings("java:S5852") // linear runtime thanks to atomic groups (?>)
9293
private static final Pattern KEY_ALREADY_EXISTS_PATTERN = Pattern.compile(
9394
"^Key (?>\\((.+)\\)=\\()(.*)\\) already exists.$");
9495
/**
@@ -104,6 +105,7 @@ public final class PgUtil {
104105
* <p>
105106
* 3 = <code>users</code>
106107
*/
108+
@SuppressWarnings("java:S5852") // linear runtime thanks to atomic groups (?>)
107109
private static final Pattern KEY_NOT_PRESENT_PATTERN = Pattern.compile(
108110
"^Key (?>(?>[(](.+)[)]=[(])(.*)[)]) is not present in table \"([^\"]+)\".$");
109111
/**
@@ -119,6 +121,7 @@ public final class PgUtil {
119121
* <p>
120122
* 3 = <code>referencing</code>
121123
*/
124+
@SuppressWarnings("java:S5852") // linear runtime thanks to atomic groups (?>)
122125
private static final Pattern KEY_STILL_REFERENCED_PATTERN = Pattern.compile(
123126
"^Key (?>(?>[(](.+)[)]=[(])(.*)[)]) is still referenced from table \"([^\"]+)\".$");
124127

0 commit comments

Comments
 (0)