commit | 43d842e64dbb9ce18ed055aa117176d56e90741d | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Wed Sep 02 20:37:26 2015 -0700 |
committer | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Wed Sep 02 20:37:26 2015 -0700 |
tree | f11caf461e40ccc179a57242ed49a3d5ad8db9fc | |
parent | 0b454631d02022cde92610b0b56fe493951799dd [diff] |
Use auto-boxing Change-Id: Ic905b504b585599da3329baf7bd0f138b1be35a5
diff --git a/src/main/java/org/onosproject/segmentrouting/PolicyHandler.java b/src/main/java/org/onosproject/segmentrouting/PolicyHandler.java index 6ec0de7..83cb7e8 100644 --- a/src/main/java/org/onosproject/segmentrouting/PolicyHandler.java +++ b/src/main/java/org/onosproject/segmentrouting/PolicyHandler.java
@@ -190,7 +190,7 @@ tsb.matchIPSrc(IpPrefix.valueOf(policy.srcIp())); } if (policy.ipProto() != null && !policy.ipProto().isEmpty()) { - Short ipProto = Short.valueOf(IpProtocol.valueOf(policy.ipProto()).value()); + Short ipProto = IpProtocol.valueOf(policy.ipProto()).value(); tsb.matchIPProtocol(ipProto.byteValue()); if (IpProtocol.valueOf(policy.ipProto()).equals(IpProtocol.TCP)) { if (policy.srcPort() != 0) {