fix compile

This commit is contained in:
anhefti 2019-07-10 12:16:12 +02:00
parent 42ef5a04aa
commit f26b1945ad

View file

@ -295,11 +295,11 @@ public class HTTPClientBot {
try { try {
final ResponseEntity<Object> exchange = this.restTemplate.exchange( final ResponseEntity<String> exchange = this.restTemplate.exchange(
this.handshakeURI, this.handshakeURI,
HttpMethod.PUT, HttpMethod.PUT,
configHeader, configHeader,
new ParameterizedTypeReference<>() { new ParameterizedTypeReference<String>() {
}); });
final HttpStatus statusCode = exchange.getStatusCode(); final HttpStatus statusCode = exchange.getStatusCode();
@ -323,7 +323,7 @@ public class HTTPClientBot {
this.pingURI, this.pingURI,
HttpMethod.POST, HttpMethod.POST,
pingHeader, pingHeader,
new ParameterizedTypeReference<>() { new ParameterizedTypeReference<String>() {
}); });
return true; return true;
@ -340,7 +340,7 @@ public class HTTPClientBot {
this.eventURI, this.eventURI,
HttpMethod.POST, HttpMethod.POST,
eventHeader, eventHeader,
new ParameterizedTypeReference<>() { new ParameterizedTypeReference<String>() {
}); });
return true; return true;
@ -359,11 +359,11 @@ public class HTTPClientBot {
try { try {
final ResponseEntity<Object> exchange = this.restTemplate.exchange( final ResponseEntity<String> exchange = this.restTemplate.exchange(
this.handshakeURI, this.handshakeURI,
HttpMethod.DELETE, HttpMethod.DELETE,
configHeader, configHeader,
new ParameterizedTypeReference<>() { new ParameterizedTypeReference<String>() {
}); });
final HttpStatus statusCode = exchange.getStatusCode(); final HttpStatus statusCode = exchange.getStatusCode();