Improve wording in some inspections

This commit is contained in:
Mikhail Glukhikh
2017-12-26 18:06:40 +03:00
parent 1534488dd1
commit 429c31c010
52 changed files with 83 additions and 93 deletions
@@ -1,4 +1,4 @@
// FIX: Replace with '/' operator
// FIX: Replace with '/'
fun test() {
class Test {
operator fun div(a: Int): Test = Test()
@@ -1,4 +1,4 @@
// FIX: Replace with '/' operator
// FIX: Replace with '/'
fun test() {
class Test {
operator fun div(a: Int): Test = Test()
@@ -1,3 +1,3 @@
// FIX: Replace with '==' operator
// FIX: Replace with '=='
val x = 2.<caret>equals(2)
@@ -1,3 +1,3 @@
// FIX: Replace with '==' operator
// FIX: Replace with '=='
val x = 2 == 2
@@ -1,3 +1,3 @@
// FIX: Replace with '>' operator
// FIX: Replace with '>'
val x = 3.compare<caret>To(2) > 0
@@ -1,3 +1,3 @@
// FIX: Replace with '>' operator
// FIX: Replace with '>'
val x = 3 > 2
@@ -1,3 +1,3 @@
// FIX: Replace with '<=' operator
// FIX: Replace with '<='
val x = 0 >= 4.compare<caret>To(5)
@@ -1,3 +1,3 @@
// FIX: Replace with '<=' operator
// FIX: Replace with '<='
val x = 4 <= 5
@@ -1,4 +1,4 @@
// FIX: Replace with '-' operator
// FIX: Replace with '-'
fun test() {
class Test {
operator fun minus(a: Int): Test = Test()
@@ -1,4 +1,4 @@
// FIX: Replace with '-' operator
// FIX: Replace with '-'
fun test() {
class Test {
operator fun minus(a: Int): Test = Test()
@@ -1,3 +1,3 @@
// FIX: Replace with '!=' operator
// FIX: Replace with '!='
val x = !2.eq<caret>uals(3)
@@ -1,3 +1,3 @@
// FIX: Replace with '!=' operator
// FIX: Replace with '!='
val x = 2 != 3
@@ -1,3 +1,3 @@
// FIX: Replace with '!=' operator
// FIX: Replace with '!='
val x = !(2.<caret>equals(3))
@@ -1,3 +1,3 @@
// FIX: Replace with '!=' operator
// FIX: Replace with '!='
val x = 2 != 3
@@ -1,3 +1,3 @@
// FIX: Replace with '==' operator
// FIX: Replace with '=='
val x = !(2.equ<caret>als(3) && 4.equals(5))
@@ -1,3 +1,3 @@
// FIX: Replace with '==' operator
// FIX: Replace with '=='
val x = !(2 == 3 && 4.equals(5))
@@ -1,4 +1,4 @@
// FIX: Replace with '+' operator
// FIX: Replace with '+'
fun test() {
class Test {
operator fun plus(a: Int): Test = Test()
@@ -1,4 +1,4 @@
// FIX: Replace with '+' operator
// FIX: Replace with '+'
fun test() {
class Test {
operator fun plus(a: Int): Test = Test()
@@ -1,4 +1,4 @@
// FIX: Replace with '..' operator
// FIX: Replace with '..'
fun test() {
class Test {
operator fun rangeTo(a: Int): Test = Test()
@@ -1,4 +1,4 @@
// FIX: Replace with '..' operator
// FIX: Replace with '..'
fun test() {
class Test {
operator fun rangeTo(a: Int): Test = Test()
@@ -1,4 +1,4 @@
// FIX: Replace with '%' operator
// FIX: Replace with '%'
fun test() {
class Test {
@@ -1,4 +1,4 @@
// FIX: Replace with '%' operator
// FIX: Replace with '%'
fun test() {
class Test {
@@ -1,4 +1,4 @@
// FIX: Replace with '*' operator
// FIX: Replace with '*'
fun test() {
class Test {
operator fun times(a: Int): Test = Test()
@@ -1,4 +1,4 @@
// FIX: Replace with '*' operator
// FIX: Replace with '*'
fun test() {
class Test {
operator fun times(a: Int): Test = Test()