You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2021/11/17 10:54:27 UTC
[phoenix] branch master updated: PHOENIX-6594 Clean up vararg warnings flagged as errors by Eclipse
This is an automated email from the ASF dual-hosted git repository.
stoty pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/master by this push:
new 8676597 PHOENIX-6594 Clean up vararg warnings flagged as errors by Eclipse
8676597 is described below
commit 8676597a4cc6fb2559e18400922cc6758e44ab09
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),