Skip to content

Commit 5011197

Browse files
committed
Javadoc
1 parent 44bea24 commit 5011197

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/org/apache/commons/jxpath/ClassFunctions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
* We can now use XPaths like:
3737
* <dl>
3838
* <dt>{@code "int:new(3)"}</dt>
39-
* <dd>Equivalent to {@code new Integer(3)}</dd>
39+
* <dd>Equivalent to {@code Integer.valueOf(3)}</dd>
4040
* <dt>{@code "int:getInteger('foo')"}</dt>
4141
* <dd>Equivalent to {@code Integer.getInteger("foo")}</dd>
4242
* <dt>{@code "int:floatValue(int:new(4))"}</dt>
43-
* <dd>Equivalent to {@code new Integer(4).floatValue()}</dd>
43+
* <dd>Equivalent to {@code Integer.valueOf(4).floatValue()}</dd>
4444
* </dl>
4545
*
4646
* <p>

src/main/java/org/apache/commons/jxpath/JXPathContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,15 @@
244244
* ...
245245
*
246246
* JXPathContext context = JXPathContext.newContext(auth);
247-
* context.getVariables().declareVariable("index", new Integer(2));
247+
* context.getVariables().declareVariable("index", Integer.valueOf(2));
248248
*
249249
* Book secondBook = (Book)context.getValue("books[$index]");
250250
* </pre>
251251
*
252252
* You can also set variables using JXPath:
253253
*
254254
* <pre>
255-
* context.setValue("$index", new Integer(3));
255+
* context.setValue("$index", Integer.valueOf(3));
256256
* </pre>
257257
*
258258
* Note: you can only <em>change</em> the value of an existing variable this

0 commit comments

Comments
 (0)