Remove unneeded SuppressWarnings

Original commit: elastic/x-pack-elasticsearch@46d86d555e
This commit is contained in:
Nik Everett 2016-01-06 20:06:43 -05:00
parent 9108001c73
commit 38dcbc50b6
3 changed files with 0 additions and 5 deletions

View File

@ -241,7 +241,6 @@ public class InternalAuthenticationService extends AbstractComponent implements
* @throws ElasticsearchSecurityException If none of the configured realms successfully authenticated the
* request
*/
@SuppressWarnings("unchecked")
User authenticateWithRealms(String action, TransportMessage<?> message, User fallbackUser) throws ElasticsearchSecurityException {
AuthenticationToken token;
try {

View File

@ -28,7 +28,6 @@ public class ShieldAuthcClient {
* Clears the realm caches. It's possible to clear all user entries from all realms in the cluster or alternatively
* select the realms (by their unique names) and/or users (by their usernames) that should be evicted.
*/
@SuppressWarnings("unchecked")
public ClearRealmCacheRequestBuilder prepareClearRealmCache() {
return new ClearRealmCacheRequestBuilder(client);
}
@ -37,7 +36,6 @@ public class ShieldAuthcClient {
* Clears the realm caches. It's possible to clear all user entries from all realms in the cluster or alternatively
* select the realms (by their unique names) and/or users (by their usernames) that should be evicted.
*/
@SuppressWarnings("unchecked")
public void clearRealmCache(ClearRealmCacheRequest request, ActionListener<ClearRealmCacheResponse> listener) {
client.execute(ClearRealmCacheAction.INSTANCE, request, listener);
}
@ -46,7 +44,6 @@ public class ShieldAuthcClient {
* Clears the realm caches. It's possible to clear all user entries from all realms in the cluster or alternatively
* select the realms (by their unique names) and/or users (by their usernames) that should be evicted.
*/
@SuppressWarnings("unchecked")
public ActionFuture<ClearRealmCacheResponse> clearRealmCache(ClearRealmCacheRequest request) {
return client.execute(ClearRealmCacheAction.INSTANCE, request);
}

View File

@ -144,7 +144,6 @@ public class ShieldServerTransportService extends TransportService {
}
@Override
@SuppressWarnings("unchecked")
public void messageReceived(T request, TransportChannel channel, Task task) throws Exception {
try {
if (licenseState.securityEnabled()) {