accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [accumulo] branch master updated: Fix newInstance() deprecation warning in PrintInfo
Date Fri, 13 Mar 2020 21:10:10 GMT
This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/master by this push:
     new c888abc  Fix newInstance() deprecation warning in PrintInfo
c888abc is described below

commit c888abccd2c72000b23bb6b6d81c40cd6c9fa259
Author: Christopher Tubbs <ctubbsii@apache.org>
AuthorDate: Fri Mar 13 17:09:27 2020 -0400

    Fix newInstance() deprecation warning in PrintInfo
---
 core/src/main/java/org/apache/accumulo/core/file/rfile/PrintInfo.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/accumulo/core/file/rfile/PrintInfo.java b/core/src/main/java/org/apache/accumulo/core/file/rfile/PrintInfo.java
index 65d1f3b..fcdd1d1 100644
--- a/core/src/main/java/org/apache/accumulo/core/file/rfile/PrintInfo.java
+++ b/core/src/main/java/org/apache/accumulo/core/file/rfile/PrintInfo.java
@@ -249,7 +249,7 @@ public class PrintInfo implements KeywordExecutable {
         if (opts.formatterClazz != null) {
           final Class<? extends BiFunction<Key,Value,String>> formatterClass
=
               getFormatter(opts.formatterClazz);
-          formatter = formatterClass.newInstance();
+          formatter = formatterClass.getConstructor().newInstance();
         } else if (opts.fullKeys) {
           formatter = (key, value) -> key.toStringNoTruncate() + " -> " + value;
         } else if (opts.dump) {


Mime
View raw message