Skip to content

Commit 5ae61f2

Browse files
committed
drop binary compatibility with java 7, ensure compiles with Java 21
1 parent b085537 commit 5ae61f2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2121
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2222
<scm.url>scm:git:https://github.com/davidmoten/rxjava-jdbc.git</scm.url>
23-
<maven.compiler.target>1.7</maven.compiler.target>
23+
<maven.compiler.target>1.8</maven.compiler.target>
2424
<rxjava.version>1.3.8</rxjava.version>
2525
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2626
<checkstyle.version>3.3.1</checkstyle.version>

src/main/java/com/github/davidmoten/rx/jdbc/QuerySelect.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,10 @@ public Observable<T> call(List<Parameter> params) {
136136
* one set of parameters to be run with the query
137137
* @return
138138
*/
139+
@SuppressWarnings("unchecked")
139140
private <T> Observable<T> executeOnce(final List<Parameter> params,
140141
ResultSetMapper<? extends T> function) {
141-
return QuerySelectOnSubscribe.execute(this, params, function)
142+
return (Observable<T>) QuerySelectOnSubscribe.execute(this, params, function)
142143
.subscribeOn(context.scheduler());
143144
}
144145

0 commit comments

Comments
 (0)