提交 77a8802c authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Avoid contitional operators in form ? true : false

上级 d90ddbf6
......@@ -79,7 +79,7 @@ public class Mode {
* [OFFSET .. ROW|ROWS] [FETCH FIRST .. ROW|ROWS ONLY]
* as an alternative for LIMIT .. OFFSET.
*/
public boolean supportOffsetFetch = Constants.VERSION_MINOR >= 4 ? true : false;
public boolean supportOffsetFetch = Constants.VERSION_MINOR >= 4;
/**
* The system columns 'CTID' and 'OID' are supported.
......
......@@ -344,7 +344,7 @@ public class SysProperties {
*/
public static final boolean OLD_STYLE_OUTER_JOIN =
Utils.getProperty("h2.oldStyleOuterJoin",
Constants.VERSION_MINOR >= 4 ? false : true);
Constants.VERSION_MINOR < 4);
/**
* System property <code>h2.pgClientEncoding</code> (default: UTF-8).<br />
......@@ -401,7 +401,7 @@ public class SysProperties {
*/
public static final boolean SORT_BINARY_UNSIGNED =
Utils.getProperty("h2.sortBinaryUnsigned",
Constants.VERSION_MINOR >= 4 ? true : false);
Constants.VERSION_MINOR >= 4);
/**
* System property <code>h2.sortNullsHigh</code> (default: false).<br />
......@@ -455,7 +455,7 @@ public class SysProperties {
*/
public static final boolean IMPLICIT_RELATIVE_PATH =
Utils.getProperty("h2.implicitRelativePath",
Constants.VERSION_MINOR >= 4 ? false : true);
Constants.VERSION_MINOR < 4);
/**
* System property <code>h2.urlMap</code> (default: null).<br />
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论