Merge "Remove unused @SuppressWarnings"

This commit is contained in:
David Pursehouse 2013-11-29 08:08:53 +00:00 committed by Gerrit Code Review
commit 85c458b4d8
2 changed files with 1 additions and 6 deletions

View File

@ -111,7 +111,7 @@ public class DefaultCacheFactory implements MemoryCacheFactory {
return !Strings.isNullOrEmpty(cfg.getString("cache", name, var)); return !Strings.isNullOrEmpty(cfg.getString("cache", name, var));
} }
@SuppressWarnings({"rawtypes", "unchecked"}) @SuppressWarnings("unchecked")
private static <K, V> CacheBuilder<K, V> newCacheBuilder() { private static <K, V> CacheBuilder<K, V> newCacheBuilder() {
return (CacheBuilder<K, V>) CacheBuilder.newBuilder(); return (CacheBuilder<K, V>) CacheBuilder.newBuilder();
} }

View File

@ -352,7 +352,6 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener {
return r.toString(); return r.toString();
} }
@SuppressWarnings("unchecked")
private void initProviderBouncyCastle() { private void initProviderBouncyCastle() {
setKeyExchangeFactories(Arrays.<NamedFactory<KeyExchange>> asList( setKeyExchangeFactories(Arrays.<NamedFactory<KeyExchange>> asList(
new DHG14.Factory(), new DHG1.Factory())); new DHG14.Factory(), new DHG1.Factory()));
@ -360,7 +359,6 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener {
new BouncyCastleRandom.Factory())); new BouncyCastleRandom.Factory()));
} }
@SuppressWarnings("unchecked")
private void initProviderJce() { private void initProviderJce() {
setKeyExchangeFactories(Arrays setKeyExchangeFactories(Arrays
.<NamedFactory<KeyExchange>> asList(new DHG1.Factory())); .<NamedFactory<KeyExchange>> asList(new DHG1.Factory()));
@ -472,13 +470,11 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener {
return null; return null;
} }
@SuppressWarnings("unchecked")
private void initSignatures() { private void initSignatures() {
setSignatureFactories(Arrays.<NamedFactory<Signature>> asList( setSignatureFactories(Arrays.<NamedFactory<Signature>> asList(
new SignatureDSA.Factory(), new SignatureRSA.Factory())); new SignatureDSA.Factory(), new SignatureRSA.Factory()));
} }
@SuppressWarnings("unchecked")
private void initCompression() { private void initCompression() {
// Always disable transparent compression. The majority of our data // Always disable transparent compression. The majority of our data
// transfer is highly compressed Git pack files. We cannot make them // transfer is highly compressed Git pack files. We cannot make them
@ -488,7 +484,6 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener {
.<NamedFactory<Compression>> asList(new CompressionNone.Factory())); .<NamedFactory<Compression>> asList(new CompressionNone.Factory()));
} }
@SuppressWarnings("unchecked")
private void initChannels() { private void initChannels() {
setChannelFactories(Arrays.<NamedFactory<Channel>> asList( setChannelFactories(Arrays.<NamedFactory<Channel>> asList(
new ChannelSession.Factory(), // new ChannelSession.Factory(), //