File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/java.desktop/share/classes/javax/swing Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 1997, 2024 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1997, 2025 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -389,11 +389,8 @@ public synchronized void removeInvalidComponent(JComponent component) {
389
389
delegate .removeInvalidComponent (component );
390
390
return ;
391
391
}
392
- if (invalidComponents != null ) {
393
- int index = invalidComponents .indexOf (component );
394
- if (index != -1 ) {
395
- invalidComponents .remove (index );
396
- }
392
+ if (invalidComponents != null ) {
393
+ invalidComponents .remove (component );
397
394
}
398
395
}
399
396
You can’t perform that action at this time.
0 commit comments