Yuta HIGUCHI

Fixed checkNotNull in ProxyArpManager

Change-Id: I101b44a8e392fb2c96eac2019a5550b436ad0336
...@@ -94,14 +94,14 @@ public class ProxyArpManager implements ProxyArpService { ...@@ -94,14 +94,14 @@ public class ProxyArpManager implements ProxyArpService {
94 94
95 @Override 95 @Override
96 public boolean known(IpPrefix addr) { 96 public boolean known(IpPrefix addr) {
97 - checkNotNull(MAC_ADDR_NULL, addr); 97 + checkNotNull(addr, MAC_ADDR_NULL);
98 Set<Host> hosts = hostService.getHostsByIp(addr); 98 Set<Host> hosts = hostService.getHostsByIp(addr);
99 return !hosts.isEmpty(); 99 return !hosts.isEmpty();
100 } 100 }
101 101
102 @Override 102 @Override
103 public void reply(Ethernet eth) { 103 public void reply(Ethernet eth) {
104 - checkNotNull(REQUEST_NULL, eth); 104 + checkNotNull(eth, REQUEST_NULL);
105 checkArgument(eth.getEtherType() == Ethernet.TYPE_ARP, 105 checkArgument(eth.getEtherType() == Ethernet.TYPE_ARP,
106 REQUEST_NOT_ARP); 106 REQUEST_NOT_ARP);
107 ARP arp = (ARP) eth.getPayload(); 107 ARP arp = (ARP) eth.getPayload();
...@@ -137,7 +137,7 @@ public class ProxyArpManager implements ProxyArpService { ...@@ -137,7 +137,7 @@ public class ProxyArpManager implements ProxyArpService {
137 137
138 @Override 138 @Override
139 public void forward(Ethernet eth) { 139 public void forward(Ethernet eth) {
140 - checkNotNull(REQUEST_NULL, eth); 140 + checkNotNull(eth, REQUEST_NULL);
141 checkArgument(eth.getEtherType() == Ethernet.TYPE_ARP, 141 checkArgument(eth.getEtherType() == Ethernet.TYPE_ARP,
142 REQUEST_NOT_ARP); 142 REQUEST_NOT_ARP);
143 ARP arp = (ARP) eth.getPayload(); 143 ARP arp = (ARP) eth.getPayload();
......