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/Factory.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/de/uhilger/neon/Factory.java b/src/de/uhilger/neon/Factory.java
index 7c3af07..8b555ff 100644
--- a/src/de/uhilger/neon/Factory.java
+++ b/src/de/uhilger/neon/Factory.java
@@ -196,8 +196,8 @@
          */
         ctxAttrs.putAll(cd.attributes);
         ctxAttrs.put("serverDataProviderList", sdp);
-        if (h instanceof Handler handler) {
-          wire(handler, cd.attributes.get("contextName"));
+        if (h instanceof Handler) {
+          wire((Handler) h, cd.attributes.get("contextName"));
         }
         if (cd.authenticator instanceof String) {
           if (!(auth instanceof Authenticator)) {
@@ -214,8 +214,8 @@
             //
             Object filterObj = Class.forName(filterClassName)
                     .getDeclaredConstructor().newInstance();
-            if (filterObj instanceof Filter filter) {
-              ctx.getFilters().add(filter);
+            if (filterObj instanceof Filter) {
+              ctx.getFilters().add((Filter) filterObj);
             }
           }
         }

--
Gitblit v1.9.3