-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
5 changed files
with
9 additions
and
12 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
modules/core/arrow-annotations-processor-test/src/main/java/arrow/ap/objects/Optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package arrow.ap.objects | ||
|
||
import arrow.OpticsTarget | ||
import arrow.core.Option | ||
import arrow.optic | ||
import arrow.optics.OpticsTarget | ||
import arrow.optics.optics | ||
|
||
@optic([(OpticsTarget.OPTIONAL)]) | ||
@optics([(OpticsTarget.OPTIONAL)]) | ||
data class Optional(val field: String, val nullable: String?, val option: Option<String>) |
6 changes: 3 additions & 3 deletions
6
...es/core/arrow-annotations-processor-test/src/main/java/arrow/ap/objects/OptionalSealed.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package arrow.ap.objects | ||
|
||
import arrow.OpticsTarget | ||
import arrow.core.Option | ||
import arrow.optic | ||
import arrow.optics.OpticsTarget | ||
import arrow.optics.optics | ||
|
||
@optic([OpticsTarget.OPTIONAL]) | ||
@optics([OpticsTarget.OPTIONAL]) | ||
sealed class OptionalSealed(val field: String, val nullable: String?, val option: Option<String>) { | ||
data class Optional2(val a: String?) : OptionalSealed("", null, Option.empty()) | ||
} |
4 changes: 1 addition & 3 deletions
4
modules/core/arrow-annotations-processor/src/main/java/arrow/optics/AnnotationInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
package arrow.optics | ||
|
||
import arrow.optic | ||
|
||
val opticsAnnotationKClass = optic::class | ||
val opticsAnnotationKClass = optics::class | ||
val opticsAnnotationClass = opticsAnnotationKClass.java | ||
val opticsAnnotationName = "@" + opticsAnnotationKClass.simpleName |
1 change: 0 additions & 1 deletion
1
modules/core/arrow-annotations-processor/src/main/java/arrow/optics/OpticsProcessor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters