X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fcommons%2Fliblldp%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fliblldp%2FEtherTypes.java;h=e3c46fbf6a04a113a4f0e9f95245596065f9f4cc;hp=566e5516eada6384247e886c042353464d3bd954;hb=213019300c39dec33155b63ad5374842f92760ac;hpb=fdc97fc0d771dcf17616282bc942b05243182a5a 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 566e5516ea..e3c46fbf6a 100644 --- 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 @@ -54,11 +54,11 @@ public enum EtherTypes { } public static String getEtherTypeName(short number) { - return getEtherTypeInternal((int) number & 0xffff); + return getEtherTypeInternal(number & 0xffff); } public static String getEtherTypeName(byte number) { - return getEtherTypeInternal((int) number & 0xff); + return getEtherTypeInternal(number & 0xff); } private static String getEtherTypeInternal(int number) {