From e1df150a3739d795561fc06b57b815ae2e5598a0 Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Sat, 13 May 2017 16:49:21 +0800 Subject: [PATCH] --- src/org/redkale/boot/Application.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/redkale/boot/Application.java b/src/org/redkale/boot/Application.java index 4208c381c..3da64eb32 100644 --- a/src/org/redkale/boot/Application.java +++ b/src/org/redkale/boot/Application.java @@ -546,7 +546,9 @@ public final class Application { p = p.toUpperCase(); if ("SNCP".equals(p) || "HTTP".equals(p)) continue; final Class old = nodeClasses.get(p); - if (old != null && old != type) throw new RuntimeException("Protocol(" + p + ") had NodeServer-Class(" + old.getName() + ") but repeat NodeServer-Class(" + type.getName() + ")"); + if (old != null && old != type) { + throw new RuntimeException("Protocol(" + p + ") had NodeServer-Class(" + old.getName() + ") but repeat NodeServer-Class(" + type.getName() + ")"); + } nodeClasses.put(p, type); } }