Report floating point literals exceeding precision
authorDmitry Timofeev <dmitry.timofeev@jetbrains.com>
Tue, 22 Jun 2021 11:02:23 +0000 (14:02 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Tue, 22 Jun 2021 11:06:18 +0000 (11:06 +0000)
commit258c273572d2ecaf5650af01225024a6847ad707
tree6712c7ea19c242c150731d5231abd0a4dd810b04
parentacf9bcdc96ead85e4580738f0cc55d5242041df1
parentbddbbceeb3659e7d8248eccec4b044fb10943084
Report floating point literals exceeding precision

Added a new inspection to detect floating point literals in Kotlin code
that exceed the precision of the corresponding type. A quick-fix
replaces these literals with their rounded values.

^KTIJ-9225 Fixed

GitOrigin-RevId: dca7dfeeb65b81d5851be8bbd005c4579266bd87
plugins/kotlin/idea/resources-en/messages/KotlinBundle.properties
plugins/kotlin/idea/resources/META-INF/inspections.xml
plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/inspections/LocalInspectionTestGenerated.java