Remove unnecessary casts
[controller.git] / opendaylight / commons / liblldp / src / main / java / org / opendaylight / controller / liblldp / EtherTypes.java
index 566e5516eada6384247e886c042353464d3bd954..e3c46fbf6a04a113a4f0e9f95245596065f9f4cc 100644 (file)
@@ -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) {