mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Support nullable icon
This commit is contained in:
@@ -74,7 +74,7 @@ public class Notification {
|
||||
private WeakReference<Balloon> myBalloonRef;
|
||||
private final long myTimestamp;
|
||||
|
||||
public Notification(@NotNull String groupDisplayId, @NotNull Icon icon, @NotNull NotificationType type) {
|
||||
public Notification(@NotNull String groupDisplayId, @Nullable Icon icon, @NotNull NotificationType type) {
|
||||
this(groupDisplayId, icon, null, null, null, type, null);
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ public class Notification {
|
||||
* @param listener notification lifecycle listener
|
||||
*/
|
||||
public Notification(@NotNull String groupDisplayId,
|
||||
@NotNull Icon icon,
|
||||
@Nullable Icon icon,
|
||||
@Nullable String title,
|
||||
@Nullable String subtitle,
|
||||
@Nullable String content,
|
||||
|
||||
@@ -138,7 +138,6 @@ public final class NotificationGroup {
|
||||
@Nullable String content,
|
||||
@NotNull NotificationType type,
|
||||
@Nullable NotificationListener listener) {
|
||||
LOG.assertTrue(myIcon != null);
|
||||
return new Notification(myDisplayId, myIcon, title, subtitle, content, type, listener);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user