-
Notifications
You must be signed in to change notification settings - Fork 695
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
docs: Add missing KDocs in all modules except core and dao #1876
Conversation
exposed-crypt/src/main/kotlin/org/jetbrains/exposed/crypt/EncryptedBinaryColumnType.kt
Show resolved
Hide resolved
exposed-crypt/src/main/kotlin/org/jetbrains/exposed/crypt/Encryptor.kt
Outdated
Show resolved
Hide resolved
@@ -81,6 +81,9 @@ internal fun dateTimeWithFractionFormat(fraction: Int): DateTimeFormatter { | |||
@Suppress("MagicNumber") | |||
internal val LocalDate.millis get() = atStartOfDay(ZoneId.systemDefault()).toEpochSecond() * 1000 | |||
|
|||
/** | |||
* Column for storing dates. |
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.
It would be great to refer to the underlying type. There are lots of date types, and it's easy to confuse. Somewhere it also would be great to mention about precision
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.
@e5l To clarify about precision:
Do you mean the milli-/nano- second precision used to store a date/time value internally?
Or the precision of the specific formatters used by Exposed to log the values?
spring-transaction/src/main/kotlin/org/jetbrains/exposed/spring/SpringTransactionManager.kt
Show resolved
Hide resolved
exposed-spring-boot-starter/src/main/kotlin/org/jetbrains/exposed/spring/DatabaseInitializer.kt
Outdated
Show resolved
Hide resolved
Add KDocs to exposed-money
Add KDocs to exposed-crypt
Add KDocs to exposed-jodatime
Add KDocs to exposed-java-time
Add KDocs to exposed-kotlin-datetime
Add KDocs to exposed-spring-boot-starter & spring-transaction
Add KDocs to exposed-jdbc
Add applicable samples where possible. Adjust KDocs on class properties that don't return. Refactor description of spring boot DatabaseInitializer.
a98930c
to
bf60df5
Compare
fun `test encryptedColumnType with a string`() { | ||
fun testEncryptedColumnTypeWithAString() { |
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.
To use the contents of this test as a sample, the name format has to be changed, since KDocs can't reference a function with spaces: KTIJ-21878.
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.
lgtm
All public API elements now show a KDoc when hovered over by a mouse in IDE or when a Quick Documentation shortcut is used (
F1
|Ctrl+Q
).EXCEPT: (this PR is already quite large, so these each will need their own)
exposed-core
exposed-dao
Each commit covers a single module, so changes can be split if preferred.