-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Add Kotlin alternatives to Java samples #29499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 27 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
2ce6cc1
feat: add Kt alternatives for Java samples from 4.4 to 6.8
p7nov 83ad898
fix: snippet markup in spring-application.adoc
p7nov b59667c
feat: add Kt alternatives for Java samples in 7.2
p7nov 4aa23b5
fix: kotlin highlight in code samples
p7nov d0b274a
feat: add Kt alternatives to Java sample in 7.4
p7nov 8afe106
feat: add Kt alternatives to Java samples in 7.8
p7nov c7d8324
fix: remove internal and @Throws in kt examples in 7.8
p7nov 38491e2
feat: add Kt alternatives to java samples in 7.9
p7nov 364377d
feat: add Kt alternatives to java samples in 8.1
p7nov 728e590
feat: add Kt alternatives to java samples in 8.2 - 8.4
p7nov 0ff0638
feat: add Kt alternatives to java samples in 9.1
p7nov d02dcba
feat: add Kt alternatives to java samples in 9.2
p7nov 98d4770
feat: add Kt alternatives to java samples in 10.1
p7nov 5714c18
feat: add Kt alternatives to java samples in 10.2 and 10.3
p7nov 43a0498
feat: add Kt alternatives to java samples in 10.4
p7nov 67525ad
feat: add Kt alternatives to java samples in 11.1
p7nov 9bd3abc
feat: add Kt alternatives to java samples in 11.3
p7nov 0cecda0
feat: add Kt alternatives to java samples in 11.5
p7nov ef2378f
feat: add Kt alternatives to java samples in 11.6 - 11.8
p7nov e39b383
feat: add Kt alternatives to java samples in 13.2
p7nov 51917c9
feat: add Kt alternatives to java samples in 13.6
p7nov b668095
feat: add Kt alternatives to java samples in 13.10 - 17.6
p7nov 09af420
feat: add Kt alternatives to java samples from 17.8 to the end
p7nov 494c34c
fix: failing Kotlin samples
p7nov 7e13360
fix: failing Kotlin samples
p7nov d330741
update: Kotlin lang and API version to 1.6
p7nov 99209cd
fix: warnings & file names
p7nov 34c1eac
fix: lateinit instead of @MockBean
p7nov 7157f4a
chore: set warnings as errors to false in spring-boot-docs
p7nov 1dae6b9
fix: add lost @MockBean
p7nov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took the liberty to switch this to
falsebecause there are warnings that are meaningless in sample code (such asparameter is never usedin functions with empty bodies) and they break the build.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should do this specifically for the docs project, leaving warnings as errors by convention.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returned this setting to
true; set tofalseinbuild.gradleof spring-boot-docs.