Skip to content

Commit

Permalink
Inverse parameter order and parameter use
Browse files Browse the repository at this point in the history
Solves kite-sdk#503. Note that as both the parameter order in the method header and their use is inverted, the caller will see no difference, so the change keeps the compatibility with existing code.
  • Loading branch information
oliviercailloux authored Mar 10, 2020
1 parent 72bfb4b commit 2a5f02e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public JavaCompiler() {
stdManager = tool.getStandardFileManager(null, null, null);
}

public Map<String, byte[]> compile(String source, String fileName) {
public Map<String, byte[]> compile(String fileName, String source) {
PrintWriter err = new PrintWriter(System.err);
return compile(source, fileName, err, null, null);
return compile(fileName, source, err, null, null);
}

public Map<String, byte[]> compile(String fileName, String source,
Expand Down

0 comments on commit 2a5f02e

Please sign in to comment.