Final entry

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2022-04-12 12:18:00 +02:00
parent 0c9542486f
commit 6a79de2406
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,6 @@ final class TagHandlerImpl implements TagHandler {
}
private static <T> T read(Entry<?>[] entries, Tag<T> tag) {
Entry<?> entry;
final Tag.PathEntry[] paths = tag.path;
if (paths != null) {
// Must be a path-able entry
@ -185,6 +184,7 @@ final class TagHandlerImpl implements TagHandler {
return tag.createDefault();
}
final int index = tag.index;
final Entry<?> entry;
if (index >= entries.length || (entry = entries[index]) == null) {
return tag.createDefault();
}