findbugs: repeated condition seems c&p error the tested states sugest that EXPUNGED should be the last one

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #491
This commit is contained in:
Daan Hoogland 2015-06-19 14:02:13 +02:00 committed by Rohit Yadav
parent 1532203e36
commit bb613baa2b
1 changed files with 1 additions and 1 deletions

View File

@ -1212,7 +1212,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
}
try {
if (volume.getState() != Volume.State.Destroy && volume.getState() != Volume.State.Expunging && volume.getState() != Volume.State.Expunging) {
if (volume.getState() != Volume.State.Destroy && volume.getState() != Volume.State.Expunging && volume.getState() != Volume.State.Expunged) {
Long instanceId = volume.getInstanceId();
if (!volService.destroyVolume(volume.getId())) {
return false;