Skip to content

Commit

Permalink
chore: lint project
Browse files Browse the repository at this point in the history
  • Loading branch information
Idane committed Jul 14, 2022
1 parent 6f729b5 commit 8fdc51d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data class AdvancedEntity(
@MappedField(target = ReducedAdvancedEntityDisplay::class, mapFrom = "childName", mapTo = "firstChildName") // This field will be mapped to the "firstChildName" field in the specified target class
val firstChild: AdvancedChildEntity,

@MappedField(mapFrom = "childName", mapTo = "secondChildName") // This field will be mapped to the "secondChildName" field in the default target class
// This field will not be mapped to ReducdedAdvancedEntityDisplay because it is missing the @MappedField annotation with the corresponding target class
@MappedField(mapFrom = "childName", mapTo = "secondChildName") // This field will be mapped to the "secondChildName" field in the default target class
val secondChild: AdvancedChildEntity
)
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fun main() {
val advancedEntity = AdvancedEntity(
name = "Test",
firstChild = AdvancedChildEntity("First Child"),
secondChild = AdvancedChildEntity("Second Child"),
secondChild = AdvancedChildEntity("Second Child")
)
// Map the AdvancedEntity to a AdvancedEntityDisplay using ShapeShift
val advancedEntityDisplay = shapeShift.map<AdvancedEntityDisplay>(advancedEntity)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ data class SimpleEntity(
val creationDate: Date, // This field will be mapped to the creationDate field of the target class, and use the DateToLongTransformer implicitly

@MappedField(transformer = StringToCommaSeparatedStringListTransformer::class, mapTo = "stringList")
val commaDelimitedString: String, // This field will be mapped to the stringList field of the target class, and use the StringToCommaSeparatedStringListTransformer as it is explicitly specified
val commaDelimitedString: String // This field will be mapped to the stringList field of the target class, and use the StringToCommaSeparatedStringListTransformer as it is explicitly specified
)
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

rootProject.name = "shapeshift-parent"
include(":shapeshift")
include(":spring-boot-starter-shapeshift")
include(":spring-boot-starter-shapeshift")
2 changes: 1 addition & 1 deletion shapeshift/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ plugins {
id("dev.krud.shapeshift.common-conventions")
}

description = "shapeshift"
description = "shapeshift"

0 comments on commit 8fdc51d

Please sign in to comment.