Skip to content

Commit bf24cb8

Browse files
add @nullable for better readability
1 parent 6622257 commit bf24cb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/main/java/com/hyperwallet/android/ui/transfermethod/TransferMethodUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import android.content.res.Resources;
3232

3333
import androidx.annotation.NonNull;
34+
import androidx.annotation.Nullable;
3435
import androidx.annotation.StringRes;
3536

3637
import com.hyperwallet.android.model.transfermethod.HyperwalletTransferMethod;
@@ -142,7 +143,7 @@ public static String getTransferMethodName(@NonNull final Context context,
142143
*/
143144
public static String getTransferMethodDetail(@NonNull Context context,
144145
@NonNull final HyperwalletTransferMethod transferMethod,
145-
@TransferMethodType final String type) {
146+
@Nullable @TransferMethodType final String type) {
146147
if (type == null) {
147148
return "";
148149
}

0 commit comments

Comments
 (0)