Fixed CS. This closes #926

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/8e720634
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8e720634
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8e720634

Branch: refs/heads/camel-2.17.x
Commit: 8e7206342bb767516603c9bfb8d4936c3dd3517f
Parents: 441e5b5
Author: Claus Ibsen <davscl...@apache.org>
Authored: Mon Apr 4 08:29:30 2016 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Mon Apr 4 08:30:04 2016 +0200

----------------------------------------------------------------------
 .../apache/camel/component/schematron/SchematronEndpoint.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/8e720634/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/SchematronEndpoint.java
----------------------------------------------------------------------
diff --git 
a/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/SchematronEndpoint.java
 
b/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/SchematronEndpoint.java
index 0a78f9f..1f1a92c 100644
--- 
a/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/SchematronEndpoint.java
+++ 
b/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/SchematronEndpoint.java
@@ -126,14 +126,14 @@ public class SchematronEndpoint extends DefaultEndpoint {
 
         if (rules == null) {
             try {
-                // Attempt to read the schematron rules  from the class path 
first.
+                // Attempt to read the schematron rules from the class path 
first.
                 LOG.debug("Reading schematron rules from class path {}", path);
                 InputStream schRules = 
ResourceHelper.resolveMandatoryResourceAsInputStream(getCamelContext(), path);
                 rules = TemplatesFactory.newInstance().getTemplates(schRules, 
transformerFactory);
             } catch (Exception classPathException) {
                 // Attempts from the file system.
                 LOG.debug("Error loading schematron rules from class path, 
attempting file system {}", path);
-                try{
+                try {
                     InputStream schRules = FileUtils.openInputStream(new 
File(path));
                     rules = 
TemplatesFactory.newInstance().getTemplates(schRules, transformerFactory);
                 } catch (FileNotFoundException e) {

Reply via email to