fixBugs finding fm.equals(format) breaks equals contract
Signed-off-by: Daan Hoogland <d...@onecht.net> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/cecb216c Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/cecb216c Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/cecb216c Branch: refs/heads/rbac Commit: cecb216caa22541d243369e76ef80b4f2225b728 Parents: 13e0f29 Author: Ian Southam <isout...@schubergphilis.com> Authored: Wed Feb 5 18:02:34 2014 +0100 Committer: Daan Hoogland <d...@onecht.net> Committed: Thu Feb 6 10:32:06 2014 +0100 ---------------------------------------------------------------------- .../apache/cloudstack/storage/image/format/ImageFormatHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/cecb216c/engine/storage/src/org/apache/cloudstack/storage/image/format/ImageFormatHelper.java ---------------------------------------------------------------------- diff --git a/engine/storage/src/org/apache/cloudstack/storage/image/format/ImageFormatHelper.java b/engine/storage/src/org/apache/cloudstack/storage/image/format/ImageFormatHelper.java index 9523d24..5a424cb 100644 --- a/engine/storage/src/org/apache/cloudstack/storage/image/format/ImageFormatHelper.java +++ b/engine/storage/src/org/apache/cloudstack/storage/image/format/ImageFormatHelper.java @@ -36,7 +36,7 @@ public class ImageFormatHelper { public static ImageFormat getFormat(String format) { for (ImageFormat fm : formats) { - if (fm.equals(format)) { + if (fm.toString().equals(format)) { return fm; } }