You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.8 KiB
36 lines
1.8 KiB
4 years ago
|
diff --git a/src/main/java/org/mvel2/util/Make.java b/src/main/java/org/mvel2/util/Make.java
|
||
|
index e1a7bb7..39265b0 100644
|
||
|
--- a/src/main/java/org/mvel2/util/Make.java
|
||
|
+++ b/src/main/java/org/mvel2/util/Make.java
|
||
|
@@ -144,7 +144,7 @@ public class Make {
|
||
|
this.listInstance = listInstance;
|
||
|
}
|
||
|
|
||
|
- public Set<V> _(V value) {
|
||
|
+ public Set<V> _add(V value) {
|
||
|
listInstance.add(value);
|
||
|
return this;
|
||
|
}
|
||
|
diff --git a/src/test/java/org/mvel2/tests/core/DebuggerTests.java b/src/test/java/org/mvel2/tests/core/DebuggerTests.java
|
||
|
index d2178df..2008a06 100644
|
||
|
--- a/src/test/java/org/mvel2/tests/core/DebuggerTests.java
|
||
|
+++ b/src/test/java/org/mvel2/tests/core/DebuggerTests.java
|
||
|
@@ -293,7 +293,7 @@ public class DebuggerTests extends AbstractTest {
|
||
|
MVELRuntime.setThreadDebugger(testDebugger);
|
||
|
|
||
|
assertEquals(1, MVEL.executeDebugger(compiled, null, new MapVariableResolverFactory(createTestMap())));
|
||
|
- assertEquals("did not break at expected lines", Make.Set.<Integer>$()._(6)._(8)._(9)._(10)._finish(), breaked);
|
||
|
+ assertEquals("did not break at expected lines", Make.Set.<Integer>$()._add(6)._add(8)._add(9)._add(10)._finish(), breaked);
|
||
|
}
|
||
|
|
||
|
public void testBreakpoints4() {
|
||
|
@@ -371,7 +371,7 @@ public class DebuggerTests extends AbstractTest {
|
||
|
assertEquals("bar", MVEL.executeDebugger(compiled, null, new MapVariableResolverFactory(createTestMap())));
|
||
|
assertTrue("did not fire before", result.firedBefore);
|
||
|
assertTrue("did not fire after", result.firedAfter);
|
||
|
- assertEquals("did not break at expected points", Make.Set.<Integer>$()._(3)._(4)._(5)._finish(), breaked);
|
||
|
+ assertEquals("did not break at expected points", Make.Set.<Integer>$()._add(3)._add(4)._add(5)._finish(), breaked);
|
||
|
}
|
||
|
|
||
|
public void testBreakpoints5() {
|