aboutsummaryrefslogtreecommitdiff
path: root/contrib/storage-hbase/src
diff options
context:
space:
mode:
authorJacques Nadeau <jacques@apache.org>2016-02-05 10:45:32 -0800
committerJason Altekruse <altekrusejason@gmail.com>2016-02-05 19:50:44 -0800
commit83d460cfebbed8d70f4363dd21c95f1636f7472e (patch)
treecbed377c77d0b85848ace5968b70311c7ae9a443 /contrib/storage-hbase/src
parent2311843ba32cca7cdb401fbf1243a972586ba3f8 (diff)
DRILL-4358: Fix NPE in UserServer.close()
- Also remove untested CustomSerDe's from CustomTunnel. - Fix GuavaPatcher copy-paste comment mistake. closes #362
Diffstat (limited to 'contrib/storage-hbase/src')
-rw-r--r--contrib/storage-hbase/src/test/java/org/apache/drill/hbase/GuavaPatcher.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/contrib/storage-hbase/src/test/java/org/apache/drill/hbase/GuavaPatcher.java b/contrib/storage-hbase/src/test/java/org/apache/drill/hbase/GuavaPatcher.java
index 3e0cdeeb1..8f24da802 100644
--- a/contrib/storage-hbase/src/test/java/org/apache/drill/hbase/GuavaPatcher.java
+++ b/contrib/storage-hbase/src/test/java/org/apache/drill/hbase/GuavaPatcher.java
@@ -74,14 +74,8 @@ public class GuavaPatcher {
ClassPool cp = ClassPool.getDefault();
CtClass cc = cp.get("com.google.common.io.Closeables");
- // Expose the constructor for Stopwatch for old libraries who use the pattern new Stopwatch().start().
- for (CtConstructor c : cc.getConstructors()) {
- if (!Modifier.isStatic(c.getModifiers())) {
- c.setModifiers(Modifier.PUBLIC);
- }
- }
- // Add back the Stopwatch.elapsedMillis() method for old consumers.
+ // Add back the Closeables.closeQuietly() method for old consumers.
CtMethod newmethod = CtNewMethod.make(
"public static void closeQuietly(java.io.Closeable closeable) { try{closeable.close();}catch(Exception e){} }",
cc);