Fix inspection Integer.toString() -> int.toString() reports
This commit is contained in:
@@ -110,7 +110,7 @@ abstract class AbstractLineNumberTest : CodegenTestCase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun visitLineNumber(line: Int, start: Label) {
|
override fun visitLineNumber(line: Int, start: Label) {
|
||||||
labels2LineNumbers[start] = Integer.toString(line)
|
labels2LineNumbers[start] = line.toString()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -147,7 +147,7 @@ abstract class AbstractLineNumberTest : CodegenTestCase() {
|
|||||||
for (i in lines.indices) {
|
for (i in lines.indices) {
|
||||||
val matcher = TEST_LINE_NUMBER_PATTERN.matcher(lines[i])
|
val matcher = TEST_LINE_NUMBER_PATTERN.matcher(lines[i])
|
||||||
if (matcher.matches()) {
|
if (matcher.matches()) {
|
||||||
lineNumbers.add(Integer.toString(i + 1))
|
lineNumbers.add((i + 1).toString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -54,13 +54,13 @@ abstract class AbstractIrLineNumberTest : AbstractLineNumberTest() {
|
|||||||
|
|
||||||
override fun visitLabel(label: Label) {
|
override fun visitLabel(label: Label) {
|
||||||
if (lastLabel != null && !labels2LineNumbers.containsKey(lastLabel) && lastLine >= 0) {
|
if (lastLabel != null && !labels2LineNumbers.containsKey(lastLabel) && lastLine >= 0) {
|
||||||
labels2LineNumbers[lastLabel!!] = Integer.toString(lastLine) // Inherited line number
|
labels2LineNumbers[lastLabel!!] = lastLine.toString() // Inherited line number
|
||||||
}
|
}
|
||||||
lastLabel = label
|
lastLabel = label
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun visitLineNumber(line: Int, start: Label) {
|
override fun visitLineNumber(line: Int, start: Label) {
|
||||||
labels2LineNumbers[start] = Integer.toString(line)
|
labels2LineNumbers[start] = line.toString()
|
||||||
lastLine = line
|
lastLine = line
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -340,7 +340,7 @@ class NameSuggestion {
|
|||||||
|
|
||||||
private fun mangledId(forCalculateId: String): String {
|
private fun mangledId(forCalculateId: String): String {
|
||||||
val absHashCode = Math.abs(forCalculateId.hashCode())
|
val absHashCode = Math.abs(forCalculateId.hashCode())
|
||||||
return if (absHashCode != 0) Integer.toString(absHashCode, Character.MAX_RADIX) else ""
|
return if (absHashCode != 0) absHashCode.toString(Character.MAX_RADIX) else ""
|
||||||
}
|
}
|
||||||
|
|
||||||
private val DeclarationDescriptorWithVisibility.ownEffectiveVisibility
|
private val DeclarationDescriptorWithVisibility.ownEffectiveVisibility
|
||||||
|
|||||||
Reference in New Issue
Block a user