This is an automated email from the ASF dual-hosted git repository.

mmiller 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 3d40866  Inline private method in TabletFileUtil
3d40866 is described below

commit 3d40866c613eeb7e0912405cd7075d31bc14fb97
Author: Mike Miller <mmil...@apache.org>
AuthorDate: Fri Mar 6 10:38:52 2020 -0500

    Inline private method in TabletFileUtil
---
 .../java/org/apache/accumulo/core/metadata/TabletFileUtil.java | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git 
a/core/src/main/java/org/apache/accumulo/core/metadata/TabletFileUtil.java 
b/core/src/main/java/org/apache/accumulo/core/metadata/TabletFileUtil.java
index b586749..372c017 100644
--- a/core/src/main/java/org/apache/accumulo/core/metadata/TabletFileUtil.java
+++ b/core/src/main/java/org/apache/accumulo/core/metadata/TabletFileUtil.java
@@ -36,13 +36,9 @@ public class TabletFileUtil {
   }
 
   public static Path validate(Path path) {
-    check(path);
-    return path;
-  }
-
-  private static void check(Path p) {
-    if (p.toUri().getScheme() == null) {
-      throw new IllegalArgumentException("Invalid path provided, no scheme in 
" + p);
+    if (path.toUri().getScheme() == null) {
+      throw new IllegalArgumentException("Invalid path provided, no scheme in 
" + path);
     }
+    return path;
   }
 }

Reply via email to