findbugs: compare strings with equals()

This commit is contained in:
Daan Hoogland 2014-01-29 12:06:34 +01:00
parent 1c4bbecc4a
commit fef2daf5d4
1 changed files with 1 additions and 1 deletions

View File

@ -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);