Fixed CS (cherry picked from commit 3c4eb0defb8fb9987b977fc16b97ff5a764f85dc)
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b4304375 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b4304375 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b4304375 Branch: refs/heads/camel-2.17.x Commit: b430437573051697ade77daa5b386840c49ff1c2 Parents: d35f61c Author: Grzegorz Grzybek <gr.grzy...@gmail.com> Authored: Fri Nov 18 18:05:26 2016 +0100 Committer: Grzegorz Grzybek <gr.grzy...@gmail.com> Committed: Fri Nov 18 18:05:48 2016 +0100 ---------------------------------------------------------------------- .../org/apache/camel/test/blueprint/CamelBlueprintHelper.java | 2 +- .../test/java/org/apache/camel/test/blueprint/MainTest.java | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/b4304375/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java ---------------------------------------------------------------------- diff --git a/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java b/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java index 90f23bb..59244ff 100644 --- a/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java +++ b/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java @@ -134,7 +134,7 @@ public final class CamelBlueprintHelper { } public static BundleContext createBundleContext(String name, String bundleFilter, TinyBundle bundle) throws Exception { - return createBundleContext(name, bundleFilter, bundle, null,null); + return createBundleContext(name, bundleFilter, bundle, null, null); } public static BundleContext createBundleContext(String name, String bundleFilter, http://git-wip-us.apache.org/repos/asf/camel/blob/b4304375/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/MainTest.java ---------------------------------------------------------------------- diff --git a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/MainTest.java b/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/MainTest.java index eb48a1c..a041e28 100644 --- a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/MainTest.java +++ b/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/MainTest.java @@ -19,17 +19,12 @@ package org.apache.camel.test.blueprint; import java.io.File; import java.io.FileOutputStream; -import java.io.StringWriter; import java.net.URL; import java.net.URLClassLoader; -import java.util.Arrays; import org.apache.aries.util.io.IOUtils; import org.apache.camel.ProducerTemplate; -import org.apache.camel.util.FileUtil; -import org.apache.felix.connect.felix.framework.util.Util; import org.junit.Test; -import org.ops4j.io.FileUtils; import org.ops4j.pax.swissbox.tinybundles.core.TinyBundle; import org.ops4j.pax.swissbox.tinybundles.core.TinyBundles; @@ -78,7 +73,7 @@ public class MainTest { // simulate `camel:run` which is run after packaging the artifact, so a "bundle" (location with // META-INF/MANIFEST.MF) is detected in target/classes - URLClassLoader loader = new URLClassLoader(new URL[] { tb.toURI().toURL() }, getClass().getClassLoader()); + URLClassLoader loader = new URLClassLoader(new URL[] {tb.toURI().toURL()}, getClass().getClassLoader()); Main main = new Main(); main.setLoader(loader);