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/ac741fd0
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ac741fd0
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ac741fd0

Branch: refs/heads/camel-2.16.x
Commit: ac741fd0d9daf2bc21222c0e1b5856029a129f10
Parents: dc3bb68
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:43 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/ac741fd0/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 25e2760..6bda34a 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().getClassResolver(),
 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