make @Nullable first param in ColorUtil.fromHex(str, defaultValue)

This commit is contained in:
Konstantin Bulenkov
2018-09-05 22:33:55 +02:00
parent bd7c65a23d
commit 02334318c0
@@ -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);
}