You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by st...@apache.org on 2014/10/16 23:42:42 UTC

git commit: -couple of IDE hinted cleanups: unused imports, position of [] in array declarations

Repository: incubator-slider
Updated Branches:
  refs/heads/develop b99019633 -> 0b419a8bd


-couple of IDE hinted cleanups: unused imports, position of [] in array declarations


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/0b419a8b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/0b419a8b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/0b419a8b

Branch: refs/heads/develop
Commit: 0b419a8bde7ade4075d314cf45fa9d45acc659c7
Parents: b990196
Author: Steve Loughran <st...@apache.org>
Authored: Thu Oct 16 14:42:23 2014 -0700
Committer: Steve Loughran <st...@apache.org>
Committed: Thu Oct 16 14:42:23 2014 -0700

----------------------------------------------------------------------
 .../java/org/apache/slider/server/appmaster/SliderAppMaster.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/0b419a8b/slider-core/src/main/java/org/apache/slider/server/appmaster/SliderAppMaster.java
----------------------------------------------------------------------
diff --git a/slider-core/src/main/java/org/apache/slider/server/appmaster/SliderAppMaster.java b/slider-core/src/main/java/org/apache/slider/server/appmaster/SliderAppMaster.java
index 119c6ab..06d3597 100644
--- a/slider-core/src/main/java/org/apache/slider/server/appmaster/SliderAppMaster.java
+++ b/slider-core/src/main/java/org/apache/slider/server/appmaster/SliderAppMaster.java
@@ -23,7 +23,6 @@ import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Preconditions;
 import com.google.protobuf.BlockingService;
 import org.apache.hadoop.conf.Configuration;
-import org.apache.hadoop.fs.CommonConfigurationKeysPublic;
 import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.hdfs.DFSConfigKeys;
 import org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier;
@@ -32,7 +31,6 @@ import org.apache.hadoop.io.DataOutputBuffer;
 import org.apache.hadoop.ipc.ProtocolSignature;
 import org.apache.hadoop.registry.client.binding.RegistryUtils;
 import org.apache.hadoop.security.Credentials;
-import org.apache.hadoop.security.SaslRpcServer;
 import org.apache.hadoop.security.UserGroupInformation;
 import org.apache.hadoop.security.token.Token;
 import org.apache.hadoop.security.token.TokenIdentifier;
@@ -1926,7 +1924,7 @@ public class SliderAppMaster extends AbstractSliderLaunchedService
     // the login is via a keytab (see above)
     Credentials credentials = new Credentials(containerCredentials);
     ByteBuffer tokens = null;
-    Token<? extends TokenIdentifier> hdfsTokens[] =
+    Token<? extends TokenIdentifier>[] hdfsTokens =
         getClusterFS().getFileSystem().addDelegationTokens(
             UserGroupInformation.getLoginUser().getShortUserName(), credentials);
     if (hdfsTokens.length > 0) {