Replace deprecated annotations in whole project

This commit is contained in:
Denis Zharkov
2015-06-09 15:36:42 +03:00
parent c9f79c2d05
commit 200dee2761
55 changed files with 81 additions and 81 deletions
@@ -203,7 +203,7 @@ class LazyOperationsLog(
private fun <T> Any.field(name: String): T {
val field = this.javaClass.getDeclaredField(name)
field.setAccessible(true)
[suppress("UNCHECKED_CAST")]
@suppress("UNCHECKED_CAST")
return field.get(this) as T
}
@@ -121,7 +121,7 @@ public class LoggingStorageManager(
var c = this
while (true) {
result.addAll(c.getDeclaredFields().toList())
[suppress("UNCHECKED_CAST")]
@suppress("UNCHECKED_CAST")
val superClass = (c as Class<Any>).getSuperclass() as Class<Any>?
if (superClass == null) break
if (c == superClass) break
@@ -74,7 +74,7 @@ public abstract class AbstractLocalClassProtoTest : TestCaseWithTmpdir() {
}
private fun assertHasAnnotationData(clazz: Class<*>) {
[suppress("UNCHECKED_CAST")]
@suppress("UNCHECKED_CAST")
val annotation = clazz.getAnnotation(
clazz.getClassLoader().loadClass(JvmAnnotationNames.KOTLIN_CLASS.asString()) as Class<Annotation>
)