From 7ad942b7cd1c91c58cccdb901d98d6888346d690 Mon Sep 17 00:00:00 2001 From: walon Date: Mon, 6 Feb 2023 21:33:46 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8D=E7=94=9F=E6=88=90=20?= =?UTF-8?q?java=20array=E7=B1=BB=E5=9E=8B=E4=BB=A3=E7=A0=81=E7=9A=84?= =?UTF-8?q?=E7=BC=96=E8=AF=91bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Luban.Job.Cfg/Source/TypeVisitors/JavaJsonDeserialize.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Luban.Job.Cfg/Source/TypeVisitors/JavaJsonDeserialize.cs b/src/Luban.Job.Cfg/Source/TypeVisitors/JavaJsonDeserialize.cs index 5100659..0b30295 100644 --- a/src/Luban.Job.Cfg/Source/TypeVisitors/JavaJsonDeserialize.cs +++ b/src/Luban.Job.Cfg/Source/TypeVisitors/JavaJsonDeserialize.cs @@ -97,14 +97,14 @@ namespace Luban.Job.Cfg.TypeVisitors string __e = $"__e{depth}"; string __v = $"__v{depth}"; string __index = $"__index{depth}"; - string typeStr = $"{type.ElementType.Apply(CsDefineTypeName.Ins)}[{__n}]"; + string typeStr = $"{type.ElementType.Apply(JavaDefineTypeName.Ins)}[{__n}]"; if (type.Dimension > 1) { if (type.FinalElementType == null) { throw new System.Exception("多维数组没有元素类型"); } - typeStr = $"{type.FinalElementType.Apply(CsUnderingDefineTypeName.Ins)}[{__n}]"; + typeStr = $"{type.FinalElementType.Apply(JavaDefineTypeName.Ins)}[{__n}]"; for (int i = 0; i < type.Dimension - 1; i++) { typeStr += "[]";