- Notifications
You must be signed in to change notification settings - Fork 61
Fixed ConcurrentModificationException on a map and tweeked some options.#443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
c0b88ba1d167814d538e2cfa2f131ccef57File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -29,6 +29,7 @@ | ||||||||||||||||
| import java.nio.file.Paths; | ||||||||||||||||
| import java.util.ArrayList; | ||||||||||||||||
| import java.util.Arrays; | ||||||||||||||||
| import java.util.HashMap; | ||||||||||||||||
| import java.util.HashSet; | ||||||||||||||||
| import java.util.Iterator; | ||||||||||||||||
| import java.util.List; | ||||||||||||||||
| @@ -140,6 +141,7 @@ private Map<String, String> getCompilerArguments(CompilerConfiguration config){ | ||||||||||||||||
| } | ||||||||||||||||
| compilerArguments = config.getCustomCompilerArgumentsAsMap(); | ||||||||||||||||
| Map<String, String> ca2 = new HashMap<String, String>(); | ||||||||||||||||
| Iterator<String> i = compilerArguments.keySet().iterator(); | ||||||||||||||||
| @@ -151,12 +153,15 @@ private Map<String, String> getCompilerArguments(CompilerConfiguration config){ | ||||||||||||||||
| i.remove(); | ||||||||||||||||
| String k = arr[0]; | ||||||||||||||||
| v = arr[1]; | ||||||||||||||||
| compilerArguments.put(k, v); | ||||||||||||||||
| // compilerArguments.put(k, v); | ||||||||||||||||
| ca2.put(k, v); | ||||||||||||||||
| if (config.isDebug()){ | ||||||||||||||||
| System.out.println("transforming argument from " + orig + " to " + k + " = [" + v + "]"); | ||||||||||||||||
| System.out.println( | ||||||||||||||||
| "internal splitting of argument '" + orig + "' to key '" + k + "', value '" + v + "'"); | ||||||||||||||||
| } | ||||||||||||||||
| } | ||||||||||||||||
| } | ||||||||||||||||
| compilerArguments.putAll(ca2); | ||||||||||||||||
| config.setCustomCompilerArgumentsAsMap(compilerArguments); | ||||||||||||||||
| @@ -389,11 +394,12 @@ private String[] buildCompilerArguments(CompilerConfiguration config, String[] s | ||||||||||||||||
| throws CompilerException{ | ||||||||||||||||
| List<String> args = new ArrayList<>(); | ||||||||||||||||
| if (config.isDebug()){ | ||||||||||||||||
| args.add("/debug+"); | ||||||||||||||||
| } else{ | ||||||||||||||||
| args.add("/debug-"); | ||||||||||||||||
| } | ||||||||||||||||
| // plugin parameter is no the same as the compiler option! so replaced | ||||||||||||||||
CopilotAI | ||||||||||||||||
| // plugin parameter is no the same as the compiler option! so replaced | |
| // plugin parameter is not the same as the compiler option! so replaced |
CopilotAIOct 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider removing commented-out code rather than leaving it in the codebase. If this code might be needed for reference, document why it was removed in a comment.
| // plugin parameter is no the same as the compiler option! so replaced | |
| // if (config.isDebug()){ | |
| // args.add("/debug+"); | |
| // } else{ | |
| // args.add("/debug-"); | |
| // } | |
| // plugin parameter is not the same as the compiler option, so debug handling was removed. |
slachiewicz marked this conversation as resolved. Show resolvedHide resolved
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
CopilotAIOct 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider removing commented-out code rather than leaving it in the codebase.