@Override public Notification build() { String missing = ""; if (this.message == null) { missing += " message"; } if (this.title == null) { missing += " title"; } if (this.icon == null) { missing += " icon"; } if (this.level == null) { missing += " level"; } if (!missing.isEmpty()) { throw new IllegalStateException("Missing required properties:" + missing); } return new AutoValue_Notification( this.message, this.title, this.subtitle, this.icon, this.level); } }
@Override public Notification build() { String missing = ""; if (this.message == null) { missing += " message"; } if (this.title == null) { missing += " title"; } if (this.icon == null) { missing += " icon"; } if (this.level == null) { missing += " level"; } if (!missing.isEmpty()) { throw new IllegalStateException("Missing required properties:" + missing); } return new AutoValue_Notification( this.message, this.title, this.subtitle, this.icon, this.level); } }