From dae73b667a1993b58115356cc80bbe25eca65992 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 15 Mar 2020 15:34:04 +0000 Subject: [PATCH] Replace !Optional.isPresent() with Optional.isEmpty() Signed-off-by: Graham --- .../main/java/dev/openrs2/deob/ast/transform/GlTransformer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlTransformer.kt b/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlTransformer.kt index 94145f4516..739975b87e 100644 --- a/deob-ast/src/main/java/dev/openrs2/deob/ast/transform/GlTransformer.kt +++ b/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() // add missing fields - val fields = enums.filter { !glInterface.getFieldByName(it.name).isPresent } + val fields = enums.filter { glInterface.getFieldByName(it.name).isEmpty } .map { it.toDeclaration() } glInterface.members.addAll(fields)