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;
|
return null;
|
||||||
}
|
}
|
||||||
hosts = extractedHosts;
|
hosts = extractedHosts;
|
||||||
logger.trace("auto-resolved hosts to {}", extractedHosts);
|
logger.trace("auto-resolved hosts to {}", (Object)extractedHosts);
|
||||||
boundToLocalNode = true;
|
boundToLocalNode = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ public class FieldLevelSecurityRandomTests extends ShieldIntegTestCase {
|
||||||
doc.put(field, "value");
|
doc.put(field, "value");
|
||||||
}
|
}
|
||||||
assertAcked(client().admin().indices().prepareCreate("test")
|
assertAcked(client().admin().indices().prepareCreate("test")
|
||||||
.addMapping("type1", fieldMappers)
|
.addMapping("type1", (Object[])fieldMappers)
|
||||||
);
|
);
|
||||||
client().prepareIndex("test", "type1", "1").setSource(doc).setRefresh(true).get();
|
client().prepareIndex("test", "type1", "1").setSource(doc).setRefresh(true).get();
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class SessionFactoryTests extends ESTestCase {
|
||||||
@Test
|
@Test
|
||||||
public void connectionFactoryReturnsCorrectLDAPConnectionOptionsWithDefaultSettings() {
|
public void connectionFactoryReturnsCorrectLDAPConnectionOptionsWithDefaultSettings() {
|
||||||
SessionFactory factory = createSessionFactory();
|
SessionFactory factory = createSessionFactory();
|
||||||
LDAPConnectionOptions options = factory.connectionOptions(Settings.EMPTY);
|
LDAPConnectionOptions options = SessionFactory.connectionOptions(Settings.EMPTY);
|
||||||
assertThat(options.followReferrals(), is(equalTo(true)));
|
assertThat(options.followReferrals(), is(equalTo(true)));
|
||||||
assertThat(options.allowConcurrentSocketFactoryUse(), is(equalTo(true)));
|
assertThat(options.allowConcurrentSocketFactoryUse(), is(equalTo(true)));
|
||||||
assertThat(options.getConnectTimeoutMillis(), is(equalTo(5000)));
|
assertThat(options.getConnectTimeoutMillis(), is(equalTo(5000)));
|
||||||
|
@ -39,7 +39,7 @@ public class SessionFactoryTests extends ESTestCase {
|
||||||
.put(SessionFactory.FOLLOW_REFERRALS_SETTING, "false")
|
.put(SessionFactory.FOLLOW_REFERRALS_SETTING, "false")
|
||||||
.build();
|
.build();
|
||||||
SessionFactory factory = createSessionFactory();
|
SessionFactory factory = createSessionFactory();
|
||||||
LDAPConnectionOptions options = factory.connectionOptions(settings);
|
LDAPConnectionOptions options = SessionFactory.connectionOptions(settings);
|
||||||
assertThat(options.followReferrals(), is(equalTo(false)));
|
assertThat(options.followReferrals(), is(equalTo(false)));
|
||||||
assertThat(options.allowConcurrentSocketFactoryUse(), is(equalTo(true)));
|
assertThat(options.allowConcurrentSocketFactoryUse(), is(equalTo(true)));
|
||||||
assertThat(options.getConnectTimeoutMillis(), is(equalTo(10)));
|
assertThat(options.getConnectTimeoutMillis(), is(equalTo(10)));
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class AsyncTriggerListener implements TriggerEngine.Listener {
|
||||||
try {
|
try {
|
||||||
executionService.processEventsAsync(events);
|
executionService.processEventsAsync(events);
|
||||||
} catch (Exception e) {
|
} 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 {
|
try {
|
||||||
executionService.processEventsSync(events);
|
executionService.processEventsSync(events);
|
||||||
} catch (Exception e) {
|
} 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