File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/org/apache/commons/jxpath Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments