Use default method

This commit is contained in:
Nullptr 2023-07-22 19:20:36 +08:00
parent b0f7fdca6d
commit 8842af1b79
No known key found for this signature in database
2 changed files with 4 additions and 18 deletions

View File

@ -18,20 +18,4 @@ public abstract class XposedModule extends XposedContextWrapper implements Xpose
public XposedModule(@NonNull XposedContext base, @NonNull ModuleLoadedParam param) {
super(base);
}
/**
* {@inheritDoc}
*/
@Override
public void onPackageLoaded(@NonNull PackageLoadedParam param) {
}
/**
* {@inheritDoc}
*/
@Override
public void onSystemServerLoaded(@NonNull SystemServerLoadedParam param) {
}
}

View File

@ -95,12 +95,14 @@ public interface XposedModuleInterface {
*
* @param param Information about the package being loaded
*/
void onPackageLoaded(@NonNull PackageLoadedParam param);
default void onPackageLoaded(@NonNull PackageLoadedParam param) {
}
/**
* Gets notified when the system server is loaded.
*
* @param param Information about system server
*/
void onSystemServerLoaded(@NonNull SystemServerLoadedParam param);
default void onSystemServerLoaded(@NonNull SystemServerLoadedParam param) {
}
}