File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
value/src/main/java/com/google/auto/value/extension/memoized/processor Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,11 @@ public final class MemoizeExtension extends AutoValueExtension {
100
100
private static final String AUTO_VALUE_NAME = AUTO_VALUE_PACKAGE_NAME + "AutoValue" ;
101
101
private static final String COPY_ANNOTATIONS_NAME = AUTO_VALUE_NAME + ".CopyAnnotations" ;
102
102
103
+ // Maven is configured to shade (rewrite) com.google packages to prevent dependency conflicts.
104
+ // Split up the package here with a call to concat to prevent Maven from finding and rewriting it,
105
+ // so that this will be able to find the LazyInit annotation if it's on the classpath.
103
106
private static final ClassName LAZY_INIT =
104
- ClassName .get ("com. google.errorprone.annotations.concurrent" , "LazyInit" );
107
+ ClassName .get ("com" . concat ( ". google.errorprone.annotations.concurrent") , "LazyInit" );
105
108
106
109
private static final AnnotationSpec SUPPRESS_WARNINGS =
107
110
AnnotationSpec .builder (SuppressWarnings .class ).addMember ("value" , "$S" , "Immutable" ).build ();
You can’t perform that action at this time.
0 commit comments