From b7470ea46957142572ea341fa298a88700f92b2f Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Wed, 22 Jul 2015 09:38:22 -0400 Subject: [PATCH] Fix compilation/verify works Original commit: elastic/x-pack-elasticsearch@62001c83cb9b508b82cd2845554b15b1e19ed1e9 --- .../.settings/org.eclipse.core.resources.prefs | 6 ++++++ marvel/.settings/org.eclipse.jdt.core.prefs | 18 ++++++++++++++++++ marvel/.settings/org.eclipse.jdt.ui.prefs | 6 ++++++ .../marvel/MarvelPluginTests.java | 4 +--- .../license/LicenseIntegrationTests.java | 2 -- 5 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 marvel/.settings/org.eclipse.core.resources.prefs create mode 100644 marvel/.settings/org.eclipse.jdt.core.prefs create mode 100644 marvel/.settings/org.eclipse.jdt.ui.prefs diff --git a/marvel/.settings/org.eclipse.core.resources.prefs b/marvel/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000000..6fd0a9aab13 --- /dev/null +++ b/marvel/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/=UTF-8 \ No newline at end of file diff --git a/marvel/.settings/org.eclipse.jdt.core.prefs b/marvel/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..aefac3b3626 --- /dev/null +++ b/marvel/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,18 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=enabled +org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore +org.eclipse.jdt.core.compiler.annotation.nullable=org.elasticsearch.common.Nullable +org.eclipse.jdt.core.compiler.annotation.nullanalysis=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning +org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=warning +org.eclipse.jdt.core.compiler.problem.nullReference=warning +org.eclipse.jdt.core.compiler.problem.nullSpecViolation=warning +org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning +org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning +org.eclipse.jdt.core.compiler.source=1.7 +org.eclipse.jdt.core.formatter.lineSplit=140 +org.eclipse.jdt.core.formatter.tabulation.char=space +org.eclipse.jdt.core.formatter.tabulation.size=4 \ No newline at end of file diff --git a/marvel/.settings/org.eclipse.jdt.ui.prefs b/marvel/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..a42667f8698 --- /dev/null +++ b/marvel/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +formatter_settings_version=12 +# Intellij IDEA import order +org.eclipse.jdt.ui.importorder=;com;org;java;javax;\#; +# License header +org.eclipse.jdt.ui.text.custom_code_templates= \ No newline at end of file diff --git a/marvel/src/test/java/org/elasticsearch/marvel/MarvelPluginTests.java b/marvel/src/test/java/org/elasticsearch/marvel/MarvelPluginTests.java index 72627e5e104..bc9024b3421 100644 --- a/marvel/src/test/java/org/elasticsearch/marvel/MarvelPluginTests.java +++ b/marvel/src/test/java/org/elasticsearch/marvel/MarvelPluginTests.java @@ -7,11 +7,10 @@ package org.elasticsearch.marvel; import org.elasticsearch.action.admin.cluster.node.info.NodeInfo; import org.elasticsearch.action.admin.cluster.node.info.NodesInfoResponse; -import org.elasticsearch.action.admin.cluster.node.info.PluginInfo; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.license.plugin.LicensePlugin; import org.elasticsearch.marvel.agent.AgentService; -import org.elasticsearch.plugins.PluginsService; +import org.elasticsearch.plugins.PluginInfo; import org.elasticsearch.test.ElasticsearchIntegrationTest; import org.elasticsearch.test.ElasticsearchIntegrationTest.ClusterScope; import org.elasticsearch.tribe.TribeService; @@ -28,7 +27,6 @@ public class MarvelPluginTests extends ElasticsearchIntegrationTest { return Settings.settingsBuilder() .put(super.nodeSettings(nodeOrdinal)) .put("plugin.types", MarvelPlugin.class.getName() + "," + LicensePlugin.class.getName()) - .put(PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, false) .build(); } diff --git a/marvel/src/test/java/org/elasticsearch/marvel/license/LicenseIntegrationTests.java b/marvel/src/test/java/org/elasticsearch/marvel/license/LicenseIntegrationTests.java index 595ac88a362..0d9b92675ca 100644 --- a/marvel/src/test/java/org/elasticsearch/marvel/license/LicenseIntegrationTests.java +++ b/marvel/src/test/java/org/elasticsearch/marvel/license/LicenseIntegrationTests.java @@ -19,7 +19,6 @@ import org.elasticsearch.license.plugin.core.LicensesService; import org.elasticsearch.marvel.MarvelPlugin; import org.elasticsearch.marvel.mode.Mode; import org.elasticsearch.plugins.AbstractPlugin; -import org.elasticsearch.plugins.PluginsService; import org.elasticsearch.test.ElasticsearchIntegrationTest; import org.elasticsearch.test.ElasticsearchIntegrationTest.ClusterScope; import org.junit.Test; @@ -39,7 +38,6 @@ public class LicenseIntegrationTests extends ElasticsearchIntegrationTest { return Settings.settingsBuilder() .put(super.nodeSettings(nodeOrdinal)) .put("plugin.types", MarvelPlugin.class.getName() + "," + MockLicensePlugin.class.getName()) - .put(PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, false) .build(); }