Merge branch 'master' into develop
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -18,7 +18,12 @@ public enum TipoValore implements IBaseEnum<TipoValore> {
|
||||
}
|
||||
|
||||
public static TipoValore from(Object value) {
|
||||
short castValue = (short) value;
|
||||
short castValue;
|
||||
if (value instanceof String) {
|
||||
castValue = Short.parseShort(value.toString());
|
||||
} else {
|
||||
castValue = (short) value;
|
||||
}
|
||||
|
||||
for (TipoValore b : TipoValore.values()) {
|
||||
if (b.value == castValue)
|
||||
|
||||
Reference in New Issue
Block a user