Skip to content

Commit

Permalink
JDK 17: idea inspection suppress locally: Statement can be replaced w…
Browse files Browse the repository at this point in the history
…ith enhanced 'switch'
  • Loading branch information
mheinzerling committed Sep 17, 2024
1 parent 7d55a14 commit 895a23a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/com/exedio/cope/builder/generator/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ static void run(final Params params) throws HumanReadableException, IOException
private static void printSummary(final Params params, final Model model, final ArrayList<Class<?>> skippedPackagePrefix,
final HashMap<File, ArrayList<Class<?>>> skippedTargetDirectoryDoesNotExist, final int generatedBuilders)
{
//noinspection EnhancedSwitchMigration
switch(skippedPackagePrefix.size())
{
case 0: // nothing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ static File getFileContaining(final URI uri)
if(scheme == null)
throw new IllegalArgumentException("scheme null in " + uri);

//noinspection EnhancedSwitchMigration
switch(scheme)
{
case "file":
Expand Down

0 comments on commit 895a23a

Please sign in to comment.