Add final var (#813)

Remove redundant String.
This commit is contained in:
Arturo Bernal 2021-10-17 15:46:33 +02:00 committed by GitHub
parent da036809e9
commit 6da891529b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ public class CharUtils {
if (ch < CHAR_STRING_ARRAY.length) {
return CHAR_STRING_ARRAY[ch];
}
return new String(new char[] {ch});
return String.valueOf(ch);
}
/**

View File

@ -467,7 +467,7 @@ public class ThreadUtils {
public static void sleepQuietly(final long millis) {
try {
sleep(Duration.ofMillis(millis));
} catch (InterruptedException e) {
} catch (final InterruptedException e) {
// be quiet.
}
}