mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Be more friendly
This commit is contained in:
@@ -2056,7 +2056,7 @@ public class UIUtil {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static Component findParentByCondition(@NotNull JComponent c, Condition<Component> condition) {
|
||||
public static Component findParentByCondition(@NotNull Component c, Condition<Component> condition) {
|
||||
Component eachParent = c;
|
||||
while (eachParent != null) {
|
||||
if (condition.value(eachParent)) return eachParent;
|
||||
|
||||
Reference in New Issue
Block a user