File tree Expand file tree Collapse file tree
domain-models-runtime/src/main/java/org/folio/rest/persist Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments