Skip to content

Commit

Permalink
Use parseInt in BaseProductCreationOperation
Browse files Browse the repository at this point in the history
Use Integer.parseInt(slinfo[0]) instead of
Integer.valueOf(slinfo[0]).intValue());
  • Loading branch information
vogella authored and mickaelistria committed Dec 19, 2023
1 parent 7d111eb commit adb4cb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ protected void addPlugins(IProductModelFactory factory, IProduct product, Map<IP
if (slinfo[0].equals("default")) { //$NON-NLS-1$
slinfo[0] = "0"; //$NON-NLS-1$
}
configuration.setStartLevel(Integer.valueOf(slinfo[0]).intValue());
configuration.setStartLevel(Integer.parseInt(slinfo[0]));
configuration.setAutoStart(slinfo[1].equals("true")); //$NON-NLS-1$
configurations.add(configuration);
}
Expand Down

0 comments on commit adb4cb4

Please sign in to comment.