aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2015-11-17 02:14:13 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2015-11-17 02:14:13 +0100
commitb235bb49c57af4d925f58333d0ad631c6ccf924f (patch)
tree4660352362a1f349fd26f23bbe9c8a9158235b82 /test/transform/resource/after-delombok
parent6a003350f61bbebc3a20d8b17b59df6d065ca648 (diff)
downloadlombok-b235bb49c57af4d925f58333d0ad631c6ccf924f.tar.gz
lombok-b235bb49c57af4d925f58333d0ad631c6ccf924f.tar.bz2
lombok-b235bb49c57af4d925f58333d0ad631c6ccf924f.zip
[issue #937] Refactored the support for guava’s ImmutableTable.
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularGuavaListsSets.java13
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularGuavaMaps.java12
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularRedirectToGuava.java4
3 files changed, 19 insertions, 10 deletions
diff --git a/test/transform/resource/after-delombok/BuilderSingularGuavaListsSets.java b/test/transform/resource/after-delombok/BuilderSingularGuavaListsSets.java
index 7f1e7149..79ffbc8b 100644
--- a/test/transform/resource/after-delombok/BuilderSingularGuavaListsSets.java
+++ b/test/transform/resource/after-delombok/BuilderSingularGuavaListsSets.java
@@ -119,10 +119,13 @@ class BuilderSingularGuavaListsSets<T> {
@javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> clearPasses() {
this.passes = null;
+ return this;
}
- public BuilderSingularGuavaListsSetsBuilder<T> user(final com.google.common.collect.Table.Cell<Number, Number, String> user) {
+ @java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
+ public BuilderSingularGuavaListsSetsBuilder<T> user(final Number rowKey, final Number columnKey, final String value) {
if (this.users == null) this.users = com.google.common.collect.ImmutableTable.builder();
- this.users.put(user);
+ this.users.put(rowKey, columnKey, value);
return this;
}
@java.lang.SuppressWarnings("all")
@@ -134,6 +137,12 @@ class BuilderSingularGuavaListsSets<T> {
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
+ public BuilderSingularGuavaListsSetsBuilder<T> clearUsers() {
+ this.users = null;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSets<T> build() {
com.google.common.collect.ImmutableList<T> cards = this.cards == null ? com.google.common.collect.ImmutableList.<T>of() : this.cards.build();
com.google.common.collect.ImmutableCollection<Number> frogs = this.frogs == null ? com.google.common.collect.ImmutableList.<Number>of() : this.frogs.build();
diff --git a/test/transform/resource/after-delombok/BuilderSingularGuavaMaps.java b/test/transform/resource/after-delombok/BuilderSingularGuavaMaps.java
index 10545a8f..1ad8fa83 100644
--- a/test/transform/resource/after-delombok/BuilderSingularGuavaMaps.java
+++ b/test/transform/resource/after-delombok/BuilderSingularGuavaMaps.java
@@ -31,9 +31,9 @@ class BuilderSingularGuavaMaps<K, V> {
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
- public BuilderSingularGuavaMapsBuilder<K, V> battleaxe(final K battleaxe$key, final V battleaxe$value) {
+ public BuilderSingularGuavaMapsBuilder<K, V> battleaxe(final K key, final V value) {
if (this.battleaxes == null) this.battleaxes = com.google.common.collect.ImmutableMap.builder();
- this.battleaxes.put(battleaxe$key, battleaxe$value);
+ this.battleaxes.put(key, value);
return this;
}
@java.lang.SuppressWarnings("all")
@@ -51,9 +51,9 @@ class BuilderSingularGuavaMaps<K, V> {
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
- public BuilderSingularGuavaMapsBuilder<K, V> vertex(final Integer vertex$key, final V vertex$value) {
+ public BuilderSingularGuavaMapsBuilder<K, V> vertex(final Integer key, final V value) {
if (this.vertices == null) this.vertices = com.google.common.collect.ImmutableSortedMap.naturalOrder();
- this.vertices.put(vertex$key, vertex$value);
+ this.vertices.put(key, value);
return this;
}
@java.lang.SuppressWarnings("all")
@@ -71,9 +71,9 @@ class BuilderSingularGuavaMaps<K, V> {
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
- public BuilderSingularGuavaMapsBuilder<K, V> rawMap(final java.lang.Object rawMap$key, final java.lang.Object rawMap$value) {
+ public BuilderSingularGuavaMapsBuilder<K, V> rawMap(final java.lang.Object key, final java.lang.Object value) {
if (this.rawMap == null) this.rawMap = com.google.common.collect.ImmutableBiMap.builder();
- this.rawMap.put(rawMap$key, rawMap$value);
+ this.rawMap.put(key, value);
return this;
}
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderSingularRedirectToGuava.java b/test/transform/resource/after-delombok/BuilderSingularRedirectToGuava.java
index 506a8b4c..7ffa647b 100644
--- a/test/transform/resource/after-delombok/BuilderSingularRedirectToGuava.java
+++ b/test/transform/resource/after-delombok/BuilderSingularRedirectToGuava.java
@@ -50,9 +50,9 @@ class BuilderSingularRedirectToGuava {
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
- public BuilderSingularRedirectToGuavaBuilder thing(final Integer thing$key, final Number thing$value) {
+ public BuilderSingularRedirectToGuavaBuilder thing(final Integer key, final Number value) {
if (this.things == null) this.things = com.google.common.collect.ImmutableSortedMap.naturalOrder();
- this.things.put(thing$key, thing$value);
+ this.things.put(key, value);
return this;
}
@java.lang.SuppressWarnings("all")