karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject [1/3] karaf git commit: Minor code cleanup
Date Tue, 22 Nov 2016 13:33:59 GMT
Repository: karaf
Updated Branches:
  refs/heads/master 5e3a5523b -> 46b26566f


Minor code cleanup

Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/db5ae104
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/db5ae104
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/db5ae104

Branch: refs/heads/master
Commit: db5ae10497a74f57e4a623d5198c0aceca70266c
Parents: 5e3a552
Author: Guillaume Nodet <gnodet@apache.org>
Authored: Tue Nov 22 11:20:35 2016 +0100
Committer: Guillaume Nodet <gnodet@apache.org>
Committed: Tue Nov 22 11:20:35 2016 +0100

----------------------------------------------------------------------
 .../org/apache/karaf/config/core/impl/ConfigRepositoryImpl.java   | 2 +-
 .../java/org/apache/karaf/features/internal/region/Subsystem.java | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/db5ae104/config/src/main/java/org/apache/karaf/config/core/impl/ConfigRepositoryImpl.java
----------------------------------------------------------------------
diff --git a/config/src/main/java/org/apache/karaf/config/core/impl/ConfigRepositoryImpl.java
b/config/src/main/java/org/apache/karaf/config/core/impl/ConfigRepositoryImpl.java
index 3d80b12..22311fb 100644
--- a/config/src/main/java/org/apache/karaf/config/core/impl/ConfigRepositoryImpl.java
+++ b/config/src/main/java/org/apache/karaf/config/core/impl/ConfigRepositoryImpl.java
@@ -110,7 +110,7 @@ public class ConfigRepositoryImpl implements ConfigRepository {
                         cfgFile = new File(new URL((String) val).toURI());
                     }
                 } catch (Exception e) {
-                    throw (IOException) new IOException(e.getMessage()).initCause(e);
+                    throw new IOException(e.getMessage(), e);
                 }
             }
             LOGGER.trace("Update {}", cfgFile.getName());

http://git-wip-us.apache.org/repos/asf/karaf/blob/db5ae104/features/core/src/main/java/org/apache/karaf/features/internal/region/Subsystem.java
----------------------------------------------------------------------
diff --git a/features/core/src/main/java/org/apache/karaf/features/internal/region/Subsystem.java
b/features/core/src/main/java/org/apache/karaf/features/internal/region/Subsystem.java
index 5f4c231..65f6dea 100644
--- a/features/core/src/main/java/org/apache/karaf/features/internal/region/Subsystem.java
+++ b/features/core/src/main/java/org/apache/karaf/features/internal/region/Subsystem.java
@@ -355,7 +355,8 @@ public class Subsystem extends ResourceImpl {
     public void downloadBundles(DownloadManager manager,
                                 Set<String> overrides,
                                 String featureResolutionRange,
-                                final String serviceRequirements, RepositoryManager repos)
throws Exception {
+                                final String serviceRequirements,
+                                RepositoryManager repos) throws Exception {
         for (Subsystem child : children) {
             child.downloadBundles(manager, overrides, featureResolutionRange, serviceRequirements,
repos);
         }


Mime
View raw message