diff --git a/buildSrc/src/main/resources/checkstyle.xml b/buildSrc/src/main/resources/checkstyle.xml index c603edc353d5f..7a59ee5e0fa8b 100644 --- a/buildSrc/src/main/resources/checkstyle.xml +++ b/buildSrc/src/main/resources/checkstyle.xml @@ -18,7 +18,7 @@ - + + + + + + + + + + + + + + + diff --git a/x-pack/plugin/sql/jdbc/src/main/java/org/elasticsearch/xpack/sql/jdbc/JdbcResultSetMetaData.java b/x-pack/plugin/sql/jdbc/src/main/java/org/elasticsearch/xpack/sql/jdbc/JdbcResultSetMetaData.java index d860c6daaa1ab..75e03a240bc96 100644 --- a/x-pack/plugin/sql/jdbc/src/main/java/org/elasticsearch/xpack/sql/jdbc/JdbcResultSetMetaData.java +++ b/x-pack/plugin/sql/jdbc/src/main/java/org/elasticsearch/xpack/sql/jdbc/JdbcResultSetMetaData.java @@ -72,7 +72,7 @@ public int getColumnDisplaySize(int column) throws SQLException { @Override public String getColumnLabel(int column) throws SQLException { JdbcColumnInfo info = column(column); - return true == EMPTY.equals(info.label) ? info.name : info.label; + return EMPTY.equals(info.label) ? info.name : info.label; } @Override @@ -158,4 +158,4 @@ private JdbcColumnInfo column(int column) throws SQLException { public String toString() { return format(Locale.ROOT, "%s(%s)", getClass().getSimpleName(), columns); } -} \ No newline at end of file +}