Remove some warnings caught by -Xlint
Original commit: elastic/x-pack-elasticsearch@50bea927cf
This commit is contained in:
parent
2ab0db4373
commit
5dd5f525b5
|
@ -364,7 +364,7 @@ public class HttpESExporter extends AbstractExporter<HttpESExporter> implements
|
|||
return null;
|
||||
}
|
||||
hosts = extractedHosts;
|
||||
logger.trace("auto-resolved hosts to {}", extractedHosts);
|
||||
logger.trace("auto-resolved hosts to {}", (Object)extractedHosts);
|
||||
boundToLocalNode = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ public class FieldLevelSecurityRandomTests extends ShieldIntegTestCase {
|
|||
doc.put(field, "value");
|
||||
}
|
||||
assertAcked(client().admin().indices().prepareCreate("test")
|
||||
.addMapping("type1", fieldMappers)
|
||||
.addMapping("type1", (Object[])fieldMappers)
|
||||
);
|
||||
client().prepareIndex("test", "type1", "1").setSource(doc).setRefresh(true).get();
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ public class SessionFactoryTests extends ESTestCase {
|
|||
@Test
|
||||
public void connectionFactoryReturnsCorrectLDAPConnectionOptionsWithDefaultSettings() {
|
||||
SessionFactory factory = createSessionFactory();
|
||||
LDAPConnectionOptions options = factory.connectionOptions(Settings.EMPTY);
|
||||
LDAPConnectionOptions options = SessionFactory.connectionOptions(Settings.EMPTY);
|
||||
assertThat(options.followReferrals(), is(equalTo(true)));
|
||||
assertThat(options.allowConcurrentSocketFactoryUse(), is(equalTo(true)));
|
||||
assertThat(options.getConnectTimeoutMillis(), is(equalTo(5000)));
|
||||
|
@ -39,7 +39,7 @@ public class SessionFactoryTests extends ESTestCase {
|
|||
.put(SessionFactory.FOLLOW_REFERRALS_SETTING, "false")
|
||||
.build();
|
||||
SessionFactory factory = createSessionFactory();
|
||||
LDAPConnectionOptions options = factory.connectionOptions(settings);
|
||||
LDAPConnectionOptions options = SessionFactory.connectionOptions(settings);
|
||||
assertThat(options.followReferrals(), is(equalTo(false)));
|
||||
assertThat(options.allowConcurrentSocketFactoryUse(), is(equalTo(true)));
|
||||
assertThat(options.getConnectTimeoutMillis(), is(equalTo(10)));
|
||||
|
|
|
@ -33,7 +33,7 @@ public class AsyncTriggerListener implements TriggerEngine.Listener {
|
|||
try {
|
||||
executionService.processEventsAsync(events);
|
||||
} catch (Exception e) {
|
||||
logger.error("failed to process triggered events [{}]", e, Iterables.toArray(events, TriggerEvent.class));
|
||||
logger.error("failed to process triggered events [{}]", e, (Object)Iterables.toArray(events, TriggerEvent.class));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ public class SyncTriggerListener implements TriggerEngine.Listener {
|
|||
try {
|
||||
executionService.processEventsSync(events);
|
||||
} catch (Exception e) {
|
||||
logger.error("failed to process triggered events [{}]", e, Iterables.toArray(events, TriggerEvent.class));
|
||||
logger.error("failed to process triggered events [{}]", e, (Object)Iterables.toArray(events, TriggerEvent.class));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue