Skip to content

Fix 2 findbugs ClassCastExceptions#414

Closed
rsafonseca wants to merge 2 commits intoapache:masterfrom
rsafonseca:findbugs31
Closed

Fix 2 findbugs ClassCastExceptions#414
rsafonseca wants to merge 2 commits intoapache:masterfrom
rsafonseca:findbugs31

Conversation

@rsafonseca
Copy link
Contributor

ScaleVMCmd.getDetails() isn't called anywhere in the code, either way, implementation is wrong since details is a Map<String, String> and not a Map<String, Map<String,String>>
UpgradeVMCmd.getDetails() is called from UserVmManagerImpl.upgradeVirtualMachine() and would fail to run, as it would try to cast String to HashMap<String,String>
Removed nonsense comment about casting a Collection to a Map obviously giving exception

getDetails() isn't called anywhere in the code, either way, implementation is wrong since details is a Map\<String, String\> and not a Map\<String, Map\<String,String\>\>
If this piece of could would get run, it would just fail trying to cast String to HashMap\<String,String\>
Removed nonsense comment about casting a Collection to a Map obviously giving exception
@asfbot
Copy link

asfbot commented Jun 14, 2015

cloudstack-pull-requests #390 FAILURE
Looks like there's a problem with this pull request

@asfbot
Copy link

asfbot commented Jun 14, 2015

cloudstack-pull-requests #393 FAILURE
Looks like there's a problem with this pull request

@asfgit asfgit closed this in 16baa12 Jun 15, 2015
kishankavala pushed a commit to kishankavala/cloudstack that referenced this pull request Jun 25, 2015
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes apache#414
yadvr added a commit to shapeblue/cloudstack that referenced this pull request Apr 24, 2024
Backport upstream security fixes to apple-base418
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants