brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [10/50] [abbrv] brooklyn-server git commit: Tighten-up generics in concrete implementations.
Date Mon, 01 Feb 2016 17:50:26 GMT
Tighten-up generics in concrete implementations.


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/8b0d6f35
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/8b0d6f35
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/8b0d6f35

Branch: refs/heads/0.8.0-incubating
Commit: 8b0d6f354e94ee6175b8d83a67e577084b0e85a9
Parents: c458e73
Author: Alasdair Hodge <github@alasdairhodge.co.uk>
Authored: Thu Aug 6 14:14:23 2015 +0100
Committer: Alasdair Hodge <github@alasdairhodge.co.uk>
Committed: Tue Aug 25 11:51:20 2015 +0100

----------------------------------------------------------------------
 .../config/external/InPlaceExternalConfigSupplier.java         | 6 +++---
 .../config/external/PropertiesFileExternalConfigSupplier.java  | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/8b0d6f35/core/src/main/java/brooklyn/config/external/InPlaceExternalConfigSupplier.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/brooklyn/config/external/InPlaceExternalConfigSupplier.java
b/core/src/main/java/brooklyn/config/external/InPlaceExternalConfigSupplier.java
index 697bc89..a5a3015 100644
--- a/core/src/main/java/brooklyn/config/external/InPlaceExternalConfigSupplier.java
+++ b/core/src/main/java/brooklyn/config/external/InPlaceExternalConfigSupplier.java
@@ -37,15 +37,15 @@ import brooklyn.management.ManagementContext;
  */
 public class InPlaceExternalConfigSupplier extends AbstractExternalConfigSupplier {
 
-    private final Map<?,?> config;
+    private final Map<String, String> config;
 
-    public InPlaceExternalConfigSupplier(ManagementContext managementContext, String name,
Map<?, ?> config) {
+    public InPlaceExternalConfigSupplier(ManagementContext managementContext, String name,
Map<String, String> config) {
         super(managementContext, name);
         this.config = config;
     }
 
     public String get(String key) {
-        return (String) config.get(key);
+        return config.get(key);
     }
 
 }

http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/8b0d6f35/core/src/main/java/brooklyn/config/external/PropertiesFileExternalConfigSupplier.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/brooklyn/config/external/PropertiesFileExternalConfigSupplier.java
b/core/src/main/java/brooklyn/config/external/PropertiesFileExternalConfigSupplier.java
index 34a67c4..66d72e3 100644
--- a/core/src/main/java/brooklyn/config/external/PropertiesFileExternalConfigSupplier.java
+++ b/core/src/main/java/brooklyn/config/external/PropertiesFileExternalConfigSupplier.java
@@ -43,9 +43,9 @@ public class PropertiesFileExternalConfigSupplier extends AbstractExternalConfig
 
     private final Properties properties;
 
-    public PropertiesFileExternalConfigSupplier(ManagementContext managementContext, String
name, Map<?, ?> config) throws IOException {
+    public PropertiesFileExternalConfigSupplier(ManagementContext managementContext, String
name, Map<String, String> config) throws IOException {
         super(managementContext, name);
-        this.properties = loadProperties((String) config.get(PROPERTIES_URL));
+        this.properties = loadProperties(config.get(PROPERTIES_URL));
     }
 
     public String get(String key) {


Mime
View raw message