Skip to content

Commit 66d21a0

Browse files
committed
Fix code examples
1 parent 9a94ba7 commit 66d21a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/site/xdoc/description.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ limitations under the License.
247247
ValidatingObjectInputStream vois = ValidatingObjectInputStream.builder().setInputStream(bais).get()) {
248248
// String.class is automatically accepted
249249
vois.accept(HashMap.class, Number.class, Integer.class);
250-
final HashMap<String, Integer< map2 = (HashMap<String, Integer>) vois.readObject();
250+
final HashMap<String, Integer> map2 = (HashMap<String, Integer>) vois.readObject();
251251
assertEquals(map1, map2);
252252
}
253253
// Reusing a configuration
@@ -259,7 +259,7 @@ limitations under the License.
259259
.setInputStream(bais)
260260
.get()) {
261261
// String.class is automatically accepted
262-
final HashMap<String, Integer< map2 = (HashMap<String, Integer<) vois.readObject();
262+
final HashMap<String, Integer> map2 = (HashMap<String, Integer>) vois.readObject();
263263
assertEquals(map1, map2);
264264
}
265265
</source>

0 commit comments

Comments
 (0)