Replace deprecated annotations in whole project
This commit is contained in:
@@ -49,12 +49,12 @@ fun generate(): String {
|
||||
val binaryOperationsMap = arrayListOf<Pair<String, List<JetType>>>()
|
||||
|
||||
val builtIns = KotlinBuiltIns.getInstance()
|
||||
[suppress("UNCHECKED_CAST")]
|
||||
@suppress("UNCHECKED_CAST")
|
||||
val allPrimitiveTypes = builtIns.getBuiltInsPackageScope().getDescriptors()
|
||||
.filter { it is ClassDescriptor && KotlinBuiltIns.isPrimitiveType(it.getDefaultType()) } as List<ClassDescriptor>
|
||||
|
||||
for (descriptor in allPrimitiveTypes + builtIns.getString()) {
|
||||
[suppress("UNCHECKED_CAST")]
|
||||
@suppress("UNCHECKED_CAST")
|
||||
val functions = descriptor.getMemberScope(listOf()).getDescriptors()
|
||||
.filter { it is FunctionDescriptor && !EXCLUDED_FUNCTIONS.contains(it.getName().asString()) } as List<FunctionDescriptor>
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import java.lang.reflect.Modifier
|
||||
|
||||
public class ProtoBufConsistencyTest : TestCase() {
|
||||
public fun testExtensionNumbersDoNotIntersect() {
|
||||
[data] class Key(val messageType: Class<*>, val index: Int)
|
||||
@data class Key(val messageType: Class<*>, val index: Int)
|
||||
|
||||
val extensions = LinkedHashMultimap.create<Key, Descriptors.FieldDescriptor>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user