aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/BuilderSingularMaps.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2017-03-22 22:02:12 +0100
committerRoel Spilker <r.spilker@gmail.com>2017-03-22 22:24:12 +0100
commit1db7052464d8956d7ebe303b15729a7c0be557bf (patch)
treeab6dbc838fa0b082b4a068feee93620bf5bc4b6c /test/transform/resource/after-delombok/BuilderSingularMaps.java
parent6b3aa5ffd3d4e4d7a26ea41cd77b2b031722e365 (diff)
downloadlombok-1db7052464d8956d7ebe303b15729a7c0be557bf.tar.gz
lombok-1db7052464d8956d7ebe303b15729a7c0be557bf.tar.bz2
lombok-1db7052464d8956d7ebe303b15729a7c0be557bf.zip
[jdk9] Workaround for a weird casting issue that shows up for singularizer support.
Diffstat (limited to 'test/transform/resource/after-delombok/BuilderSingularMaps.java')
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularMaps.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/transform/resource/after-delombok/BuilderSingularMaps.java b/test/transform/resource/after-delombok/BuilderSingularMaps.java
index 257a2ec2..6520568b 100644
--- a/test/transform/resource/after-delombok/BuilderSingularMaps.java
+++ b/test/transform/resource/after-delombok/BuilderSingularMaps.java
@@ -166,11 +166,11 @@ class BuilderSingularMaps<K, V> {
break;
default:
women = new java.util.LinkedHashMap<K, V>(this.women$key.size() < 1073741824 ? 1 + this.women$key.size() + (this.women$key.size() - 3) / 3 : Integer.MAX_VALUE);
- for (int $i = 0; $i < this.women$key.size(); $i++) women.put(this.women$key.get($i), this.women$value.get($i));
+ for (int $i = 0; $i < this.women$key.size(); $i++) women.put(this.women$key.get($i), (V) this.women$value.get($i));
women = java.util.Collections.unmodifiableMap(women);
}
java.util.SortedMap<K, Number> men = new java.util.TreeMap<K, Number>();
- if (this.men$key != null) for (int $i = 0; $i < (this.men$key == null ? 0 : this.men$key.size()); $i++) men.put(this.men$key.get($i), this.men$value.get($i));
+ if (this.men$key != null) for (int $i = 0; $i < (this.men$key == null ? 0 : this.men$key.size()); $i++) men.put(this.men$key.get($i), (Number) this.men$value.get($i));
men = java.util.Collections.unmodifiableSortedMap(men);
java.util.Map<Object, Object> rawMap;
switch (this.rawMap$key == null ? 0 : this.rawMap$key.size()) {
@@ -182,7 +182,7 @@ class BuilderSingularMaps<K, V> {
break;
default:
rawMap = new java.util.LinkedHashMap<Object, Object>(this.rawMap$key.size() < 1073741824 ? 1 + this.rawMap$key.size() + (this.rawMap$key.size() - 3) / 3 : Integer.MAX_VALUE);
- for (int $i = 0; $i < this.rawMap$key.size(); $i++) rawMap.put(this.rawMap$key.get($i), this.rawMap$value.get($i));
+ for (int $i = 0; $i < this.rawMap$key.size(); $i++) rawMap.put(this.rawMap$key.get($i), (Object) this.rawMap$value.get($i));
rawMap = java.util.Collections.unmodifiableMap(rawMap);
}
java.util.Map<String, V> stringMap;
@@ -195,7 +195,7 @@ class BuilderSingularMaps<K, V> {
break;
default:
stringMap = new java.util.LinkedHashMap<String, V>(this.stringMap$key.size() < 1073741824 ? 1 + this.stringMap$key.size() + (this.stringMap$key.size() - 3) / 3 : Integer.MAX_VALUE);
- for (int $i = 0; $i < this.stringMap$key.size(); $i++) stringMap.put(this.stringMap$key.get($i), this.stringMap$value.get($i));
+ for (int $i = 0; $i < this.stringMap$key.size(); $i++) stringMap.put(this.stringMap$key.get($i), (V) this.stringMap$value.get($i));
stringMap = java.util.Collections.unmodifiableMap(stringMap);
}
return new BuilderSingularMaps<K, V>(women, men, rawMap, stringMap);