aboutsummaryrefslogtreecommitdiffstats
path: root/cgeo-contacts/src/cgeo/contacts
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2015-01-15 18:55:59 +0100
committerBananeweizen <bananeweizen@gmx.de>2015-01-15 18:55:59 +0100
commitfa5afccd5cf1804bd9ae8871af754bd5ca2ca01f (patch)
tree02437dfe64b1909a5d2f084d937ea8e7760b3cd7 /cgeo-contacts/src/cgeo/contacts
parente285004d95c559be50c0cce495de4ee4198a5996 (diff)
downloadcgeo-fa5afccd5cf1804bd9ae8871af754bd5ca2ca01f.zip
cgeo-fa5afccd5cf1804bd9ae8871af754bd5ca2ca01f.tar.gz
cgeo-fa5afccd5cf1804bd9ae8871af754bd5ca2ca01f.tar.bz2
null annotations in apps, contacts, calendar
Diffstat (limited to 'cgeo-contacts/src/cgeo/contacts')
-rw-r--r--cgeo-contacts/src/cgeo/contacts/ContactsActivity.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/cgeo-contacts/src/cgeo/contacts/ContactsActivity.java b/cgeo-contacts/src/cgeo/contacts/ContactsActivity.java
index 7d2f1e1..60accca 100644
--- a/cgeo-contacts/src/cgeo/contacts/ContactsActivity.java
+++ b/cgeo-contacts/src/cgeo/contacts/ContactsActivity.java
@@ -72,7 +72,7 @@ public final class ContactsActivity extends Activity {
}
}
- private void selectContact(final List<Pair<Integer, String>> contacts) {
+ private void selectContact(@NonNull final List<Pair<Integer, String>> contacts) {
final List<String> list = new ArrayList<>();
for (final Pair<Integer, String> p : contacts) {
list.add(p.second);
@@ -100,6 +100,7 @@ public final class ContactsActivity extends Activity {
finish();
}
+ @NonNull
private List<Pair<Integer, String>> getContacts(final @NonNull String searchName, final Uri uri, final @NonNull String idColumnName, final @NonNull String selectionColumnName, final boolean like) {
final String[] projection = new String[] { idColumnName, selectionColumnName };
final String selection = selectionColumnName + (like ? " LIKE" : " =") + " ? COLLATE NOCASE";
@@ -131,7 +132,8 @@ public final class ContactsActivity extends Activity {
toast.show();
}
- private static String getParameter(final Uri uri, final String paramKey) {
+ @NonNull
+ private static String getParameter(@NonNull final Uri uri, @NonNull final String paramKey) {
try {
final String param = uri.getQueryParameter(paramKey);
if (param == null) {