Skip to content

Commit 5a84125

Browse files
committed
Do not depend on particular Rest API version in the media support
Signed-off-by: Lukas Jungmann <[email protected]>
1 parent b23e460 commit 5a84125

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

rest/pom.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright (c) 2013, 2023 Oracle and/or its affiliates. All rights reserved.
4+
Copyright (c) 2013, 2024 Oracle and/or its affiliates. All rights reserved.
55
66
This program and the accompanying materials are made available under the
77
terms of the Eclipse Public License v. 2.0, which is available at
@@ -69,6 +69,15 @@
6969
<goals>
7070
<goal>manifest</goal>
7171
</goals>
72+
<configuration>
73+
<instructions>
74+
<Import-Package>
75+
jakarta.annotation*;version=!,
76+
jakarta.ws.rs*;version=!,
77+
*
78+
</Import-Package>
79+
</instructions>
80+
</configuration>
7281
</execution>
7382
</executions>
7483
</plugin>

rest/src/main/java/org/eclipse/parsson/media/JsonValueBodyReader.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2024 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -47,6 +47,12 @@ public class JsonValueBodyReader implements MessageBodyReader<JsonValue> {
4747
private static final String JSON = "json";
4848
private static final String PLUS_JSON = "+json";
4949

50+
/**
51+
* Constructor.
52+
*/
53+
public JsonValueBodyReader() {
54+
}
55+
5056
@Override
5157
public boolean isReadable(Class<?> aClass, Type type,
5258
Annotation[] annotations, MediaType mediaType) {

0 commit comments

Comments
 (0)