From 8e7423773bc769172eb85ab18ddd1d772d0ebe23 Mon Sep 17 00:00:00 2001 From: MaxKey Date: Mon, 24 Oct 2022 17:49:46 +0800 Subject: [PATCH] processorType fix_bug:#I5X10K rename type to processorType --- .../src/main/java/org/maxkey/web/InitializeContext.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/maxkey-core/src/main/java/org/maxkey/web/InitializeContext.java b/maxkey-core/src/main/java/org/maxkey/web/InitializeContext.java index 6e17a22f..56d6d5d5 100644 --- a/maxkey-core/src/main/java/org/maxkey/web/InitializeContext.java +++ b/maxkey-core/src/main/java/org/maxkey/web/InitializeContext.java @@ -201,14 +201,15 @@ public class InitializeContext extends HttpServlet { _logger.trace(key + " = {}" , map.get(key)); } _logger.debug("APP_HOME" + " = {}" , PathUtils.getInstance().getAppPath()); - Processor.Type type = ArchUtils.getProcessor().getType(); - if (Objects.isNull(type)){ - type = Processor.Type.UNKNOWN; + + Processor.Type processorType = ArchUtils.getProcessor().getType(); + if (Objects.isNull(processorType)){ + processorType = Processor.Type.UNKNOWN; } _logger.debug("OS : {}({} {}), version {}", SystemUtils.OS_NAME, SystemUtils.OS_ARCH, - type, + processorType, SystemUtils.OS_VERSION );