These three classes are pure field holders, hence they should have
private constructors.
Change-Id: I02818541a7a20808d3fc6f35b56e40c993a9ca94
Signed-off-by: Robert Varga <[email protected]>
static final class Generator {
static final BindingRuntimeGenerator INSTANCE = ServiceLoader.load(BindingRuntimeGenerator.class).findFirst()
.orElseThrow(() -> new ExceptionInInitializerError("No BindingRuntimeGenerator found"));
+
+ private Generator() {
+ // Hidden on purpose
+ }
}
static final class ParserFactory {
static final YangParserFactory INSTANCE = ServiceLoader.load(YangParserFactory.class).findFirst()
.orElseThrow(() -> new ExceptionInInitializerError("No YangParserFactory found"));
+
+ private ParserFactory() {
+ // Hodden on purpose
+ }
+ }
+
+ private ServiceLoaderState() {
+ // Hidden on purpose
}
}