@@ -160,7 +160,7 @@ public void execute() throws MojoExecutionException {
160160
161161 Set <String > definedOptions = new HashSet <String >();
162162 for (CliOption langCliOption : config .cliOptions ()) {
163- definedOptions .add (langCliOption .getOpt ());
163+ definedOptions .add (langCliOption .getOpt ());
164164 }
165165
166166 if (configOptions != null ) {
@@ -178,15 +178,15 @@ public void execute() throws MojoExecutionException {
178178 Map <String , String > mappings = createMapFromKeyValuePairs (configOptions .remove ("instantiation-types" ).toString ());
179179 config .instantiationTypes ().putAll (mappings );
180180 }
181- addAdditionalProperties (config , definedOptions , configOptions );
181+ addAdditionalProperties (config , definedOptions , configOptions );
182182 }
183183
184184 if (null != configurationFile ) {
185185 Config genConfig = ConfigParser .read (configurationFile );
186186 if (null != genConfig ) {
187- addAdditionalProperties (config , definedOptions , genConfig .getOptions ());
187+ addAdditionalProperties (config , definedOptions , genConfig .getOptions ());
188188 } else {
189- throw new RuntimeException ("Unable to read configuration file" );
189+ throw new RuntimeException ("Unable to read configuration file" );
190190 }
191191 }
192192
@@ -205,8 +205,8 @@ public void execute() throws MojoExecutionException {
205205 new DefaultGenerator ().opts (input ).generate ();
206206 } catch (Exception e ) {
207207 // Maven logs exceptions thrown by plugins only if invoked with -e
208- // I find it annoying to jump through hoops to get basic diagnostic information,
209- // so let's log it in any case:
208+ // I find it annoying to jump through hoops to get basic diagnostic information,
209+ // so let's log it in any case:
210210 getLog ().error (e );
211211 throw new MojoExecutionException ("Code generation failed. See above for the full exception." );
212212 }
@@ -217,12 +217,12 @@ public void execute() throws MojoExecutionException {
217217 }
218218
219219 private void addAdditionalProperties (CodegenConfig config , Set <String > definedOptions , Map <?,?> configOptions ) {
220- for (Map .Entry <?, ?> configEntry : configOptions .entrySet ()) {
221- config .additionalProperties ().put (configEntry .getKey ().toString (), configEntry .getValue ());
222- if (!definedOptions .contains (configEntry .getKey ())) {
223- getLog ().warn ("Additional property: " + configEntry .getKey () + " is not defined for this language." );
224- }
225- }
220+ for (Map .Entry <?, ?> configEntry : configOptions .entrySet ()) {
221+ config .additionalProperties ().put (configEntry .getKey ().toString (), configEntry .getValue ());
222+ if (!definedOptions .contains (configEntry .getKey ())) {
223+ getLog ().warn ("Additional property: " + configEntry .getKey () + " is not defined for this language." );
224+ }
225+ }
226226 }
227227
228228 private static Map <String , String > createMapFromKeyValuePairs (String commaSeparatedKVPairs ) {
0 commit comments