mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-29 13:17:43 +00:00
Add NonNull annotations
This commit is contained in:
parent
f735520aba
commit
21b97d335c
@ -46,6 +46,7 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.RequiresApi;
|
import androidx.annotation.RequiresApi;
|
||||||
import androidx.collection.LongSparseArray;
|
import androidx.collection.LongSparseArray;
|
||||||
|
|
||||||
@ -394,6 +395,7 @@ public class ContactsHelper {
|
|||||||
.append("\n");
|
.append("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return vcardBody.toString() + VCARD_END;
|
return vcardBody.toString() + VCARD_END;
|
||||||
}
|
}
|
||||||
@ -415,9 +417,14 @@ public class ContactsHelper {
|
|||||||
static final String COLUMN = ContactsContract.Contacts.LOOKUP_KEY;
|
static final String COLUMN = ContactsContract.Contacts.LOOKUP_KEY;
|
||||||
|
|
||||||
public uID(String lookupKey) {
|
public uID(String lookupKey) {
|
||||||
|
|
||||||
|
if (lookupKey == null)
|
||||||
|
throw new IllegalArgumentException("lookUpKey should not be null");
|
||||||
|
|
||||||
contactLookupKey = lookupKey;
|
contactLookupKey = lookupKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return this.contactLookupKey;
|
return this.contactLookupKey;
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@ package org.kde.kdeconnect.Plugins.SftpPlugin;
|
|||||||
|
|
||||||
import org.apache.sshd.common.file.SshFile;
|
import org.apache.sshd.common.file.SshFile;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user