Skip to content

Commit

Permalink
fix: corrected the value of SuppressWarnings annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
vvatanabe committed Aug 29, 2023
1 parent 3c53416 commit 3c6c0d9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/main/java/com/nulabinc/zxcvbn/Pattern.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/nulabinc/zxcvbn/StandardKeyboards.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/nulabinc/zxcvbn/WipeableString.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3c6c0d9

Please sign in to comment.