remove unnecessary semicolon and return

This commit is contained in:
Robert Muir 2016-06-11 13:48:04 -04:00
parent 0bfb166eeb
commit ab457be9d8
1 changed files with 2 additions and 2 deletions

View File

@ -112,13 +112,13 @@ public class FunctionRefTests extends ScriptTestCase {
public void testOwnStaticMethodReference() {
//System.out.println(Debugger.toString("int mycompare(int i, int j) { return j - i; } " +
// "List l = new ArrayList(); l.add(2); l.add(1); l.sort(this::mycompare); return l.get(0);"));
assertEquals(2, exec("int mycompare(int i, int j) { return j - i; } " +
assertEquals(2, exec("int mycompare(int i, int j) { j - i } " +
"List l = new ArrayList(); l.add(2); l.add(1); l.sort(this::mycompare); return l.get(0);"));
}
@AwaitsFix(bugUrl = "working on it")
public void testOwnStaticMethodReferenceDef() {
assertEquals(2, exec("int mycompare(int i, int j) { return j - i; } " +
assertEquals(2, exec("int mycompare(int i, int j) { j - i } " +
"def l = new ArrayList(); l.add(2); l.add(1); l.sort(this::mycompare); return l.get(0);"));
}