-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reformat the templates for Kotlin model code (#310)
* Reformat the templates for Kotlin model code - Change import statements to not have an indent. No functional change. - Remove unused imports. These were likely copied over from the Java template, but are not needed in Kotlin. - Dynamic methods, which generate a map, now use Kotlin's buildMap() instead of mapOf(). mapOf() produces extra garbage, as it creates a Pair for each entry, whereas buildMap() modifies the underlying map directly. - Static methods are now defined as an expression. No functional change. - In static methods, the template class name is no longer fully qualified, as it's provided as an import. No functional change. - Remove semicolons - idiomatic Kotlin doesn't use them. No functional change. * fixup! Reformat the templates for Kotlin model code * fixup! Reformat the templates for Kotlin model code Add import for Collectors * fixup! Reformat the templates for Kotlin model code Restore the TemplateOutput import * fixup! Reformat the templates for Kotlin model code * fixup! Reformat the templates for Kotlin model code Adjust the tests for windows line endings
- Loading branch information
1 parent
0081c0c
commit 1a09cd6
Showing
6 changed files
with
147 additions
and
41 deletions.
There are no files selected for viewing
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
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
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