getRemotePreferences is NonNull

This commit is contained in:
Nullptr 2023-08-15 22:02:36 +08:00
parent 97701a9299
commit c0ad35ada5
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View File

@ -451,10 +451,10 @@ public interface XposedInterface {
* Gets remote preferences stored in Xposed framework. Note that those are read-only in hooked apps.
*
* @param group Group name
* @return The preferences, null if the group does not exists
* @return The preferences
* @throws UnsupportedOperationException If the framework is embedded
*/
@Nullable
@NonNull
SharedPreferences getRemotePreferences(@NonNull String group);
/**
@ -471,7 +471,7 @@ public interface XposedInterface {
*
* @param name File name, must not contain path separators and . or ..
* @return The file descriptor
* @throws FileNotFoundException If the file does not exist or the path is forbidden
* @throws FileNotFoundException If the file does not exist or the path is forbidden
* @throws UnsupportedOperationException If the framework is embedded
*/
@NonNull

View File

@ -123,6 +123,7 @@ public class XposedInterfaceWrapper implements XposedInterface {
return mBase.parseDex(dexData, includeAnnotations);
}
@NonNull
@Override
public SharedPreferences getRemotePreferences(@NonNull String name) {
return mBase.getRemotePreferences(name);