Skip to content

Commit

Permalink
Do not depend on particular Rest API version in the media support
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <[email protected]>
  • Loading branch information
lukasj committed Jun 7, 2024
1 parent b23e460 commit 5a84125
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 10 additions & 1 deletion rest/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013, 2023 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2013, 2024 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -69,6 +69,15 @@
<goals>
<goal>manifest</goal>
</goals>
<configuration>
<instructions>
<Import-Package>
jakarta.annotation*;version=!,
jakarta.ws.rs*;version=!,
*
</Import-Package>
</instructions>
</configuration>
</execution>
</executions>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -47,6 +47,12 @@ public class JsonValueBodyReader implements MessageBodyReader<JsonValue> {
private static final String JSON = "json";
private static final String PLUS_JSON = "+json";

/**
* Constructor.
*/
public JsonValueBodyReader() {
}

@Override
public boolean isReadable(Class<?> aClass, Type type,
Annotation[] annotations, MediaType mediaType) {
Expand Down

0 comments on commit 5a84125

Please sign in to comment.