From 42c8f108f9e45d7f3e97b67f7c4fe2b8fa5453f1 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Sun, 3 May 2020 01:39:35 +0000 Subject: enable expression evaluation by default git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1324 f203690c-595d-4dc9-a70b-905162fa7fd2 --- src/main/java/com/healthmarketscience/jackcess/Database.java | 10 +++++----- .../com/healthmarketscience/jackcess/impl/DatabaseImpl.java | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/main/java/com') diff --git a/src/main/java/com/healthmarketscience/jackcess/Database.java b/src/main/java/com/healthmarketscience/jackcess/Database.java index 7a27f69..7e9dd85 100644 --- a/src/main/java/com/healthmarketscience/jackcess/Database.java +++ b/src/main/java/com/healthmarketscience/jackcess/Database.java @@ -129,8 +129,8 @@ public interface Database extends Iterable, Closeable, Flushable public static final String ALLOW_AUTONUM_INSERT_PROPERTY = "com.healthmarketscience.jackcess.allowAutoNumberInsert"; - /** system property which can be used to enable expression evaluation - * (currently experimental). Defaults to {@code false}. + /** system property which can be used to disable expression evaluation + * if necessary. Defaults to {@code true}. * @usage _general_field_ */ public static final String ENABLE_EXPRESSION_EVALUATION_PROPERTY = @@ -514,14 +514,14 @@ public interface Database extends Iterable
, Closeable, Flushable /** * Gets the current expression evaluation policy. Expression evaluation is - * currently an experimental feature, and is therefore disabled by default. + * enabled by default but can be disabled if necessary. */ public boolean isEvaluateExpressions(); /** * Sets the current expression evaluation policy. Expression evaluation is - * currently an experimental feature, and is therefore disabled by default. - * If {@code null}, resets to the default value. + * enabled by default but can be disabled if necessary. If {@code null}, + * resets to the default value. * @usage _intermediate_method_ */ public void setEvaluateExpressions(Boolean evaluateExpressions); diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java index 3a63818..71b4c5e 100644 --- a/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java +++ b/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java @@ -2100,7 +2100,7 @@ public class DatabaseImpl implements Database, DateTimeContext /** * Returns the default enable expression evaluation policy. This defaults to - * {@code false}, but can be overridden using the system + * {@code true}, but can be overridden using the system * property {@value com.healthmarketscience.jackcess.Database#ENABLE_EXPRESSION_EVALUATION_PROPERTY}. * @usage _advanced_method_ */ @@ -2110,7 +2110,7 @@ public class DatabaseImpl implements Database, DateTimeContext if(prop != null) { return Boolean.TRUE.toString().equalsIgnoreCase(prop); } - return false; + return true; } /** -- cgit v1.2.3