From fef2daf5d4aeef80e8780fc1605c7bee6ecf3849 Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Wed, 29 Jan 2014 12:06:34 +0100 Subject: [PATCH] findbugs: compare strings with equals() --- server/src/com/cloud/server/StatsCollector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/server/StatsCollector.java b/server/src/com/cloud/server/StatsCollector.java index 601ab126992..548587cfa8e 100755 --- a/server/src/com/cloud/server/StatsCollector.java +++ b/server/src/com/cloud/server/StatsCollector.java @@ -737,7 +737,7 @@ public class StatsCollector extends ManagerBase implements ComponentMethodInterc } String counterName = getCounternamebyCondition(conditionId.longValue()); - if (counterName == Counter.Source.memory.toString()) { + if (Counter.Source.memory.toString().equals(counterName)) { // calculate memory in percent Long profileId = asGroup.getProfileId(); AutoScaleVmProfileVO profileVo = _asProfileDao.findById(profileId);