You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/03/16 14:52:27 UTC
[camel] 02/04: Camel-Catalog: Fixed CS
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 242b415352f572a0a4c091b2a3088043c888e790
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 16 15:33:34 2020 +0100
Camel-Catalog: Fixed CS
---
.../camel/catalog/DefaultRuntimeProvider.java | 64 +++++++++++-----------
1 file changed, 32 insertions(+), 32 deletions(-)
diff --git a/catalog/camel-catalog/src/main/java/org/apache/camel/catalog/DefaultRuntimeProvider.java b/catalog/camel-catalog/src/main/java/org/apache/camel/catalog/DefaultRuntimeProvider.java
index 9efe85d..c7c9ada 100644
--- a/catalog/camel-catalog/src/main/java/org/apache/camel/catalog/DefaultRuntimeProvider.java
+++ b/catalog/camel-catalog/src/main/java/org/apache/camel/catalog/DefaultRuntimeProvider.java
@@ -108,16 +108,16 @@ public class DefaultRuntimeProvider implements RuntimeProvider {
public List<String> findComponentNames() {
List<String> names = new ArrayList<>();
try (InputStream is = getCamelCatalog().getVersionManager().getResourceAsStream(getComponentsCatalog())) {
- if (is != null) {
- try {
- CatalogHelper.loadLines(is, names);
- } catch (IOException e) {
- // ignore
+ if (is != null) {
+ try {
+ CatalogHelper.loadLines(is, names);
+ } catch (IOException e) {
+ // ignore
+ }
}
- }
} catch (IOException e1) {
- // ignore
- }
+ // ignore
+ }
return names;
}
@@ -125,16 +125,16 @@ public class DefaultRuntimeProvider implements RuntimeProvider {
public List<String> findDataFormatNames() {
List<String> names = new ArrayList<>();
try (InputStream is = getCamelCatalog().getVersionManager().getResourceAsStream(getDataFormatsCatalog())) {
- if (is != null) {
- try {
- CatalogHelper.loadLines(is, names);
- } catch (IOException e) {
- // ignore
+ if (is != null) {
+ try {
+ CatalogHelper.loadLines(is, names);
+ } catch (IOException e) {
+ // ignore
+ }
}
- }
} catch (IOException e1) {
- // ignore
- }
+ // ignore
+ }
return names;
}
@@ -142,16 +142,16 @@ public class DefaultRuntimeProvider implements RuntimeProvider {
public List<String> findLanguageNames() {
List<String> names = new ArrayList<>();
try (InputStream is = getCamelCatalog().getVersionManager().getResourceAsStream(getLanguageCatalog())) {
- if (is != null) {
- try {
- CatalogHelper.loadLines(is, names);
- } catch (IOException e) {
- // ignore
+ if (is != null) {
+ try {
+ CatalogHelper.loadLines(is, names);
+ } catch (IOException e) {
+ // ignore
+ }
}
- }
} catch (IOException e1) {
- // ignore
- }
+ // ignore
+ }
return names;
}
@@ -159,16 +159,16 @@ public class DefaultRuntimeProvider implements RuntimeProvider {
public List<String> findOtherNames() {
List<String> names = new ArrayList<>();
try (InputStream is = getCamelCatalog().getVersionManager().getResourceAsStream(getOtherCatalog())) {
- if (is != null) {
- try {
- CatalogHelper.loadLines(is, names);
- } catch (IOException e) {
- // ignore
+ if (is != null) {
+ try {
+ CatalogHelper.loadLines(is, names);
+ } catch (IOException e) {
+ // ignore
+ }
}
- }
} catch (IOException e1) {
- // ignore
- }
+ // ignore
+ }
return names;
}
}