diff --git a/core/trino-main/src/main/java/io/trino/SystemSessionProperties.java b/core/trino-main/src/main/java/io/trino/SystemSessionProperties.java index 6f236593a001..e28fcc56c587 100644 --- a/core/trino-main/src/main/java/io/trino/SystemSessionProperties.java +++ b/core/trino-main/src/main/java/io/trino/SystemSessionProperties.java @@ -1155,7 +1155,7 @@ public static int getMaxGroupingSets(Session session) private static void validateHideInaccessibleColumns(boolean value, boolean defaultValue) { - if (defaultValue == true && value == false) { + if (defaultValue && !value) { throw new TrinoException(INVALID_SESSION_PROPERTY, format("%s cannot be disabled with session property when it was enabled with configuration", HIDE_INACCESSIBLE_COLUMNS)); } } diff --git a/core/trino-main/src/main/java/io/trino/metadata/MetadataListing.java b/core/trino-main/src/main/java/io/trino/metadata/MetadataListing.java index 169944076bf9..7fcbf9791d33 100644 --- a/core/trino-main/src/main/java/io/trino/metadata/MetadataListing.java +++ b/core/trino-main/src/main/java/io/trino/metadata/MetadataListing.java @@ -210,7 +210,7 @@ public static Map> listTableColumns(Sessio } } - if (redirectionSucceeded == false) { + if (!redirectionSucceeded) { return; } diff --git a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/InternalHiveSplit.java b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/InternalHiveSplit.java index edd47f67c40b..49d98702c12f 100644 --- a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/InternalHiveSplit.java +++ b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/InternalHiveSplit.java @@ -56,7 +56,7 @@ public class InternalHiveSplit private final OptionalInt readBucketNumber; private final OptionalInt tableBucketNumber; // This supplier returns an unused statementId, to guarantee that created split - // files do not collide. Successive calls return the the next sequential integer, + // files do not collide. Successive calls return the next sequential integer, // starting with zero. private final Supplier statementIdSupplier; private final boolean splittable;