diff options
Diffstat (limited to 'validate')
2 files changed, 6 insertions, 2 deletions
diff --git a/validate/sample-mock-generator/src/main/java/org/onap/cli/http/mock/MockJsonGenerator.java b/validate/sample-mock-generator/src/main/java/org/onap/cli/http/mock/MockJsonGenerator.java index ffc7c7e3..780ad695 100644 --- a/validate/sample-mock-generator/src/main/java/org/onap/cli/http/mock/MockJsonGenerator.java +++ b/validate/sample-mock-generator/src/main/java/org/onap/cli/http/mock/MockJsonGenerator.java @@ -25,7 +25,9 @@ import java.io.FileWriter; public class MockJsonGenerator { private static Gson gson = new GsonBuilder().serializeNulls().create(); - + private MockJsonGenerator() { + throw new IllegalStateException("Utility class"); + } public static void generateMocking(MockRequest mockRequest, MockResponse mockResponse, String jsonFilePath) throws IOException { MockObject mockObject = new MockObject(); diff --git a/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java b/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java index bc8f456e..48ae7db4 100644 --- a/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java +++ b/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java @@ -26,7 +26,9 @@ import java.util.stream.Collectors; public class SampleYamlGenerator { static int nTab; - + private SampleYamlGenerator() { + throw new IllegalStateException("Utility class"); + } public static void generateSampleYaml(String cmdName, List<String> input, String output, String version, String targetPath, boolean debug, String name) throws IOException { |