mirror of https://github.com/apache/cloudstack.git
findbugs: compare strings with equals()
This commit is contained in:
parent
1c4bbecc4a
commit
fef2daf5d4
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue