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=876d49589945227efee95b3d6967555d4eacefda;hb=213019300c39dec33155b63ad5374842f92760ac;hpb=26d0e25159bf3b73ca38a88e17268cf17f876d8d 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 876d495899..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 @@ -1,4 +1,3 @@ - /* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * @@ -55,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) {