Make package private class final
Allow no instances of some internal classes
This commit is contained in:
parent
379d17c983
commit
9a5f617ab9
|
@ -81,4 +81,9 @@ final class Constants {
|
|||
|
||||
static final String[] EMPTY_STRING_ARRAY = {};
|
||||
|
||||
/** No instances. */
|
||||
private Constants() {
|
||||
// noop
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ import java.nio.Buffer;
|
|||
import java.nio.CharBuffer;
|
||||
|
||||
/** Copied from Apache Commons IO. */
|
||||
class IOUtils {
|
||||
final class IOUtils {
|
||||
|
||||
/**
|
||||
* <p>
|
||||
|
@ -137,4 +137,9 @@ class IOUtils {
|
|||
return count;
|
||||
}
|
||||
|
||||
/** No instances. */
|
||||
private IOUtils() {
|
||||
// Noop
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue