Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Yuta HIGUCHI
2014-10-15 23:38:24 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7f3df231e19fbac17da8357832c643dcc2d049a1
7f3df231
1 parent
023295ae
avoid unnecessary boxing
Change-Id: I1fd423ea521149e24ce159af48bc6d1da6f37646
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
utils/misc/src/main/java/org/onlab/packet/IpAddress.java
utils/misc/src/main/java/org/onlab/packet/IpPrefix.java
utils/misc/src/main/java/org/onlab/packet/IpAddress.java
View file @
7f3df23
...
...
@@ -121,7 +121,7 @@ public final class IpAddress {
int
mask
=
DEFAULT_MASK
;
if
(
parts
.
length
==
2
)
{
mask
=
Integer
.
valueOf
(
parts
[
1
]);
mask
=
Integer
.
parseInt
(
parts
[
1
]);
if
(
mask
>
MAX_INET_MASK
)
{
throw
new
IllegalArgumentException
(
"Value of subnet mask cannot exceed "
...
...
utils/misc/src/main/java/org/onlab/packet/IpPrefix.java
View file @
7f3df23
...
...
@@ -120,7 +120,7 @@ public final class IpPrefix {
int
mask
=
DEFAULT_MASK
;
if
(
parts
.
length
==
2
)
{
mask
=
Integer
.
valueOf
(
parts
[
1
]);
mask
=
Integer
.
parseInt
(
parts
[
1
]);
if
(
mask
>
MAX_INET_MASK
)
{
throw
new
IllegalArgumentException
(
"Value of subnet mask cannot exceed "
...
...
Please
register
or
login
to post a comment