From 3137b8851aba15d939dbe617b1d339ab17b4b6eb Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Thu, 3 Oct 2019 11:00:17 -0700 Subject: [PATCH] Fix #2485 --- release-notes/VERSION-2.x | 2 ++ src/moditect/module-info.java | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/release-notes/VERSION-2.x b/release-notes/VERSION-2.x index e218cd76df..e5fce51120 100644 --- a/release-notes/VERSION-2.x +++ b/release-notes/VERSION-2.x @@ -14,6 +14,8 @@ Project: jackson-databind #2475: `StringCollectionSerializer` calls `JsonGenerator.setCurrentValue(value)`, which messes up current value for sibling properties (reported by Ryan B) +#2485: Add `uses` for `Module` in module-info + (contributed by Marc M) 2.10.0 (26-Sep-2019) diff --git a/src/moditect/module-info.java b/src/moditect/module-info.java index bebd16131d..4129187ae9 100644 --- a/src/moditect/module-info.java +++ b/src/moditect/module-info.java @@ -5,6 +5,7 @@ requires transitive com.fasterxml.jackson.annotation; requires transitive com.fasterxml.jackson.core; + requires java.base; // these types were suggested as transitive, but aren't actually // exposed externally (only within internal APIs) requires java.sql; @@ -32,6 +33,9 @@ exports com.fasterxml.jackson.databind.type; exports com.fasterxml.jackson.databind.util; + // [databind#2485]: prevent warning for "unused" with self-use + uses com.fasterxml.jackson.databind.Module; + provides com.fasterxml.jackson.core.ObjectCodec with com.fasterxml.jackson.databind.ObjectMapper; }