Skip to content

Commit ced3d5e

Browse files
committed
fix: restore examples compilation in CI
1 parent 1d32b3a commit ced3d5e

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

examples/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@
151151
<source>11</source>
152152
<target>11</target>
153153
<annotationProcessorPaths>
154+
<path>
155+
<groupId>com.google.errorprone</groupId>
156+
<artifactId>error_prone_core</artifactId>
157+
<version>2.31.0</version>
158+
</path>
154159
<path>
155160
<groupId>com.scylladb</groupId>
156161
<artifactId>java-driver-mapper-processor</artifactId>

examples/src/main/java/com/datastax/oss/driver/examples/paging/ForwardPagingRestUi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private static void populateSchema(CqlSession session) {
119119
int videoid = i * 100 + j;
120120
session.execute(
121121
prepare.bind(
122-
i, "user " + i, Instant.ofEpochMilli(j * 100000), videoid, "video " + videoid));
122+
i, "user " + i, Instant.ofEpochMilli(j * 100000L), videoid, "video " + videoid));
123123
}
124124
}
125125
}

examples/src/main/java/com/datastax/oss/driver/examples/paging/RandomPagingRestUi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private static void populateSchema(CqlSession session) {
129129
int videoid = i * 100 + j;
130130
session.execute(
131131
prepare.bind(
132-
i, "user " + i, Instant.ofEpochMilli(j * 100000), videoid, "video " + videoid));
132+
i, "user " + i, Instant.ofEpochMilli(j * 100000L), videoid, "video " + videoid));
133133
}
134134
}
135135
}

0 commit comments

Comments
 (0)