Fixed source check errors in camel-everit-json-schema component
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7d85a4b7 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7d85a4b7 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7d85a4b7 Branch: refs/heads/master Commit: 7d85a4b7d710f3f6b4433b92a834f624a0bf23f3 Parents: 923f126 Author: Pontus Ullgren <ullg...@gmail.com> Authored: Wed Oct 4 02:03:19 2017 +0200 Committer: Pontus Ullgren <pontus.ullg...@redpill-linpro.com> Committed: Fri Oct 6 22:37:42 2017 +0200 ---------------------------------------------------------------------- .../everit/jsonschema/JsonSchemaReader.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/7d85a4b7/components/camel-everit-json-schema/src/main/java/org/apache/camel/component/everit/jsonschema/JsonSchemaReader.java ---------------------------------------------------------------------- diff --git a/components/camel-everit-json-schema/src/main/java/org/apache/camel/component/everit/jsonschema/JsonSchemaReader.java b/components/camel-everit-json-schema/src/main/java/org/apache/camel/component/everit/jsonschema/JsonSchemaReader.java index 1f76f67..2876a07 100644 --- a/components/camel-everit-json-schema/src/main/java/org/apache/camel/component/everit/jsonschema/JsonSchemaReader.java +++ b/components/camel-everit-json-schema/src/main/java/org/apache/camel/component/everit/jsonschema/JsonSchemaReader.java @@ -1,3 +1,19 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.apache.camel.component.everit.jsonschema; import java.io.IOException; @@ -24,7 +40,7 @@ public class JsonSchemaReader { } public Schema getSchema() throws IOException { - if ( this.schema == null ) { + if (this.schema == null) { this.schema = this.schemaLoader.createSchema(this.camelContext, this.resourceUri); } return schema;