camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/6] camel git commit: Fixed CS. This closes #926
Date Mon, 04 Apr 2016 06:30:53 GMT
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/e9d25514
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e9d25514
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e9d25514

Branch: refs/heads/master
Commit: e9d2551463bea056d482c155345e6b7ccb614de8
Parents: 75906e3
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Mon Apr 4 08:29:30 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Apr 4 08:29:30 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/e9d25514/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) {


Mime
View raw message