@@ -39,9 +39,13 @@ abstract class FirMustUseReturnValueStatusComponent : FirSessionComponent {
39
39
javaPackageAnnotations : List <ClassId >? = null,
40
40
): Boolean
41
41
42
+ // FIXME (KTI-2545): One can't simply write errorprone package name, because whole com.google. package is relocated in kotlin-compiler-embeddable.
43
+ // For the time being, string literal should be split.
44
+ internal val errorPronePackageFqName: FqName = FqName .fromSegments(listOf (" com" , " google" , " errorprone" , " annotations" ))
45
+
42
46
private val ignorableReturnValueLikeAnnotations: Set <ClassId > = setOf (
43
47
StandardClassIds .Annotations .IgnorableReturnValue ,
44
- ClassId (FqName ( " com.google.errorprone.annotations " ) , Name .identifier(" CanIgnoreReturnValue" )),
48
+ ClassId (errorPronePackageFqName , Name .identifier(" CanIgnoreReturnValue" )),
45
49
// Apparently, org.jetbrains.annotations and org.springframework.lang do not have CanIgnoreReturnValue because they have slightly different design
46
50
)
47
51
@@ -79,7 +83,7 @@ abstract class FirMustUseReturnValueStatusComponent : FirSessionComponent {
79
83
private class Default : FirMustUseReturnValueStatusComponent () {
80
84
private val mustUseReturnValueLikeAnnotations: Set <ClassId > = setOf (
81
85
StandardClassIds .Annotations .MustUseReturnValue ,
82
- ClassId (FqName ( " com.google.errorprone.annotations " ) , Name .identifier(" CheckReturnValue" )),
86
+ ClassId (errorPronePackageFqName , Name .identifier(" CheckReturnValue" )),
83
87
ClassId (FqName (" org.jetbrains.annotations" ), Name .identifier(" CheckReturnValue" )),
84
88
ClassId (FqName (" org.springframework.lang" ), Name .identifier(" CheckReturnValue" )),
85
89
)
0 commit comments