Skip to content

Commit

Permalink
fix resource names
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillp committed Aug 15, 2024
1 parent 48b49ad commit ba034f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@
import java.util.function.Consumer;

public class DiffDemoJs extends FileDiffScene {

public static final String classL = "classL.java";
public static final String classR = "classR.java";

public DiffDemoJs(SceneApi api) {
super(api);
setReadonly(true);
load(model -> left().setModel(model), "ClassL.java");
load(model -> right().setModel(model), "ClassR.java");
load(model -> left().setModel(model), classL);
load(model -> right().setModel(model), classR);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public void compareDocuments() {
}

public void compareDocuments(boolean printResults) {
var docL = parse(readFile("ClassR.java"));
var docR = parse(readFile("ClassL.java"));
var docL = parse(readFile("classR.java"));
var docR = parse(readFile("classL.java"));

DiffModel model = new DiffModel();
char[] charsL = docL.getChars();
Expand Down

0 comments on commit ba034f4

Please sign in to comment.