Fix for 1125389 RV: Bad use of return value - make sure the replace call is done after replaceAll and the correct value is returned

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
This commit is contained in:
wilderrodrigues 2013-11-06 14:18:31 +01:00 committed by Hugo Trippaers
parent f03dcdab19
commit 56070c644b

View File

@ -239,8 +239,7 @@ public class ContrailManagerImpl extends ManagerBase implements ContrailManager
@Override
public String getPhysicalNetworkName(PhysicalNetworkVO phys_net) {
String physname = phys_net.getName();
physname = physname.replaceAll("\\s", "");
physname.replace("_", "");
physname = physname.replaceAll("\\s", "").replace("_", "");
return physname;
}