Make package private class final

Allow no instances of some internal classes
This commit is contained in:
Gary Gregory 2022-09-12 12:36:55 -07:00
parent 379d17c983
commit 9a5f617ab9
2 changed files with 234 additions and 224 deletions

View File

@ -81,4 +81,9 @@ final class Constants {
static final String[] EMPTY_STRING_ARRAY = {}; static final String[] EMPTY_STRING_ARRAY = {};
/** No instances. */
private Constants() {
// noop
}
} }

View File

@ -23,7 +23,7 @@ import java.nio.Buffer;
import java.nio.CharBuffer; import java.nio.CharBuffer;
/** Copied from Apache Commons IO. */ /** Copied from Apache Commons IO. */
class IOUtils { final class IOUtils {
/** /**
* <p> * <p>
@ -137,4 +137,9 @@ class IOUtils {
return count; return count;
} }
/** No instances. */
private IOUtils() {
// Noop
}
} }