Remove unneeded SuppressWarnings
Original commit: elastic/x-pack-elasticsearch@46d86d555e
This commit is contained in:
parent
9108001c73
commit
38dcbc50b6
|
@ -241,7 +241,6 @@ public class InternalAuthenticationService extends AbstractComponent implements
|
||||||
* @throws ElasticsearchSecurityException If none of the configured realms successfully authenticated the
|
* @throws ElasticsearchSecurityException If none of the configured realms successfully authenticated the
|
||||||
* request
|
* request
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
User authenticateWithRealms(String action, TransportMessage<?> message, User fallbackUser) throws ElasticsearchSecurityException {
|
User authenticateWithRealms(String action, TransportMessage<?> message, User fallbackUser) throws ElasticsearchSecurityException {
|
||||||
AuthenticationToken token;
|
AuthenticationToken token;
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -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
|
* 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.
|
* select the realms (by their unique names) and/or users (by their usernames) that should be evicted.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public ClearRealmCacheRequestBuilder prepareClearRealmCache() {
|
public ClearRealmCacheRequestBuilder prepareClearRealmCache() {
|
||||||
return new ClearRealmCacheRequestBuilder(client);
|
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
|
* 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.
|
* 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) {
|
public void clearRealmCache(ClearRealmCacheRequest request, ActionListener<ClearRealmCacheResponse> listener) {
|
||||||
client.execute(ClearRealmCacheAction.INSTANCE, request, 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
|
* 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.
|
* 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) {
|
public ActionFuture<ClearRealmCacheResponse> clearRealmCache(ClearRealmCacheRequest request) {
|
||||||
return client.execute(ClearRealmCacheAction.INSTANCE, request);
|
return client.execute(ClearRealmCacheAction.INSTANCE, request);
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,7 +144,6 @@ public class ShieldServerTransportService extends TransportService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public void messageReceived(T request, TransportChannel channel, Task task) throws Exception {
|
public void messageReceived(T request, TransportChannel channel, Task task) throws Exception {
|
||||||
try {
|
try {
|
||||||
if (licenseState.securityEnabled()) {
|
if (licenseState.securityEnabled()) {
|
||||||
|
|
Loading…
Reference in New Issue