Skip to content

Commit b85e936

Browse files
committed
Fix enum bug
1 parent ab536b5 commit b85e936

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/main/java/com/bobrust/settings/type/EnumType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public void setAbstract(Object value) {
2424
if (value == null) {
2525
this.value = defaultValue;
2626
parent.update(this);
27-
} else if (value.getClass().isInstance(defaultValue.getClass())) {
27+
} else if (defaultValue.getDeclaringClass().isAssignableFrom(value.getClass())) {
2828
this.value = defaultValue.getDeclaringClass().cast(value);
29-
parent.update(this);
29+
parent.update(this);
3030
}
3131
}
3232

src/main/resources/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.58
1+
0.3.59

version.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#Wed Jul 12 19:45:38 CEST 2023
2-
build_id=59
1+
#Thu Jul 13 18:45:38 CEST 2023
2+
build_id=60

0 commit comments

Comments
 (0)