Remove MojoFailureException declaration 18/103418/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 26 Nov 2022 10:08:50 +0000 (11:08 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 26 Nov 2022 10:08:50 +0000 (11:08 +0100)
We are not throwing this exception, remove its declaration.

Change-Id: I5d42eaa6aa43312931a3332e9d552c991f9211f9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
plugin/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesProcessor.java

index 628a4ad120e1139fe1ab5e6f7e4cc7fe742960bf..1b31690d8598ebe84aade2e3ab1ff2dfe1d596a8 100644 (file)
@@ -230,7 +230,7 @@ class YangToSourcesProcessor {
             META_INF_YANG_SERVICES_STRING_JAR);
     }
 
-    private List<GeneratorTaskFactory> instantiateGenerators() throws MojoExecutionException, MojoFailureException {
+    private List<GeneratorTaskFactory> instantiateGenerators() throws MojoExecutionException {
         // Search for available FileGenerator implementations
         final Map<String, FileGeneratorFactory> factories = Maps.uniqueIndex(
             ServiceLoader.load(FileGeneratorFactory.class), FileGeneratorFactory::getIdentifier);