This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-ognl.git
The following commit(s) were added to refs/heads/master by this push:
new 0616d82 Use primitive parsing.
0616d82 is described below
commit 0616d82dc1906a1e203a5ee177f375f74ab62c1a
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Feb 28 18:48:23 2021 -0500
Use primitive parsing.
---
src/main/java/org/apache/commons/ognl/OgnlContext.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/ognl/OgnlContext.java
b/src/main/java/org/apache/commons/ognl/OgnlContext.java
index 70a75e6..78a71b0 100644
--- a/src/main/java/org/apache/commons/ognl/OgnlContext.java
+++ b/src/main/java/org/apache/commons/ognl/OgnlContext.java
@@ -111,12 +111,12 @@ public class OgnlContext
s = System.getProperty( PROPERTY_KEY_PREFIX + ".traceEvaluations"
);
if ( s != null )
{
- defaultTraceEvaluations = Boolean.valueOf( s.trim() );
+ defaultTraceEvaluations = Boolean.parseBoolean( s.trim() );
}
s = System.getProperty( PROPERTY_KEY_PREFIX +
".keepLastEvaluation" );
if ( s != null )
{
- defaultKeepLastEvaluation = Boolean.valueOf( s.trim() );
+ defaultKeepLastEvaluation = Boolean.parseBoolean( s.trim() );
}
}
catch ( SecurityException ex )