Restore Java 7 compatibility for adapters.
This commit is contained in:
parent
cca352fa9f
commit
a45ffce118
3 changed files with 12 additions and 4 deletions
|
@ -63,6 +63,14 @@
|
|||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>${maven.compiler.source}</source>
|
||||
<target>${maven.compiler.target}</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- Adding OSGI metadata to the JAR without changing the packaging type. -->
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
|
@ -98,4 +106,4 @@
|
|||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
</project>
|
||||
|
|
|
@ -48,7 +48,7 @@ public class HttpMethod<R> {
|
|||
private HttpMethodResponse<R> response;
|
||||
|
||||
public HttpMethod(Configuration configuration, RequestBuilder builder) {
|
||||
this(configuration, builder, new HashMap<>(), new HashMap<>());
|
||||
this(configuration, builder, new HashMap<String, String>(), new HashMap<String, String>());
|
||||
}
|
||||
|
||||
public HttpMethod(Configuration configuration, RequestBuilder builder, HashMap<String, String> params, HashMap<String, String> headers) {
|
||||
|
@ -155,4 +155,4 @@ public class HttpMethod<R> {
|
|||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ public class HttpMethodResponse<R> {
|
|||
});
|
||||
}
|
||||
|
||||
public HttpMethodResponse<R> json(Class<R> responseType) {
|
||||
public HttpMethodResponse<R> json(final Class<R> responseType) {
|
||||
return new HttpMethodResponse<R>(this.method) {
|
||||
@Override
|
||||
public R execute() {
|
||||
|
|
Loading…
Reference in a new issue