Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove unnecessary casts
[controller.git]
/
opendaylight
/
commons
/
liblldp
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
liblldp
/
EtherTypes.java
diff --git
a/opendaylight/commons/liblldp/src/main/java/org/opendaylight/controller/liblldp/EtherTypes.java
b/opendaylight/commons/liblldp/src/main/java/org/opendaylight/controller/liblldp/EtherTypes.java
index 876d49589945227efee95b3d6967555d4eacefda..e3c46fbf6a04a113a4f0e9f95245596065f9f4cc 100644
(file)
--- a/
opendaylight/commons/liblldp/src/main/java/org/opendaylight/controller/liblldp/EtherTypes.java
+++ b/
opendaylight/commons/liblldp/src/main/java/org/opendaylight/controller/liblldp/EtherTypes.java
@@
-1,4
+1,3
@@
-
/*
* Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
*
/*
* Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
*
@@
-55,11
+54,11
@@
public enum EtherTypes {
}
public static String getEtherTypeName(short number) {
}
public static String getEtherTypeName(short number) {
- return getEtherTypeInternal(
(int)
number & 0xffff);
+ return getEtherTypeInternal(number & 0xffff);
}
public static String getEtherTypeName(byte number) {
}
public static String getEtherTypeName(byte number) {
- return getEtherTypeInternal(
(int)
number & 0xff);
+ return getEtherTypeInternal(number & 0xff);
}
private static String getEtherTypeInternal(int number) {
}
private static String getEtherTypeInternal(int number) {