Replace !Optional.isPresent() with Optional.isEmpty()

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent d4da4e2de3
commit dae73b667a
  1. 2
      deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlTransformer.kt

@ -177,7 +177,7 @@ class GlTransformer(private val registry: GlRegistry = GlRegistry.parse()) : Tra
val glInterface = glUnit.primaryType.get() val glInterface = glUnit.primaryType.get()
// add missing fields // add missing fields
val fields = enums.filter { !glInterface.getFieldByName(it.name).isPresent } val fields = enums.filter { glInterface.getFieldByName(it.name).isEmpty }
.map { it.toDeclaration() } .map { it.toDeclaration() }
glInterface.members.addAll(fields) glInterface.members.addAll(fields)

Loading…
Cancel
Save