This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch 5.1 in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/5.1 by this push: new 4446e2f PHOENIX-6594 Clean up vararg warnings flagged as errors by Eclipse 4446e2f is described below commit 4446e2f90ea9cb63c4a9285d0397136e42f7b213 Author: Istvan Toth <st...@apache.org> AuthorDate: Wed Nov 17 05:51:40 2021 +0100 PHOENIX-6594 Clean up vararg warnings flagged as errors by Eclipse --- .../src/main/java/org/apache/phoenix/mapreduce/index/IndexToolUtil.java | 2 +- .../test/java/org/apache/phoenix/expression/MathTrigFunctionTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexToolUtil.java b/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexToolUtil.java index 294e58c..ad95b86 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexToolUtil.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexToolUtil.java @@ -74,7 +74,7 @@ public class IndexToolUtil { Preconditions.checkNotNull(connection); final String alterQuery = String.format(ALTER_INDEX_QUERY_TEMPLATE,indexTable,masterTable,state.name()); connection.createStatement().execute(alterQuery); - LOGGER.info(" Updated the status of the index {} on {} to {} " , new String[] {indexTable , masterTable, state.name()}); + LOGGER.info(" Updated the status of the index {} on {} to {} ", indexTable, masterTable, state.name()); } } diff --git a/phoenix-core/src/test/java/org/apache/phoenix/expression/MathTrigFunctionTest.java b/phoenix-core/src/test/java/org/apache/phoenix/expression/MathTrigFunctionTest.java index 533f32e..a49db73 100644 --- a/phoenix-core/src/test/java/org/apache/phoenix/expression/MathTrigFunctionTest.java +++ b/phoenix-core/src/test/java/org/apache/phoenix/expression/MathTrigFunctionTest.java @@ -69,7 +69,7 @@ public class MathTrigFunctionTest { @Parameters(name = "{0} {1}") public static synchronized Collection<Object> data() { - return Arrays.asList(new Object[][]{ + return Arrays.asList((Object[]) new Object[][]{ { new BigDecimal[]{BigDecimal.valueOf(1.0), BigDecimal.valueOf(0.0), BigDecimal.valueOf(-1.0), BigDecimal.valueOf(123.1234),