Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Commit f22a596

Browse files
committed
removed unchecked
1 parent e873230 commit f22a596

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

config/json/src/main/java/de/eztxm/ezlib/config/object/ObjectConverter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ public JsonObject asJsonObject() {
101101
public <T> JsonArray<T> asJsonArray(Class<T> clazz) {
102102
try {
103103
if (object instanceof JsonArray<?> jsonArray) {
104-
@SuppressWarnings("unchecked")
105-
JsonArray<T> casted = (JsonArray<T>) jsonArray;
106-
return casted;
104+
return (JsonArray<T>) jsonArray;
107105
}
108106
if (object instanceof String jsonStr) {
109107
return JsonArray.parse(jsonStr, clazz);

0 commit comments

Comments
 (0)