From f21fac0d6f7c73c7b0bcdcc3a6ef6de000edb76d Mon Sep 17 00:00:00 2001 From: ulrich Date: Sun, 08 Dec 2024 11:54:38 +0000 Subject: [PATCH] Einstweilen auf JDK 11 umgestellt fuer allgemeinere Verwendbarkeit --- src/de/uhilger/neon/Handler.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/uhilger/neon/Handler.java b/src/de/uhilger/neon/Handler.java index bbd5e78..1504861 100644 --- a/src/de/uhilger/neon/Handler.java +++ b/src/de/uhilger/neon/Handler.java @@ -96,9 +96,9 @@ // .log(Level.INFO, "{0} {1} {2}", new Object[]{methodType, route, className}); //dispatcher.get(methodType).put(ad.route, ad); Object adMapObj = dispatcher.get(methodType); - if(adMapObj instanceof HashMap hashMap) { + if(adMapObj instanceof HashMap) { @SuppressWarnings("unchecked") - HashMap<String, ActionDescriptor> map = hashMap; + HashMap<String, ActionDescriptor> map = (HashMap) adMapObj; map.put(ad.route, ad); Logger.getLogger(Handler.class.getName()).log(Level.FINER, "ActionDescriptor route {0} className {1}", new Object[]{route, className}); } else { -- Gitblit v1.9.3