fail faster
This commit is contained in:
parent
d8b0753796
commit
2f63e9d899
|
@ -14,6 +14,7 @@ import java.awt.event.KeyEvent;
|
|||
import java.nio.ByteBuffer;
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.ParseException;
|
||||
import java.util.Objects;
|
||||
|
||||
public class ConfigField extends BaseConfigField {
|
||||
private final JTextField view = new JTextFieldWithWidth(200);
|
||||
|
@ -61,6 +62,7 @@ public class ConfigField extends BaseConfigField {
|
|||
|
||||
@NotNull
|
||||
public static Number getValue(ConfigurationImage ci, Field field) {
|
||||
Objects.requireNonNull(ci);
|
||||
Number value;
|
||||
ByteBuffer wrapped = getByteBuffer(ci, field);
|
||||
if (field.getType() == FieldType.INT) {
|
||||
|
|
Loading…
Reference in New Issue