From 1162e5182e8b510752856331427076b3f09f4bc9 Mon Sep 17 00:00:00 2001 From: Vincent Sisk Date: Wed, 25 Oct 2017 13:12:25 -0600 Subject: [PATCH 1/2] Fix typo in features.html --- features.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features.html b/features.html index 70ec23d..86f6d83 100644 --- a/features.html +++ b/features.html @@ -218,7 +218,7 @@

Product Types

if (m != null) return m.get("Los Angeles"); // May return null. } // Functional Java with product and option types. -public Option albuquerqueToLA(TreeMap, Integer>() map) { +public Option albuquerqueToLA(TreeMap<Integer>() map) { return m.get(p("Albuquerque", "Los Angeles")); } From 90cf6a509718a42fa366711e9aeebb4182202797 Mon Sep 17 00:00:00 2001 From: Vincent Sisk Date: Wed, 25 Oct 2017 13:16:24 -0600 Subject: [PATCH 2/2] fix map generic types --- features.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features.html b/features.html index 86f6d83..dc08996 100644 --- a/features.html +++ b/features.html @@ -213,12 +213,12 @@

Product Types

// Regular Java
-public Integer albuquerqueToLA(Map> map) {
+public Integer albuquerqueToLA(Map<String, Integer> map) {
   Map m = map.get("Albuquerque");
   if (m != null) return m.get("Los Angeles"); // May return null.
 }
 // Functional Java with product and option types.
-public Option albuquerqueToLA(TreeMap<Integer>() map) {
+public Option albuquerqueToLA(TreeMap<String, Integer>() map) {
   return m.get(p("Albuquerque", "Los Angeles"));
 }