Skip to content

Commit b4f0051

Browse files
Resolve checkstyle warnings
1 parent 6cf68a5 commit b4f0051

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/main/java/fr/xephi/authme/message/MessageKey.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ public enum MessageKey {
8080
/** The chosen password isn't safe, please choose another one... */
8181
PASSWORD_UNSAFE_ERROR("password.unsafe_password"),
8282

83-
/** Your chosen password is not secure. It has been seen %pwned_count times before! Please use a stronger password... */
83+
/**
84+
* Your chosen password is not secure.
85+
* It has been seen %pwned_count times before!
86+
* Please use a stronger password...
87+
*/
8488
PASSWORD_PWNED_ERROR("password.pwned_password", "%pwned_count"),
8589

8690
/** Your password contains illegal characters. Allowed chars: %valid_chars */

src/main/java/fr/xephi/authme/service/ValidationService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import java.io.DataInputStream;
2828
import java.net.HttpURLConnection;
2929
import java.net.URL;
30-
import java.util.Arrays;
3130
import java.util.Collection;
3231
import java.util.List;
3332
import java.util.Locale;
@@ -258,8 +257,9 @@ public HaveIBeenPwnedResults validatePasswordHaveIBeenPwned(String password) {
258257
StringBuilder outStr = new StringBuilder();
259258

260259
try (DataInputStream input = new DataInputStream(connection.getInputStream())) {
261-
for (int c = input.read(); c != -1; c = input.read())
260+
for (int c = input.read(); c != -1; c = input.read()) {
262261
outStr.append((char) c);
262+
}
263263
}
264264

265265
String[] hashes = outStr.toString().split("\n");

0 commit comments

Comments
 (0)