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 37721e8e7d1cdf5ae2b0b762f1ba12349b4c2e53 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Mon Mar 16 15:51:04 2020 +0100 Camel-catalog-karaf-provider: Fixed CS --- .../camel/catalog/karaf/KarafRuntimeProvider.java | 69 +++++++++++----------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/catalog/camel-catalog-provider-karaf/src/main/java/org/apache/camel/catalog/karaf/KarafRuntimeProvider.java b/catalog/camel-catalog-provider-karaf/src/main/java/org/apache/camel/catalog/karaf/KarafRuntimeProvider.java index c382776..943aa0d 100644 --- a/catalog/camel-catalog-provider-karaf/src/main/java/org/apache/camel/catalog/karaf/KarafRuntimeProvider.java +++ b/catalog/camel-catalog-provider-karaf/src/main/java/org/apache/camel/catalog/karaf/KarafRuntimeProvider.java @@ -26,8 +26,9 @@ import org.apache.camel.catalog.RuntimeProvider; import org.apache.camel.catalog.impl.CatalogHelper; /** - * A karaf based {@link RuntimeProvider} which only includes the supported Camel components, data formats, languages and others - * which can be installed in Karaf using the Camel Karaf features.xml descriptor. + * A karaf based {@link RuntimeProvider} which only includes the supported Camel + * components, data formats, languages and others which can be installed in + * Karaf using the Camel Karaf features.xml descriptor. */ public class KarafRuntimeProvider implements RuntimeProvider { @@ -91,16 +92,16 @@ public class KarafRuntimeProvider implements RuntimeProvider { public List<String> findComponentNames() { List<String> names = new ArrayList<>(); try (InputStream is = camelCatalog.getVersionManager().getResourceAsStream(COMPONENTS_CATALOG)) { - 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; } @@ -108,16 +109,16 @@ public class KarafRuntimeProvider implements RuntimeProvider { public List<String> findDataFormatNames() { List<String> names = new ArrayList<>(); try (InputStream is = camelCatalog.getVersionManager().getResourceAsStream(DATA_FORMATS_CATALOG)) { - 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 +126,16 @@ public class KarafRuntimeProvider implements RuntimeProvider { public List<String> findLanguageNames() { List<String> names = new ArrayList<>(); try (InputStream is = camelCatalog.getVersionManager().getResourceAsStream(LANGUAGE_CATALOG)) { - 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 +143,16 @@ public class KarafRuntimeProvider implements RuntimeProvider { public List<String> findOtherNames() { List<String> names = new ArrayList<>(); try (InputStream is = camelCatalog.getVersionManager().getResourceAsStream(OTHER_CATALOG)) { - 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; }