From: Damyan Ivanov Date: Sat, 25 Apr 2020 19:57:46 +0000 (+0300) Subject: @NotNull annotation X-Git-Tag: v0.12.0~39 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=784dee8259fc3b073e5854fb538d19896803b852;p=mobile-ledger.git @NotNull annotation may help something somewhere --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java index 77ce69a0..3a757607 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java @@ -53,6 +53,8 @@ import net.ktnx.mobileledger.utils.Logger; import net.ktnx.mobileledger.utils.MLDB; import net.ktnx.mobileledger.utils.Misc; +import org.jetbrains.annotations.NotNull; + import java.text.DecimalFormatSymbols; import java.util.Calendar; import java.util.Date; @@ -430,7 +432,7 @@ class NewTransactionItemHolder extends RecyclerView.ViewHolder tvAccount.setEnabled(editable); tvAmount.setEnabled(editable); } - private void setCommentVisible(Boolean visible) { + private void setCommentVisible(@NotNull Boolean visible) { if (visible) { // showing; show the comment view and align the comment button to it tvComment.setVisibility(View.VISIBLE);