Skip to content

Commit fef2daf

Browse files
committed
findbugs: compare strings with equals()
1 parent 1c4bbec commit fef2daf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/server/StatsCollector.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ protected void runInContext() {
737737
}
738738

739739
String counterName = getCounternamebyCondition(conditionId.longValue());
740-
if (counterName == Counter.Source.memory.toString()) {
740+
if (Counter.Source.memory.toString().equals(counterName)) {
741741
// calculate memory in percent
742742
Long profileId = asGroup.getProfileId();
743743
AutoScaleVmProfileVO profileVo = _asProfileDao.findById(profileId);

0 commit comments

Comments
 (0)