Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 30, 2025
1 parent 4823c08 commit 2f3691b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/apache/commons/jexl3/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@
* Quux quux = jexl.newInstance(Quux.class, "xuuq", 100);
* jexl.setProperty(quux, "froboz.value", Integer.valueOf(100));
* Object o = jexl.getProperty(quux, "froboz.value");
* assertEquals("Result is not 100", new Integer(100), o);
* assertEquals("Result is not 100", Integer.valueOf(100), o);
* jexl.setProperty(quux, "['froboz'].value", Integer.valueOf(1000));
* o = jexl.getProperty(quux, "['froboz']['value']");
* assertEquals("Result is not 1000", new Integer(1000), o);
* assertEquals("Result is not 1000", Integer.valueOf(1000), o);
* </pre>
* <h3><a id="usage_jexl">Expressions and Scripts</a></h3>
* <p>
Expand All @@ -151,9 +151,9 @@
* JexlExpression check = jexl.createExpression("quux[\"froboz\"].value");
* Quux quux = (Quux) create.evaluate(jc);
* Object o = assign.evaluate(jc);
* assertEquals("Result is not 10", new Integer(10), o);
* assertEquals("Result is not 10", Integer.valueOf(10), o);
* o = check.evaluate(jc);
* assertEquals("Result is not 10", new Integer(10), o);
* assertEquals("Result is not 10", Integer.valueOf(10), o);
* </pre>
* <h3><a id="usage_ujexl">Unified Expressions and Templates</a></h3>
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
* asserter.setVariable("foo", new Foo());
* asserter.setVariable("person", "James");
* asserter.assertExpression("person", "James");
* asserter.assertExpression("size(person)", new Integer(5));
* asserter.assertExpression("size(person)", Integer.valueOf(5));
*
* asserter.assertExpression("foo.getCount()", new Integer(5));
* asserter.assertExpression("foo.count", new Integer(5));
* asserter.assertExpression("foo.getCount()", Integer.valueOf(5));
* asserter.assertExpression("foo.count", Integer.valueOf(5));
* </pre>
*/
package org.apache.commons.jexl3.junit;

0 comments on commit 2f3691b

Please sign in to comment.