<NME> ClipboardUtils.java
<BEF> package cgeo.geocaching.utils;

import cgeo.geocaching.CgeoApplication;

import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/**
 * Clipboard Utilities. Functions to copy data to the Android clipboard.

    /**
     * Places the text passed in onto the clipboard as text
     * 
     * @param text
     *            The text to place in the clipboard.
     */
    public static void copyToClipboardAsPlainText(final CharSequence text) {
        final ClipboardManager clipboard = (ClipboardManager) cgeoapplication.getInstance().getSystemService(Context.CLIPBOARD_SERVICE);
        clipboard.setText(text);
    }
     */
    public static void copyToClipboard(@NonNull final CharSequence text) {
        final ClipboardManager clipboard = (ClipboardManager) CgeoApplication.getInstance().getSystemService(Context.CLIPBOARD_SERVICE);
        if (clipboard != null) {
            final ClipData data = ClipData.newPlainText(null, text);
            clipboard.setPrimaryClip(data);
        }
    }

    /**
     * get clipboard content
     */
    @Nullable
    public static String getText() {
        final ClipboardManager clipboard = (ClipboardManager) CgeoApplication.getInstance().getSystemService(Context.CLIPBOARD_SERVICE);
        final ClipData clip = clipboard.getPrimaryClip();
        if (clip != null && clip.getItemCount() > 0) {
            final CharSequence text = clip.getItemAt(0).getText();
            return text != null ? text.toString() : null;
        }
        return null;
    }

    /**
     * clear clipboard content
     * (up to API level 28: replace with empty string)
     */
    public static void clearClipboard() {
        if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.P) {
            ((ClipboardManager) CgeoApplication.getInstance().getSystemService(Context.CLIPBOARD_SERVICE)).clearPrimaryClip();
        } else {
            copyToClipboard("");
        }
    }
}

<MSG> Change clipboard function name to match what it does
<DFF> @@ -14,11 +14,11 @@ public final class ClipboardUtils {
 
     /**
      * Places the text passed in onto the clipboard as text
-     * 
+     *
      * @param text
      *            The text to place in the clipboard.
      */
-    public static void copyToClipboardAsPlainText(final CharSequence text) {
+    public static void copyToClipboard(final CharSequence text) {
         final ClipboardManager clipboard = (ClipboardManager) cgeoapplication.getInstance().getSystemService(Context.CLIPBOARD_SERVICE);
         clipboard.setText(text);
     }

Change clipboard function name to match what it does