From 42d9de2c00cd43ebec59c19897a70f8ced3a59c0 Mon Sep 17 00:00:00 2001 From: joshua bauer Date: Sun, 29 Dec 2019 22:36:54 -0800 Subject: [PATCH] Revert JSONView updates. --- CHANGELOG.md | 5 +++++ .../java/io/sinistral/proteus/wrappers/JsonViewWrapper.java | 3 +++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 482cd20..0f8c98b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ Proteus Changelog. ## Unreleased ### No issue +**Improve default JsonView handling.** + + +[f341af566518055](https://github.com/noboomu/proteus/commit/f341af566518055) joshua bauer *2020-12-30 05:48:32* + **Restructure pom files.** diff --git a/proteus-core/src/main/java/io/sinistral/proteus/wrappers/JsonViewWrapper.java b/proteus-core/src/main/java/io/sinistral/proteus/wrappers/JsonViewWrapper.java index 2998196..00d76d4 100644 --- a/proteus-core/src/main/java/io/sinistral/proteus/wrappers/JsonViewWrapper.java +++ b/proteus-core/src/main/java/io/sinistral/proteus/wrappers/JsonViewWrapper.java @@ -51,6 +51,8 @@ public JsonViewWrapper() CLASS_MAP.put(c.getSimpleName().toLowerCase(), c); } + + } catch (Exception e) { logger.error("Error processing JsonView", e); } @@ -60,6 +62,7 @@ public JsonViewWrapper() @Override public HttpHandler wrap(HttpHandler handler) { + return exchange -> { if (CLASS_MAP != null) {