Eddie comment regarding ternary operation
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/bcffce98 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/bcffce98 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/bcffce98 Branch: refs/heads/omid Commit: bcffce98b9f605f5b455376798aea0e979630837 Parents: cea251c Author: Ohad Shacham <[email protected]> Authored: Sun Feb 19 09:12:25 2017 +0200 Committer: Ohad Shacham <[email protected]> Committed: Sun Feb 19 09:12:25 2017 +0200 ---------------------------------------------------------------------- .../org/apache/phoenix/transaction/TephraTransactionContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/bcffce98/phoenix-core/src/main/java/org/apache/phoenix/transaction/TephraTransactionContext.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/transaction/TephraTransactionContext.java b/phoenix-core/src/main/java/org/apache/phoenix/transaction/TephraTransactionContext.java index 81c9fd1..9c7337d 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/transaction/TephraTransactionContext.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/transaction/TephraTransactionContext.java @@ -34,7 +34,7 @@ public class TephraTransactionContext implements PhoenixTransactionContext { public TephraTransactionContext(PhoenixTransactionContext ctx, PhoenixConnection connection, boolean threadSafe) { - this.txServiceClient = connection.getQueryServices().getTransactionSystemClient(); // TODO Should be wrapped for Omid side usage + this.txServiceClient = connection.getQueryServices().getTransactionSystemClient(); assert(ctx instanceof TephraTransactionContext); TephraTransactionContext tephraTransactionContext = (TephraTransactionContext) ctx; @@ -191,7 +191,7 @@ public class TephraTransactionContext implements PhoenixTransactionContext { @Override public boolean isTransactionRunning() { if (this.txContext != null) { - return (this.txContext.getCurrentTransaction() != null) ? true : false; + return (this.txContext.getCurrentTransaction() != null); } if (this.tx != null) {
