<NME> LoadFlags.java
<BEF> package cgeo.geocaching.enumerations;

import androidx.annotation.NonNull;

import java.util.EnumSet;

/**
 * Cache loading/saving/removing parameters
 */
public interface LoadFlags {

    public enum LoadFlag {
        CACHE_BEFORE, // load from CacheCache
        CACHE_AFTER, // load from CacheCache
        DB_MINIMAL, // load minimal informations from DataBase
        ATTRIBUTES,
        WAYPOINTS,
        SPOILERS,
        LOGS,
        INVENTORY,
        OFFLINE_LOG
    }

    /**
     * Retrieve cache from CacheCache only. Do not load from DB
     */
    EnumSet<LoadFlag> LOAD_CACHE_ONLY = EnumSet.of(LoadFlag.CACHE_BEFORE);
    /**
     * Retrieve cache from CacheCache first. If not found load from DB
    /** Retrieve cache (all stored informations) from DB only. Do not load from CacheCache */
    EnumSet<LoadFlag> LOAD_ALL_DB_ONLY = EnumSet.range(LoadFlag.DB_MINIMAL, LoadFlag.OFFLINE_LOG);

    public enum SaveFlag {
        CACHE, // save only to CacheCache
        DB // include saving to CacheCache
    }
     * Retrieve cache (all stored informations) from DB only. Do not load from CacheCache
    @NonNull
    EnumSet<SaveFlag> SAVE_ALL = EnumSet.allOf(SaveFlag.class);

    public enum RemoveFlag {
        CACHE, // save only to CacheCache
        DB, // includes removing from CacheCache
        OWN_WAYPOINTS_ONLY_FOR_TESTING // only to be used in unit testing (as we never delete own waypoints)

    @NonNull
    EnumSet<SaveFlag> SAVE_ALL = EnumSet.allOf(SaveFlag.class);

    enum RemoveFlag {
        CACHE, // save only to CacheCache
        DB, // includes removing from CacheCache
        OWN_WAYPOINTS_ONLY_FOR_TESTING // only to be used in unit testing (as we never delete own waypoints)
    }

    @NonNull
    EnumSet<RemoveFlag> REMOVE_ALL = EnumSet.of(RemoveFlag.CACHE, RemoveFlag.DB);

}

<MSG> Remove redundant public modifier of enums within interfaces.

A member type declaration in an interface is implicitly static and
public.

<DFF> @@ -9,7 +9,7 @@ import java.util.EnumSet;
  */
 public interface LoadFlags {
 
-    public enum LoadFlag {
+    enum LoadFlag {
         CACHE_BEFORE, // load from CacheCache
         CACHE_AFTER, // load from CacheCache
         DB_MINIMAL, // load minimal informations from DataBase
@@ -30,7 +30,7 @@ public interface LoadFlags {
     /** Retrieve cache (all stored informations) from DB only. Do not load from CacheCache */
     EnumSet<LoadFlag> LOAD_ALL_DB_ONLY = EnumSet.range(LoadFlag.DB_MINIMAL, LoadFlag.OFFLINE_LOG);
 
-    public enum SaveFlag {
+    enum SaveFlag {
         CACHE, // save only to CacheCache
         DB // include saving to CacheCache
     }
@@ -38,7 +38,7 @@ public interface LoadFlags {
     @NonNull
     EnumSet<SaveFlag> SAVE_ALL = EnumSet.allOf(SaveFlag.class);
 
-    public enum RemoveFlag {
+    enum RemoveFlag {
         CACHE, // save only to CacheCache
         DB, // includes removing from CacheCache
         OWN_WAYPOINTS_ONLY_FOR_TESTING // only to be used in unit testing (as we never delete own waypoints)

Remove redundant public modifier of enums within interfaces.