Skip to content

Commit

Permalink
avoid codenarc warning
Browse files Browse the repository at this point in the history
  • Loading branch information
paulk-asert committed Sep 3, 2024
1 parent 4f1a785 commit f83c8cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import picocli.CommandLine.Unmatched
subcommands = [Install, Uninstall, ListCommand, Resolve, CommandLine.HelpCommand])
class GrapeMain implements Runnable {
@Option(names = ['-D', '--define'], description = 'define a system property', paramLabel = '<name=value>')
private final Map<String, String> properties = new LinkedHashMap<String, String>()
private final Map<String, String> sysProperties = new LinkedHashMap<String, String>()

@SuppressWarnings('UnusedPrivateField') // used in run()
@Option(names = ['-r', '--resolver'], description = 'define a grab resolver (for install)', paramLabel = '<url>')
Expand Down Expand Up @@ -78,7 +78,7 @@ class GrapeMain implements Runnable {

@SuppressWarnings('UnusedPrivateMethod') // used in run()
private void init() {
properties.each { k, v ->
sysProperties.each { k, v ->
System.setProperty(k, v)
}
}
Expand Down

0 comments on commit f83c8cb

Please sign in to comment.