Remove unused @SuppressWarnings
Eclipse Kepler says these are not necessary. Change-Id: Ie7af85e512532b084a1a13df37792ffec11680fc
This commit is contained in:
		 Shawn Pearce
					Shawn Pearce
				
			
				
					committed by
					
						 David Ostrovsky
						David Ostrovsky
					
				
			
			
				
	
			
			
			 David Ostrovsky
						David Ostrovsky
					
				
			
						parent
						
							42e2944d3a
						
					
				
				
					commit
					74966d5b04
				
			| @@ -111,7 +111,7 @@ public class DefaultCacheFactory implements MemoryCacheFactory { | ||||
|     return !Strings.isNullOrEmpty(cfg.getString("cache", name, var)); | ||||
|   } | ||||
|  | ||||
|   @SuppressWarnings({"rawtypes", "unchecked"}) | ||||
|   @SuppressWarnings("unchecked") | ||||
|   private static <K, V> CacheBuilder<K, V> newCacheBuilder() { | ||||
|     return (CacheBuilder<K, V>) CacheBuilder.newBuilder(); | ||||
|   } | ||||
|   | ||||
| @@ -352,7 +352,6 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener { | ||||
|     return r.toString(); | ||||
|   } | ||||
|  | ||||
|   @SuppressWarnings("unchecked") | ||||
|   private void initProviderBouncyCastle() { | ||||
|     setKeyExchangeFactories(Arrays.<NamedFactory<KeyExchange>> asList( | ||||
|         new DHG14.Factory(), new DHG1.Factory())); | ||||
| @@ -360,7 +359,6 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener { | ||||
|         new BouncyCastleRandom.Factory())); | ||||
|   } | ||||
|  | ||||
|   @SuppressWarnings("unchecked") | ||||
|   private void initProviderJce() { | ||||
|     setKeyExchangeFactories(Arrays | ||||
|         .<NamedFactory<KeyExchange>> asList(new DHG1.Factory())); | ||||
| @@ -472,13 +470,11 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener { | ||||
|     return null; | ||||
|   } | ||||
|  | ||||
|   @SuppressWarnings("unchecked") | ||||
|   private void initSignatures() { | ||||
|     setSignatureFactories(Arrays.<NamedFactory<Signature>> asList( | ||||
|         new SignatureDSA.Factory(), new SignatureRSA.Factory())); | ||||
|   } | ||||
|  | ||||
|   @SuppressWarnings("unchecked") | ||||
|   private void initCompression() { | ||||
|     // Always disable transparent compression. The majority of our data | ||||
|     // 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())); | ||||
|   } | ||||
|  | ||||
|   @SuppressWarnings("unchecked") | ||||
|   private void initChannels() { | ||||
|     setChannelFactories(Arrays.<NamedFactory<Channel>> asList( | ||||
|         new ChannelSession.Factory(), // | ||||
|   | ||||
		Reference in New Issue
	
	Block a user