Repository: camel Updated Branches: refs/heads/master d23213af7 -> a9180c61f
Fix missing type and redundant delimiters in annotation id Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a9180c61 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a9180c61 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a9180c61 Branch: refs/heads/master Commit: a9180c61fba9fb6bb65d58b29c6d6203cb7d4c99 Parents: d23213a Author: Antonin Stefanutti <anto...@stefanutti.fr> Authored: Tue May 3 12:27:02 2016 +0200 Committer: Antonin Stefanutti <anto...@stefanutti.fr> Committed: Tue May 3 12:27:02 2016 +0200 ---------------------------------------------------------------------- .../src/main/java/org/apache/camel/cdi/CdiSpiHelper.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/a9180c61/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiSpiHelper.java ---------------------------------------------------------------------- diff --git a/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiSpiHelper.java b/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiSpiHelper.java index 3d96003..89e8b87 100644 --- a/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiSpiHelper.java +++ b/components/camel-cdi/src/main/java/org/apache/camel/cdi/CdiSpiHelper.java @@ -208,12 +208,10 @@ final class CdiSpiHelper { return Stream.of(methods) .sorted(comparing(Method::getName)) - .collect(() -> new StringJoiner(",", "@(", ")"), + .collect(() -> new StringJoiner(",", "@" + annotation.annotationType().getCanonicalName() + "(", ")"), (joiner, method) -> { try { - joiner - .add(method.getName()).add("=") - .add(method.invoke(annotation).toString()); + joiner.add(method.getName() + "=" + method.invoke(annotation).toString()); } catch (NullPointerException | IllegalArgumentException | IllegalAccessException | InvocationTargetException cause) { throw new RuntimeException( "Error while accessing member [" + method.getName() + "]"