Fixed CS errors of camel-dns
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/0b54e741 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/0b54e741 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/0b54e741 Branch: refs/heads/camel-2.11.x Commit: 0b54e7418f90eb00aa3527765ea09e9729a19023 Parents: fd32a08 Author: Willem Jiang <willem.ji...@gmail.com> Authored: Thu Nov 14 10:58:20 2013 +0800 Committer: Willem Jiang <willem.ji...@gmail.com> Committed: Thu Nov 14 12:03:37 2013 +0800 ---------------------------------------------------------------------- .../org/apache/camel/component/dns/DnsDigEndpoint.java | 4 ++-- .../apache/camel/component/dns/DnsDigEndpointTest.java | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/0b54e741/components/camel-dns/src/main/java/org/apache/camel/component/dns/DnsDigEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-dns/src/main/java/org/apache/camel/component/dns/DnsDigEndpoint.java b/components/camel-dns/src/main/java/org/apache/camel/component/dns/DnsDigEndpoint.java index ff4b03b..2058441 100644 --- a/components/camel-dns/src/main/java/org/apache/camel/component/dns/DnsDigEndpoint.java +++ b/components/camel-dns/src/main/java/org/apache/camel/component/dns/DnsDigEndpoint.java @@ -59,9 +59,9 @@ public class DnsDigEndpoint extends DefaultEndpoint { String dclassValue = exchange.getIn().getHeader(DnsConstants.DNS_CLASS, String.class); if (dclassValue == null) { - dclassValue = ""; + dclassValue = ""; } - + int dclass = DClass.value(dclassValue); if (dclass == -1) { // by default, value is IN. http://git-wip-us.apache.org/repos/asf/camel/blob/0b54e741/components/camel-dns/src/test/java/org/apache/camel/component/dns/DnsDigEndpointTest.java ---------------------------------------------------------------------- diff --git a/components/camel-dns/src/test/java/org/apache/camel/component/dns/DnsDigEndpointTest.java b/components/camel-dns/src/test/java/org/apache/camel/component/dns/DnsDigEndpointTest.java index 155e065..d7ae208 100644 --- a/components/camel-dns/src/test/java/org/apache/camel/component/dns/DnsDigEndpointTest.java +++ b/components/camel-dns/src/test/java/org/apache/camel/component/dns/DnsDigEndpointTest.java @@ -37,12 +37,12 @@ import org.xbill.DNS.Section; public class DnsDigEndpointTest extends CamelTestSupport { private static final String RESPONSE_MONKEY = "\"A Macaque, an old world species of " - + "monkey native to Southeast Asia|thumb]A monkey is a primate of the " - + "Haplorrhini suborder and simian infraorder, either an Old World monkey " - + "or a New World monkey, but excluding apes. There are about 260 known " - + "living specie\" \"s of monkey. Many are arboreal, although there are " - + "species that live primarily on the ground, such as baboons... " - + "http://en.wikipedia.org/wiki/Monkey\""; + + "monkey native to Southeast Asia|thumb]A monkey is a primate of the " + + "Haplorrhini suborder and simian infraorder, either an Old World monkey " + + "or a New World monkey, but excluding apes. There are about 260 known " + + "living specie\" \"s of monkey. Many are arboreal, although there are " + + "species that live primarily on the ground, such as baboons... " + + "http://en.wikipedia.org/wiki/Monkey\""; @EndpointInject(uri = "mock:result") protected MockEndpoint resultEndpoint;