Skip to content

Commit

Permalink
Add Nullable annotation in JAXWSBundle (#64)
Browse files Browse the repository at this point in the history
Add Checker Nullable annotation to getPublishedEndpointUrlPrefix in
JAXWSBundle. This method is intended to be overriden if an application
wants to provide a URL prefix.
  • Loading branch information
sleberknight authored Nov 8, 2023
1 parent 5b58a32 commit b59b892
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dropwizard-jakarta-xml-ws/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

<dependencies>

<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>checker-qual</artifactId>
</dependency>

<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import io.dropwizard.core.setup.Environment;
import jakarta.xml.ws.handler.Handler;
import org.apache.cxf.jaxws.EndpointImpl;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.hibernate.SessionFactory;

/**
Expand Down Expand Up @@ -187,8 +188,9 @@ public <T> T getClient(ClientBuilder<T> clientBuilder) {
* Override this method to configure the bundle.
*
* @param configuration Application configuration.
* @return Published endpoint URL prefix.
* @return Published endpoint URL prefix, or null if there is no prefix
*/
@Nullable
protected String getPublishedEndpointUrlPrefix(C configuration) {
return null;
}
Expand Down

0 comments on commit b59b892

Please sign in to comment.