Remove some warnings caught by -Xlint

Original commit: elastic/x-pack-elasticsearch@50bea927cf
This commit is contained in:
Ryan Ernst 2015-09-09 00:16:13 -07:00
parent 2ab0db4373
commit 5dd5f525b5
5 changed files with 6 additions and 6 deletions

View File

@ -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;
} }

View File

@ -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();

View File

@ -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)));

View File

@ -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));
} }
} }

View File

@ -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));
} }
} }