From d7ebb557568b1713b97d9ba58cbf8d4d1e239a69 Mon Sep 17 00:00:00 2001 From: aoshiguchen <1052045476@qq.com> Date: Wed, 29 Jun 2022 16:39:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E7=BD=AE=E6=89=A9=E5=B1=95=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E5=99=A8=E7=9B=B8=E5=85=B3=E7=BB=93=E6=9E=84=E4=BC=98?= =?UTF-8?q?=E5=8C=96..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/fun/asgc/neutrino/core/type/TypeMatchInfo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neutrino-core/src/main/java/fun/asgc/neutrino/core/type/TypeMatchInfo.java b/neutrino-core/src/main/java/fun/asgc/neutrino/core/type/TypeMatchInfo.java index b7771e72..91b7f9c0 100644 --- a/neutrino-core/src/main/java/fun/asgc/neutrino/core/type/TypeMatchInfo.java +++ b/neutrino-core/src/main/java/fun/asgc/neutrino/core/type/TypeMatchInfo.java @@ -71,6 +71,7 @@ public class TypeMatchInfo { } public boolean isMatched() { - return TypeMatchLevel.byTypeDistance(this.typeDistance) != null && typeConverter != null; + TypeMatchLevel matchLevel = TypeMatchLevel.byTypeDistance(this.typeDistance); + return matchLevel != null && matchLevel != TypeMatchLevel.NOT && typeConverter != null; } }