переименование метода
This commit is contained in:
@@ -22,7 +22,7 @@ public enum TypeTag {
|
||||
LONG_ARRAY(12, TagLongArray.class);
|
||||
|
||||
public static Tag getTagById(int id) {
|
||||
TypeTag type = getTypeById(id);
|
||||
TypeTag type = valueOfTypeId(id);
|
||||
try {
|
||||
return type.classTag.newInstance();
|
||||
} catch (InstantiationException | IllegalAccessException e) {
|
||||
@@ -30,7 +30,7 @@ public enum TypeTag {
|
||||
}
|
||||
}
|
||||
|
||||
public static TypeTag getTypeById(int id) {
|
||||
public static TypeTag valueOfTypeId(int id) {
|
||||
for (TypeTag type : TypeTag.values()) {
|
||||
if (type.id == id) {
|
||||
return type;
|
||||
|
||||
Reference in New Issue
Block a user