Code cleanup: removed redundant semicolons
This commit is contained in:
@@ -28,7 +28,7 @@ private val MODIFIER_MAP = mapOf(
|
||||
|
||||
internal fun PsiModifierListOwner.hasModifier(modifier: UastModifier): Boolean {
|
||||
if (modifier == UastModifier.JVM_FIELD && this is PsiField) {
|
||||
return true;
|
||||
return true
|
||||
}
|
||||
if (modifier == UastModifier.OVERRIDE && this is PsiAnnotationOwner) {
|
||||
return this.annotations.any { it.qualifiedName == "java.lang.Override" }
|
||||
@@ -40,7 +40,7 @@ internal fun PsiModifierListOwner.hasModifier(modifier: UastModifier): Boolean {
|
||||
return this.hasModifierProperty(PsiModifier.FINAL)
|
||||
}
|
||||
if (modifier == UastModifier.FINAL && this is PsiVariable) {
|
||||
return false;
|
||||
return false
|
||||
}
|
||||
val javaModifier = MODIFIER_MAP[modifier] ?: return false
|
||||
return hasModifierProperty(javaModifier)
|
||||
|
||||
@@ -53,7 +53,7 @@ open class AbstractStructureTest : LightCodeInsightTestCase() {
|
||||
file.writeText(text)
|
||||
throw NoTestFileException(file)
|
||||
} else {
|
||||
val lineSeparator = System.getProperty("line.separator") ?: "\n";
|
||||
val lineSeparator = System.getProperty("line.separator") ?: "\n"
|
||||
val expected = file.readLines().map { it.trimEnd() }.joinToString(lineSeparator).trim()
|
||||
val actual = text.lines().map { it.trimEnd() }.joinToString(lineSeparator).trim()
|
||||
assertEquals(expected, actual)
|
||||
|
||||
Reference in New Issue
Block a user