brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aleds...@apache.org
Subject [3/4] brooklyn-server git commit: Avoiding hashCode in BrooklynImageChooser$ImageChooserFromOrdering
Date Mon, 13 Jun 2016 08:29:52 GMT
Avoiding hashCode in BrooklynImageChooser$ImageChooserFromOrdering


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

Branch: refs/heads/master
Commit: ca6d7472189a4c7db45a19393ae154ac8d11dc30
Parents: 3a2c41c
Author: Kiuby88 <kiuby88.programming@gmail.com>
Authored: Tue May 31 10:23:25 2016 +0200
Committer: Kiuby88 <kiuby88.programming@gmail.com>
Committed: Tue May 31 10:23:25 2016 +0200

----------------------------------------------------------------------
 .../brooklyn/location/jclouds/BrooklynImageChooser.java       | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/ca6d7472/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/BrooklynImageChooser.java
----------------------------------------------------------------------
diff --git a/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/BrooklynImageChooser.java
b/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/BrooklynImageChooser.java
index ed052b7..0c70845 100644
--- a/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/BrooklynImageChooser.java
+++ b/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/BrooklynImageChooser.java
@@ -371,7 +371,12 @@ public class BrooklynImageChooser implements Cloneable {
             } else {
                 return this;
             }
-        }        
+        }
+
+        @Override
+        public String toString(){
+            return getClass().getName();
+        }
     }
 
     public static Function<Iterable<? extends Image>, Image> imageChooserFromOrdering(final
Ordering<Image> ordering) {


Mime
View raw message