You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/01/23 14:58:29 UTC
(commons-io) 01/02: Fix code examples
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit 66d21a0a46c7b36ff7b1663da19605baeca08601
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jan 23 09:54:22 2025 -0500
Fix code examples
---
src/site/xdoc/description.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/site/xdoc/description.xml b/src/site/xdoc/description.xml
index 8fc9d075e..6e8b972ba 100644
--- a/src/site/xdoc/description.xml
+++ b/src/site/xdoc/description.xml
@@ -247,7 +247,7 @@ limitations under the License.
ValidatingObjectInputStream vois = ValidatingObjectInputStream.builder().setInputStream(bais).get()) {
// String.class is automatically accepted
vois.accept(HashMap.class, Number.class, Integer.class);
- final HashMap<String, Integer< map2 = (HashMap<String, Integer>) vois.readObject();
+ final HashMap<String, Integer> map2 = (HashMap<String, Integer>) vois.readObject();
assertEquals(map1, map2);
}
// Reusing a configuration
@@ -259,7 +259,7 @@ limitations under the License.
.setInputStream(bais)
.get()) {
// String.class is automatically accepted
- final HashMap<String, Integer< map2 = (HashMap<String, Integer<) vois.readObject();
+ final HashMap<String, Integer> map2 = (HashMap<String, Integer>) vois.readObject();
assertEquals(map1, map2);
}
</source>