Skip to content

Commit

Permalink
Switch to eclipse jaxrs-api dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed Jan 8, 2019
1 parent 7a95dad commit aeca144
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
12 changes: 4 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,13 @@
<artifactId>slf4j-ext</artifactId>
<version>1.7.25</version>
</dependency>

<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.1.1</version>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<version>2.1.4</version>
</dependency>



<dependency>
<groupId>net.openhft</groupId>
<artifactId>compiler</artifactId>
Expand Down Expand Up @@ -303,8 +301,6 @@
<version>4.4.10</version>
</dependency>



<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ protected void addClassMethodHandlers(TypeSpec.Builder typeBuilder, Class<?> cla
List<String> securityDefinitions = new ArrayList<>();

/*
* @TODO wrap blocking in BlockingHandler
* @TODO wrap blocking in BlockingHandler?
*/

if (Optional.ofNullable(m.getAnnotation(Path.class)).isPresent()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,10 @@ public void handleRequest(HttpServerExchange exchange) throws Exception
else
{
// already something in the resolved path
StringBuilder sb = new StringBuilder(exchange.getResolvedPath().length() + match.getMatched().length());

sb.append(exchange.getResolvedPath());
sb.append(match.getMatched());
exchange.setResolvedPath(sb.toString());
String sb = exchange.getResolvedPath() +
match.getMatched();
exchange.setResolvedPath(sb);
}

match.getValue().handleRequest(exchange);
Expand Down

0 comments on commit aeca144

Please sign in to comment.