SONAR suggestion - bit operator instead of logical

Change-Id: I8242767a83ee0ee0a89683f5e42372f647ee9af7
This commit is contained in:
Ray Milkey 2018-02-05 14:10:38 -08:00 committed by Yuta HIGUCHI
parent 6a418d256b
commit ca7ee079f7

View File

@ -348,7 +348,7 @@ public final class JuniperUtils {
long portSpeed = toMbps(phyIntf.getString(SPEED));
portDescriptions.add(new DefaultPortDescription(portNumber,
admUp & opUp,
admUp && opUp,
Type.COPPER,
portSpeed,
annotations.build()));
@ -395,7 +395,7 @@ public final class JuniperUtils {
boolean lEnabled = logIntf.getString("if-config-flags.iff-up") != null;
portDescriptions.add(new DefaultPortDescription(lPortNumber,
admUp & opUp & lEnabled,
admUp && opUp && lEnabled,
Type.COPPER,
portSpeed,
lannotations.build()));