diff --git a/marvel/src/main/java/org/elasticsearch/marvel/agent/exporter/HttpESExporter.java b/marvel/src/main/java/org/elasticsearch/marvel/agent/exporter/HttpESExporter.java index c775c0599c4..80a188a127f 100644 --- a/marvel/src/main/java/org/elasticsearch/marvel/agent/exporter/HttpESExporter.java +++ b/marvel/src/main/java/org/elasticsearch/marvel/agent/exporter/HttpESExporter.java @@ -364,7 +364,7 @@ public class HttpESExporter extends AbstractExporter implements return null; } hosts = extractedHosts; - logger.trace("auto-resolved hosts to {}", extractedHosts); + logger.trace("auto-resolved hosts to {}", (Object)extractedHosts); boundToLocalNode = true; } diff --git a/shield/src/test/java/org/elasticsearch/integration/FieldLevelSecurityRandomTests.java b/shield/src/test/java/org/elasticsearch/integration/FieldLevelSecurityRandomTests.java index c983f1cda2d..d34d988a37d 100644 --- a/shield/src/test/java/org/elasticsearch/integration/FieldLevelSecurityRandomTests.java +++ b/shield/src/test/java/org/elasticsearch/integration/FieldLevelSecurityRandomTests.java @@ -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(); diff --git a/shield/src/test/java/org/elasticsearch/shield/authc/ldap/support/SessionFactoryTests.java b/shield/src/test/java/org/elasticsearch/shield/authc/ldap/support/SessionFactoryTests.java index a0f4f92245f..d28e2d9d29c 100644 --- a/shield/src/test/java/org/elasticsearch/shield/authc/ldap/support/SessionFactoryTests.java +++ b/shield/src/test/java/org/elasticsearch/shield/authc/ldap/support/SessionFactoryTests.java @@ -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))); diff --git a/watcher/src/main/java/org/elasticsearch/watcher/execution/AsyncTriggerListener.java b/watcher/src/main/java/org/elasticsearch/watcher/execution/AsyncTriggerListener.java index afd9a0f54ca..6999f6312e3 100644 --- a/watcher/src/main/java/org/elasticsearch/watcher/execution/AsyncTriggerListener.java +++ b/watcher/src/main/java/org/elasticsearch/watcher/execution/AsyncTriggerListener.java @@ -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)); } } diff --git a/watcher/src/main/java/org/elasticsearch/watcher/execution/SyncTriggerListener.java b/watcher/src/main/java/org/elasticsearch/watcher/execution/SyncTriggerListener.java index 392ac94179e..aa2e5563503 100644 --- a/watcher/src/main/java/org/elasticsearch/watcher/execution/SyncTriggerListener.java +++ b/watcher/src/main/java/org/elasticsearch/watcher/execution/SyncTriggerListener.java @@ -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)); } }