File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
plugin/src/software/aws/toolkits/eclipse/amazonq/util Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ public final class ToolkitNotification extends AbstractNotificationPopup {
25
25
private final String description ;
26
26
private Image infoIcon ;
27
27
private static CopyOnWriteArrayList <ToolkitNotification > activeNotifications = new CopyOnWriteArrayList <>();
28
- private static Object lock = new Object ();
29
28
private static final int MAX_WIDTH = 400 ;
30
29
private static final int MIN_HEIGHT = 100 ;
31
30
private static final int PADDING_EDGE = 5 ;
@@ -81,9 +80,7 @@ protected void initializeBounds() {
81
80
}
82
81
getShell ().setLocation (x , y );
83
82
getShell ().setSize (size );
84
- synchronized (lock ) {
85
- activeNotifications .add (this );
86
- }
83
+ activeNotifications .add (this );
87
84
}
88
85
89
86
private Rectangle getPrimaryClientArea () {
@@ -109,9 +106,7 @@ private void repositionNotifications() {
109
106
110
107
@ Override
111
108
public boolean close () {
112
- synchronized (lock ) {
113
- activeNotifications .remove (this );
114
- }
109
+ activeNotifications .remove (this );
115
110
repositionNotifications ();
116
111
if (this .infoIcon != null && !this .infoIcon .isDisposed ()) {
117
112
this .infoIcon .dispose ();
You can’t perform that action at this time.
0 commit comments