hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject svn commit: r1512137 - /hive/trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/DBTokenStore.java
Date Fri, 09 Aug 2013 05:13:16 GMT
Author: hashutosh
Date: Fri Aug  9 05:13:15 2013
New Revision: 1512137

URL: http://svn.apache.org/r1512137
Log:
HIVE-5017 : DBTokenStore gives compiler warnings (Gunther Hagleitner via Ashutosh Chauhan)

Modified:
    hive/trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/DBTokenStore.java

Modified: hive/trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/DBTokenStore.java
URL: http://svn.apache.org/viewvc/hive/trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/DBTokenStore.java?rev=1512137&r1=1512136&r2=1512137&view=diff
==============================================================================
--- hive/trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/DBTokenStore.java
(original)
+++ hive/trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/DBTokenStore.java
Fri Aug  9 05:13:15 2013
@@ -32,7 +32,7 @@ public class DBTokenStore implements Del
 
   @Override
   public String[] getMasterKeys() throws TokenStoreException {
-    return (String[])invokeOnRawStore("getMasterKeys", null, null);
+    return (String[])invokeOnRawStore("getMasterKeys", new Object[0]);
   }
 
   @Override
@@ -75,7 +75,7 @@ public class DBTokenStore implements Del
   @Override
   public List<DelegationTokenIdentifier> getAllDelegationTokenIdentifiers() throws
TokenStoreException{
 
-    List<String> tokenIdents = (List<String>)invokeOnRawStore("getAllTokenIdentifiers",
null, null);
+    List<String> tokenIdents = (List<String>)invokeOnRawStore("getAllTokenIdentifiers",
new Object[0]);
     List<DelegationTokenIdentifier> delTokenIdents = new ArrayList<DelegationTokenIdentifier>(tokenIdents.size());
 
     for (String tokenIdent : tokenIdents) {



Mime
View raw message