diff options
author | Ang Li <ihcinihsdk@google.com> | 2024-04-18 02:36:52 +0000 |
---|---|---|
committer | Ang Li <ihcinihsdk@google.com> | 2024-04-18 02:37:13 +0000 |
commit | 4774468762423e04ef3bb56a477205cc9c192307 (patch) | |
tree | 96e08ecd5ae77ac50b2bf021e7a1801c939267d6 /sandbox | |
parent | b3b17db94476c25225589165fbf53ec938f5b6dc (diff) | |
parent | 1920a4cbbf574f775bd360b901b3e4102b7ad8b4 (diff) | |
download | robolectric-4774468762423e04ef3bb56a477205cc9c192307.tar.gz |
Merge branch 'upstream-google' into attempt_merge_upstream
Change-Id: Ic6cfe2bf398c32bb4ce8750dbec7f95bd2645f44
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java b/sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java index a9b532a26..9d3d51af9 100644 --- a/sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java +++ b/sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java @@ -177,8 +177,11 @@ public class ClassInstrumentor { .visitAnnotation("Lcom/google/errorprone/annotations/DoNotMock;", true) .visit( "value", - "This class is final. Consider using the real thing, or " - + "adding/enhancing a Robolectric shadow for it."); + "This class is final. Consider either:\n" + + "1. Using the real class.\n" + + "2. If it's a pure data class, adding a Robolectric Builder for it.\n" + + "3. If it cannot function on the JVM, adding or enhancing a Robolectric" + + " Shadow for it"); } mutableClass.classNode.access = mutableClass.classNode.access & ~Opcodes.ACC_FINAL; |