Skip to content
Permalink
Browse files
Don't create new primitive wrapper instances for predefined values
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/jxpath/trunk@1716255 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
britter committed Nov 24, 2015
1 parent 5785051 commit 9880af97b1a328b3e01412c33a9cd3983ca0f6fa
Showing 1 changed file with 3 additions and 3 deletions.
@@ -44,9 +44,9 @@ public void setUp() {
if (context == null) {
context = JXPathContext.newContext(new TestMixedModelBean());
Variables vars = context.getVariables();
vars.declareVariable("nan", new Double(Double.NaN));
vars.declareVariable("bool_true", new Boolean("true"));
vars.declareVariable("bool_false", new Boolean("false"));
vars.declareVariable("nan", Double.NaN);
vars.declareVariable("bool_true", Boolean.TRUE);
vars.declareVariable("bool_false", Boolean.FALSE);
}
}

0 comments on commit 9880af9

Please sign in to comment.