Skip to content

Commit 70140ff

Browse files
committed
Make DecodeValue a public class again
`DecodedValue` is now a public class again, allowing custom `NodeCache` implementations to be created. The class was inadvertently made package-private in 4.0.0. Fixes #321.
1 parent 57ff48a commit 70140ff

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
CHANGELOG
22
=========
33

4+
4.0.1 (2025-12-02)
5+
------------------
6+
7+
* `DecodedValue` is now a public class again, allowing custom `NodeCache`
8+
implementations to be created. The class was inadvertently made
9+
package-private in 4.0.0. Reported by Alexandros Leventakis. GitHub #321.
10+
411
4.0.0 (2025-11-10)
512
------------------
613

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
package com.maxmind.db;
22

33
/**
4-
* {@code DecodedValue} is a wrapper for the decoded value and the number of bytes used
5-
* to decode it.
6-
*
7-
* @param value the decoded value
4+
* {@code DecodedValue} is a wrapper for the decoded value.
85
*/
9-
record DecodedValue(Object value) {}
6+
public final class DecodedValue {
7+
final Object value;
8+
9+
DecodedValue(Object value) {
10+
this.value = value;
11+
}
12+
13+
Object value() {
14+
return value;
15+
}
16+
}

0 commit comments

Comments
 (0)