Parcelable: Add CREATOR field (and other generated declarations) in light classes (KT-19300, KT-19853)

This commit is contained in:
Yan Zhulanow
2017-12-16 01:45:54 +09:00
parent 90dff281ba
commit 145ddf3b1f
29 changed files with 129 additions and 66 deletions
@@ -95,11 +95,6 @@ public class ParcelDetector extends Detector implements Detector.UastScanner {
return;
}
// Do not report errors on our Android Extensions-improved Parcelables
if (declaration.findAnnotation(Parcelize.class.getName()) != null) {
return;
}
PsiField field = declaration.findFieldByName("CREATOR", false);
if (field == null) {
Location location = context.getUastNameLocation(declaration);