Code cleanup: removed redundant semicolons

This commit is contained in:
Valentin Kipyatkov
2016-04-26 23:30:42 +03:00
parent e1d8c72aa7
commit b551886889
141 changed files with 2520 additions and 239 deletions
@@ -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)