HorizonNet commented on a change in pull request #1034: HBASE-23622 Reduced the 
number of Checkstyle violations in hbase-common
URL: https://github.com/apache/hbase/pull/1034#discussion_r366444309
 
 

 ##########
 File path: 
hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java
 ##########
 @@ -560,8 +558,7 @@ private static void invokeSetStoragePolicy(final 
FileSystem fs, final Path path,
     Method m = null;
     Exception toThrow = null;
     try {
-      m = fs.getClass().getDeclaredMethod("setStoragePolicy",
-        new Class<?>[] { Path.class, String.class });
+      m = fs.getClass().getDeclaredMethod("setStoragePolicy", Path.class, 
String.class);
 
 Review comment:
   Removed the reflection part. Will create additional backports for branch-1.4 
and branch-1.3.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to