Skip to content

Commit

Permalink
Change return type from HashMap to Map for CompileOptions.buildArgMap
Browse files Browse the repository at this point in the history
  • Loading branch information
simuons committed Oct 22, 2020
1 parent dc3ee55 commit eb07522
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/java/io/bazel/rulesscala/scalac/CompileOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ private static List<Resource> getResources(Map<String, String> args) {
return resources;
}

private static HashMap<String, String> buildArgMap(List<String> lines) {
HashMap<String, String> hm = new HashMap<>();
private static Map<String, String> buildArgMap(List<String> lines) {
Map<String, String> args = new HashMap<>();
for (int i = 0; i < lines.size(); i += 2) {
hm.put(lines.get(i).substring(2), lines.get(i + 1));
args.put(lines.get(i).substring(2), lines.get(i + 1));
}
return hm;
return args;
}

protected static String[] getTripleColonList(Map<String, String> m, String k) {
Expand Down

0 comments on commit eb07522

Please sign in to comment.