mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make @Nullable first param in ColorUtil.fromHex(str, defaultValue)
This commit is contained in:
@@ -204,7 +204,8 @@ public class ColorUtil {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static Color fromHex(@NotNull String str, @Nullable Color defaultValue) {
|
||||
public static Color fromHex(@Nullable String str, @Nullable Color defaultValue) {
|
||||
if (str == null) return defaultValue;
|
||||
try {
|
||||
return fromHex(str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user