From 8d544729a8d51f860ac7a05cca0ae61c4cccd60a Mon Sep 17 00:00:00 2001 From: Enyby Date: Sun, 16 Sep 2018 17:05:52 +0300 Subject: [PATCH] Avoid synthetic methods. --- src/core/org/luaj/vm2/lib/DebugLib.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/org/luaj/vm2/lib/DebugLib.java b/src/core/org/luaj/vm2/lib/DebugLib.java index c7735c89..81f4f7c6 100644 --- a/src/core/org/luaj/vm2/lib/DebugLib.java +++ b/src/core/org/luaj/vm2/lib/DebugLib.java @@ -700,7 +700,7 @@ public class DebugLib extends TwoArgFunction { if ( !f.isclosure() ) return f.tojstring(); return f.checkclosure().p.shortsource() + ":" + currentline(); } - private int linedefined() { + int linedefined() { return f.isclosure()? f.checkclosure().p.linedefined: -1; } LuaString getlocalname(int index) {