cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DaanHoogland <>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-8721: Fixed Setting details of...
Date Mon, 17 Aug 2015 12:22:32 GMT
Github user DaanHoogland commented on a diff in the pull request:
    --- Diff: api/src/org/apache/cloudstack/api/command/user/vm/ ---
    @@ -136,13 +136,13 @@ public String getInstanceName() {
             return instanceName;
    -    public Map getDetails() {
    +    public Map<String, String> getDetails() {
    --- End diff --
    how about taking the opportunity to change this to 
        public Map<String, String> getDetails() {
            if (this.details == null || this.details.isEmpty()) {
                return null;
            return details;
    Is there any reason to pass through the crazy construct of getting the pointer to the
first element and casting it back to a map? It seems like very unsafe. It becomes even more
unsafe when using an instance of a generic type.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message