mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-04 19:56:49 +02:00
SONAR suggestion - bit operator instead of logical
Change-Id: I8242767a83ee0ee0a89683f5e42372f647ee9af7
This commit is contained in:
parent
6a418d256b
commit
ca7ee079f7
@ -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()));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user