From 7ff831769e3db0a4fa453e0cffda9b8a4bd25c3b Mon Sep 17 00:00:00 2001 From: Pratyush Date: Sun, 2 Oct 2022 18:41:07 +0530 Subject: [PATCH] add missing NonNull annotation --- app/src/main/java/app/grapheneos/pdfviewer/PdfViewer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/grapheneos/pdfviewer/PdfViewer.java b/app/src/main/java/app/grapheneos/pdfviewer/PdfViewer.java index 15b3493..ad8ef55 100644 --- a/app/src/main/java/app/grapheneos/pdfviewer/PdfViewer.java +++ b/app/src/main/java/app/grapheneos/pdfviewer/PdfViewer.java @@ -601,7 +601,7 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader } @Override - public boolean onCreateOptionsMenu(Menu menu) { + public boolean onCreateOptionsMenu(@NonNull Menu menu) { super.onCreateOptionsMenu(menu); MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.pdf_viewer, menu); @@ -609,7 +609,7 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader } @Override - public boolean onPrepareOptionsMenu(Menu menu) { + public boolean onPrepareOptionsMenu(@NonNull Menu menu) { final int[] ids = {R.id.action_jump_to_page, R.id.action_next, R.id.action_previous, R.id.action_first, R.id.action_last, R.id.action_rotate_clockwise, R.id.action_rotate_counterclockwise, R.id.action_view_document_properties,