mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-19 00:15:04 +00:00
[issue #2221] simplified configuration for @Singular-generated plural form nullchecks.
This commit is contained in:
85 files changed
+517
-643
No files matched your search
@@ -18,7 +18,9 @@ import lombok.Singular;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderSingularGuavaMaps.BuilderSingularGuavaMapsBuilder<K, V> battleaxes(final java.util.Map<? extends K, ? extends V> battleaxes) {
|
||||
if ((battleaxes == null))
|
||||
throw new java.lang.NullPointerException("battleaxes cannot be null");
|
||||
{
|
||||
throw new java.lang.NullPointerException("battleaxes cannot be null");
|
||||
}
|
||||
if ((this.battleaxes == null))
|
||||
this.battleaxes = com.google.common.collect.ImmutableMap.builder();
|
||||
this.battleaxes.putAll(battleaxes);
|
||||
@@ -36,7 +38,9 @@ import lombok.Singular;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderSingularGuavaMaps.BuilderSingularGuavaMapsBuilder<K, V> vertices(final java.util.Map<? extends Integer, ? extends V> vertices) {
|
||||
if ((vertices == null))
|
||||
throw new java.lang.NullPointerException("vertices cannot be null");
|
||||
{
|
||||
throw new java.lang.NullPointerException("vertices cannot be null");
|
||||
}
|
||||
if ((this.vertices == null))
|
||||
this.vertices = com.google.common.collect.ImmutableSortedMap.naturalOrder();
|
||||
this.vertices.putAll(vertices);
|
||||
@@ -54,7 +58,9 @@ import lombok.Singular;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderSingularGuavaMaps.BuilderSingularGuavaMapsBuilder<K, V> rawMap(final java.util.Map<?, ?> rawMap) {
|
||||
if ((rawMap == null))
|
||||
throw new java.lang.NullPointerException("rawMap cannot be null");
|
||||
{
|
||||
throw new java.lang.NullPointerException("rawMap cannot be null");
|
||||
}
|
||||
if ((this.rawMap == null))
|
||||
this.rawMap = com.google.common.collect.ImmutableBiMap.builder();
|
||||
this.rawMap.putAll(rawMap);
|
||||
|
||||
Reference in new issue
Block a user