Disregard annotation params for stale dataclass detection
Annotation processor seens annotation args with constants already inlined, making it challenging to compare to the souce-generated metadata that contains initial expressions. For now just ignoring args for all non-DataClass annotations to prevent false positives Test: . frameworks/base/tests/Codegen/runTest.sh Exempt-From-Owner-Approval: changing metadata on multiple files Change-Id: I640816ae0f20f36b1b828bc2161f53788c4a4dae
This commit is contained in:
@@ -36,7 +36,7 @@ public class SampleWithNestedDataClasses {
|
||||
|
||||
|
||||
|
||||
// Code below generated by codegen v1.0.19.
|
||||
// Code below generated by codegen v1.0.20.
|
||||
//
|
||||
// DO NOT MODIFY!
|
||||
// CHECKSTYLE:OFF Generated code
|
||||
@@ -135,8 +135,8 @@ public class SampleWithNestedDataClasses {
|
||||
};
|
||||
|
||||
@DataClass.Generated(
|
||||
time = 1604435623368L,
|
||||
codegenVersion = "1.0.19",
|
||||
time = 1604522377998L,
|
||||
codegenVersion = "1.0.20",
|
||||
sourceFile = "frameworks/base/tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java",
|
||||
inputSignatures = " @android.annotation.NonNull java.lang.String mBar\nclass NestedDataClass extends java.lang.Object implements [android.os.Parcelable]\n@com.android.internal.util.DataClass(genEqualsHashCode=true)")
|
||||
@Deprecated
|
||||
@@ -160,7 +160,7 @@ public class SampleWithNestedDataClasses {
|
||||
|
||||
|
||||
|
||||
// Code below generated by codegen v1.0.19.
|
||||
// Code below generated by codegen v1.0.20.
|
||||
//
|
||||
// DO NOT MODIFY!
|
||||
// CHECKSTYLE:OFF Generated code
|
||||
@@ -259,8 +259,8 @@ public class SampleWithNestedDataClasses {
|
||||
};
|
||||
|
||||
@DataClass.Generated(
|
||||
time = 1604435623377L,
|
||||
codegenVersion = "1.0.19",
|
||||
time = 1604522378007L,
|
||||
codegenVersion = "1.0.20",
|
||||
sourceFile = "frameworks/base/tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java",
|
||||
inputSignatures = " @android.annotation.NonNull long mBaz2\nclass NestedDataClass3 extends java.lang.Object implements [android.os.Parcelable]\n@com.android.internal.util.DataClass(genEqualsHashCode=true)")
|
||||
@Deprecated
|
||||
@@ -274,7 +274,7 @@ public class SampleWithNestedDataClasses {
|
||||
|
||||
|
||||
|
||||
// Code below generated by codegen v1.0.19.
|
||||
// Code below generated by codegen v1.0.20.
|
||||
//
|
||||
// DO NOT MODIFY!
|
||||
// CHECKSTYLE:OFF Generated code
|
||||
@@ -373,8 +373,8 @@ public class SampleWithNestedDataClasses {
|
||||
};
|
||||
|
||||
@DataClass.Generated(
|
||||
time = 1604435623381L,
|
||||
codegenVersion = "1.0.19",
|
||||
time = 1604522378015L,
|
||||
codegenVersion = "1.0.20",
|
||||
sourceFile = "frameworks/base/tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java",
|
||||
inputSignatures = " @android.annotation.NonNull java.lang.String mBaz\nclass NestedDataClass2 extends java.lang.Object implements [android.os.Parcelable]\n@com.android.internal.util.DataClass(genEqualsHashCode=true)")
|
||||
@Deprecated
|
||||
|
||||
Reference in New Issue
Block a user