File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
annotation/src/main/kotlin/com/tobrun/datacompat/annotation
example/src/main/kotlin/com/tobrun/data/compat/example
processor/src/test/kotlin/com/tobrun/datacompat Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ annotation class SampleAnnotation
57
57
* @property nickname The nickname.
58
58
* @property age The age.
59
59
*/
60
- @DataCompat(imports = [" java.util.Date" ])
60
+ @DataCompat(importsForDefaults = [" java.util.Date" ])
61
61
@SampleAnnotation
62
62
private data class PersonData (
63
63
@Default(" \" John\" + Date(1580897313933L).toString()" )
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ package com.tobrun.datacompat.annotation
4
4
* Annotation class of DataCompat.
5
5
* Classes annotated with this annotation are required to be Kotlin data classes with private visibility.
6
6
*
7
- * @param imports if any constructor values require additional imports, they should be passed here.
7
+ * @param importsForDefaults if any default values require additional imports, they should be passed here.
8
8
* E.g. `["android.graphics.Color"]`
9
9
*/
10
10
@Retention(AnnotationRetention .RUNTIME )
11
11
@Target(AnnotationTarget .CLASS )
12
- annotation class DataCompat (val imports : Array <String > = [])
12
+ annotation class DataCompat (val importsForDefaults : Array <String > = [])
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ annotation class SampleAnnotation
12
12
* @property nickname The nickname.
13
13
* @property age The age.
14
14
*/
15
- @DataCompat(imports = [" java.util.Date" ])
15
+ @DataCompat(importsForDefaults = [" java.util.Date" ])
16
16
@SampleAnnotation
17
17
private data class PersonData (
18
18
@Default(" \" John\" + Date(1580897313933L).toString()" )
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ interface EmptyInterface2
26
26
* @property veryLongAndVeryDetailedDescription The very long and very detailed description.
27
27
*/
28
28
@Deprecated
29
- @DataCompat(imports = ["java.util.Date"])
29
+ @DataCompat(importsForDefaults = ["java.util.Date"])
30
30
private data class PersonData(
31
31
@Default("\"John\"")
32
32
val name: String,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ package com.tobrun.datacompat.annotation
9
9
10
10
@Retention(AnnotationRetention.RUNTIME)
11
11
@Target(AnnotationTarget.CLASS)
12
- annotation class DataCompat(val imports : Array<String> = [])
12
+ annotation class DataCompat(val importsForDefaults : Array<String> = [])
13
13
14
14
@Retention(AnnotationRetention.RUNTIME)
15
15
@Target(AnnotationTarget.VALUE_PARAMETER)
You can’t perform that action at this time.
0 commit comments