From 3c6c0d9e78c206484ae747467a17e28640111ec1 Mon Sep 17 00:00:00 2001 From: vvatanabe Date: Wed, 30 Aug 2023 08:46:21 +0900 Subject: [PATCH] fix: corrected the value of SuppressWarnings annotation --- src/main/java/com/nulabinc/zxcvbn/Pattern.java | 14 +++++++------- .../com/nulabinc/zxcvbn/StandardDictionaries.java | 2 +- .../com/nulabinc/zxcvbn/StandardKeyboards.java | 2 +- .../java/com/nulabinc/zxcvbn/WipeableString.java | 2 +- .../com/nulabinc/zxcvbn/io/ClasspathResource.java | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/nulabinc/zxcvbn/Pattern.java b/src/main/java/com/nulabinc/zxcvbn/Pattern.java index a6b0d16..e459686 100644 --- a/src/main/java/com/nulabinc/zxcvbn/Pattern.java +++ b/src/main/java/com/nulabinc/zxcvbn/Pattern.java @@ -1,19 +1,19 @@ package com.nulabinc.zxcvbn; public enum Pattern { - @SuppressWarnings("squid:S115") + @SuppressWarnings("java:S115") Bruteforce("bruteforce"), - @SuppressWarnings("squid:S115") + @SuppressWarnings("java:S115") Dictionary("dictionary"), - @SuppressWarnings("squid:S115") + @SuppressWarnings("java:S115") Spatial("spatial"), - @SuppressWarnings("squid:S115") + @SuppressWarnings("java:S115") Repeat("repeat"), - @SuppressWarnings("squid:S115") + @SuppressWarnings("java:S115") Sequence("sequence"), - @SuppressWarnings("squid:S115") + @SuppressWarnings("java:S115") Regex("regex"), - @SuppressWarnings("squid:S115") + @SuppressWarnings("java:S115") Date("date"); private final String value; diff --git a/src/main/java/com/nulabinc/zxcvbn/StandardDictionaries.java b/src/main/java/com/nulabinc/zxcvbn/StandardDictionaries.java index 92a7174..aacd63a 100644 --- a/src/main/java/com/nulabinc/zxcvbn/StandardDictionaries.java +++ b/src/main/java/com/nulabinc/zxcvbn/StandardDictionaries.java @@ -9,7 +9,7 @@ public class StandardDictionaries { - @SuppressWarnings("squid:S1075") + @SuppressWarnings("java:S1075") private static final String BASE_PATH = "/com/nulabinc/zxcvbn/matchers/dictionaries/"; public static final String US_TV_AND_FILM = "us_tv_and_film"; diff --git a/src/main/java/com/nulabinc/zxcvbn/StandardKeyboards.java b/src/main/java/com/nulabinc/zxcvbn/StandardKeyboards.java index e3c21e1..9159023 100644 --- a/src/main/java/com/nulabinc/zxcvbn/StandardKeyboards.java +++ b/src/main/java/com/nulabinc/zxcvbn/StandardKeyboards.java @@ -11,7 +11,7 @@ public class StandardKeyboards { - @SuppressWarnings("squid:S1075") + @SuppressWarnings("java:S1075") private static final String RESOURCES_PACKAGE_PATH = "/com/nulabinc/zxcvbn/matchers/keyboards/"; public static final String QWERTY = "qwerty"; diff --git a/src/main/java/com/nulabinc/zxcvbn/WipeableString.java b/src/main/java/com/nulabinc/zxcvbn/WipeableString.java index a15b4f6..a4ab3e8 100644 --- a/src/main/java/com/nulabinc/zxcvbn/WipeableString.java +++ b/src/main/java/com/nulabinc/zxcvbn/WipeableString.java @@ -140,7 +140,7 @@ public static int parseInt(CharSequence s) throws NumberFormatException { } /** A version of Integer.parse(String) that accepts CharSequence as parameter. */ - @SuppressWarnings("squid:S3776") + @SuppressWarnings("java:S3776") public static int parseInt(CharSequence s, int radix) throws NumberFormatException { if (s == null) { throw new NumberFormatException("null"); diff --git a/src/main/java/com/nulabinc/zxcvbn/io/ClasspathResource.java b/src/main/java/com/nulabinc/zxcvbn/io/ClasspathResource.java index a7ee4fd..898968f 100644 --- a/src/main/java/com/nulabinc/zxcvbn/io/ClasspathResource.java +++ b/src/main/java/com/nulabinc/zxcvbn/io/ClasspathResource.java @@ -29,7 +29,7 @@ public InputStream getInputStream() throws IOException { * available; Next, the ClassLoader that loaded the ResourceLoader class will be used as fallback. * Finally, if even the system ClassLoader could not access resource as stream, return null. */ - @SuppressWarnings("squid:S1181") + @SuppressWarnings("java:S1181") private InputStream getResourceAsStreamWithFallback(String path) { // Try loading the resource from the same artifact as this class InputStream in = getClass().getResourceAsStream(path);