Share via

Binding library warning `The method was removed because its name contains a dollar sign`

דרור שביט 0 Reputation points
2023-08-08T10:04:38.4666667+00:00
I'm creating a binding library of a 3rd party sdk.

java-resolution-report.log file contains the following lines:

The method '[Method] android.os.Handler access$getHandlerOverride$cp()' was removed because its name contains a dollar sign.
The method '[Method] java.util.concurrent.atomic.AtomicInteger access$getTHREAD_COUNT$cp()' was removed because its name contains a dollar sign.
The method '[Method] void access$setHandlerOverride$cp(android.os.Handler <set-?>)' was removed because its name contains a dollar sign.
The method '[Method] java.util.regex.Pattern access$getDELIMITERS$cp()' was removed because its name contains a dollar sign.
The method '[Method] java.util.regex.Pattern access$getFORMAT$cp()' was removed because its name contains a dollar sign.
The method '[Method] int access$boolToInt(boolean value)' was removed because its name contains a dollar sign.
The method '[Method] boolean access$intToBool(int value)' was removed because its name contains a dollar sign.
The method '[Method] java.util.regex.Pattern access$getPATTERN$cp()' was removed because its name contains a dollar sign.
The method '[Method] x.x.Version copy$default(x.x.Version p0, int p1, int p2, java.lang.Integer p3, int p4, java.lang.Object p5)' was removed because its name contains a dollar sign.
The method '[Method] javax.crypto.Cipher access$getCipher$p(x.x.EncryptionHelper.Companion $this)' was removed because its name contains a dollar sign.
The method '[Method] java.security.KeyStore access$getLoadedKeyStore$p(x.x.EncryptionHelper.Companion $this)' was removed because its name contains a dollar sign.
The method '[Method] byte[] access$generateRandomBytes(int length)' was removed because its name contains a dollar sign.
The method '[Method] javax.crypto.Cipher access$getRsaCipher$p()' was removed because its name contains a dollar sign.
The method '[Method] byte[] access$copyOf(byte[] data)' was removed because its name contains a dollar sign.
The method '[Method] x.x.EncryptionHelper access$createEncryptionHelper(android.content.Context context)' was removed because its name contains a dollar sign.
The method '[Method] byte[] access$base64StringToBytes(java.lang.String base64String)' was removed because its name contains a dollar sign.
The method '[Method] java.lang.String access$bytesToBase64String(byte[] bytes)' was removed because its name contains a dollar sign.
these methods seem to be auto-generated as they are written in Kotlin.

For example access$getLoadedKeyStore$p is an access getter for the property loadedKeyStore:

public companion object {
    private final val cipher: javax.crypto.Cipher /* compiled code */

    private final val loadedKeyStore: java.security.KeyStore /* compiled code */
}
Xamarin.Kotlin.StdLib is installed.

How can I rename these methods if they are auto-generated?
Developer technologies | .NET | Xamarin

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.