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
@@ -112,7 +112,7 @@ open class ApiDetector : Detector(), UastScanner {
if (methodSdkLevel != -1 && methodSdkLevel > buildSdk) {
val message = "This method is not overriding anything with the current build " +
"target, but will in API level $methodSdkLevel (current target is $buildSdk): `${node.name}`"
context.report(OVERRIDE, node, context.getLocation(node.nameElement), message);
context.report(OVERRIDE, node, context.getLocation(node.nameElement), message)
}
}
}
@@ -225,17 +225,17 @@ open class ApiDetector : Detector(), UastScanner {
val value = (valueNode as ULiteralExpression).value as String
return SdkVersionInfo.getApiByBuildCode(value, true)
} else if (valueNode is UQualifiedExpression) {
val codename = valueNode.getSelectorAsIdentifier() ?: return -1;
val codename = valueNode.getSelectorAsIdentifier() ?: return -1
return SdkVersionInfo.getApiByBuildCode(codename, true)
} else if (valueNode is USimpleReferenceExpression) {
val codename = valueNode.identifier;
val codename = valueNode.identifier
return SdkVersionInfo.getApiByBuildCode(codename, true)
}
}
}
}
return -1;
return -1
}
fun isCheckedExplicitly(context: UastAndroidContext, requiredVersion: Int, node: UElement): Boolean {