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 <ctubb...@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) {

Reply via email to