mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Use new annotations in mutability tests instead of old ones
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// JVM_ANNOTATIONS
|
||||
package test;
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
import kotlin.annotations.jvm.*;
|
||||
|
||||
public interface LoadIterable<T> {
|
||||
public @Mutable Iterable<T> getIterable();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
public interface LoadIterable</*0*/ T : kotlin.Any!> {
|
||||
@org.jetbrains.annotations.Mutable public abstract fun getIterable(): kotlin.collections.MutableIterable<T!>!
|
||||
@org.jetbrains.annotations.ReadOnly public abstract fun getReadOnlyIterable(): kotlin.collections.Iterable<T!>!
|
||||
public abstract fun setIterable(/*0*/ @org.jetbrains.annotations.Mutable p0: kotlin.collections.MutableIterable<T!>!): kotlin.Unit
|
||||
public abstract fun setReadOnlyIterable(/*0*/ @org.jetbrains.annotations.ReadOnly p0: kotlin.collections.Iterable<T!>!): kotlin.Unit
|
||||
@kotlin.annotations.jvm.Mutable public abstract fun getIterable(): kotlin.collections.MutableIterable<T!>!
|
||||
@kotlin.annotations.jvm.ReadOnly public abstract fun getReadOnlyIterable(): kotlin.collections.Iterable<T!>!
|
||||
public abstract fun setIterable(/*0*/ @kotlin.annotations.jvm.Mutable p0: kotlin.collections.MutableIterable<T!>!): kotlin.Unit
|
||||
public abstract fun setReadOnlyIterable(/*0*/ @kotlin.annotations.jvm.ReadOnly p0: kotlin.collections.Iterable<T!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// JVM_ANNOTATIONS
|
||||
package test;
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
import kotlin.annotations.jvm.*;
|
||||
|
||||
public interface LoadIterableWithConflict<T> {
|
||||
public @ReadOnly @Mutable Iterable<T> getIterable();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
public interface LoadIterableWithConflict</*0*/ T : kotlin.Any!> {
|
||||
@org.jetbrains.annotations.ReadOnly @org.jetbrains.annotations.Mutable public abstract fun getIterable(): kotlin.collections.(Mutable)Iterable<T!>!
|
||||
public abstract fun setIterable(/*0*/ @org.jetbrains.annotations.ReadOnly @org.jetbrains.annotations.Mutable p0: kotlin.collections.(Mutable)Iterable<T!>!): kotlin.Unit
|
||||
@kotlin.annotations.jvm.ReadOnly @kotlin.annotations.jvm.Mutable public abstract fun getIterable(): kotlin.collections.(Mutable)Iterable<T!>!
|
||||
public abstract fun setIterable(/*0*/ @kotlin.annotations.jvm.ReadOnly @kotlin.annotations.jvm.Mutable p0: kotlin.collections.(Mutable)Iterable<T!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// JVM_ANNOTATIONS
|
||||
package test;
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
import kotlin.annotations.jvm.*;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public interface LoadIterableWithNullability<T> {
|
||||
public @NotNull @Mutable Iterable<T> getIterable();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
public interface LoadIterableWithNullability</*0*/ T : kotlin.Any!> {
|
||||
@org.jetbrains.annotations.NotNull @org.jetbrains.annotations.Mutable public abstract fun getIterable(): kotlin.collections.MutableIterable<T!>
|
||||
@org.jetbrains.annotations.NotNull @org.jetbrains.annotations.ReadOnly public abstract fun getReadOnlyIterable(): kotlin.collections.Iterable<T!>
|
||||
public abstract fun setIterable(/*0*/ @org.jetbrains.annotations.Mutable @org.jetbrains.annotations.NotNull p0: kotlin.collections.MutableIterable<T!>): kotlin.Unit
|
||||
public abstract fun setReadOnlyIterable(/*0*/ @org.jetbrains.annotations.ReadOnly @org.jetbrains.annotations.NotNull p0: kotlin.collections.Iterable<T!>): kotlin.Unit
|
||||
@org.jetbrains.annotations.NotNull @kotlin.annotations.jvm.Mutable public abstract fun getIterable(): kotlin.collections.MutableIterable<T!>
|
||||
@org.jetbrains.annotations.NotNull @kotlin.annotations.jvm.ReadOnly public abstract fun getReadOnlyIterable(): kotlin.collections.Iterable<T!>
|
||||
public abstract fun setIterable(/*0*/ @kotlin.annotations.jvm.Mutable @org.jetbrains.annotations.NotNull p0: kotlin.collections.MutableIterable<T!>): kotlin.Unit
|
||||
public abstract fun setReadOnlyIterable(/*0*/ @kotlin.annotations.jvm.ReadOnly @org.jetbrains.annotations.NotNull p0: kotlin.collections.Iterable<T!>): kotlin.Unit
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// JVM_ANNOTATIONS
|
||||
package test;
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
import kotlin.annotations.jvm.*;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public interface LoadIterableWithPropagation {
|
||||
|
||||
@@ -3,10 +3,10 @@ package test
|
||||
public interface LoadIterableWithPropagation {
|
||||
|
||||
public interface LoadIterable</*0*/ T : kotlin.Any!> {
|
||||
@org.jetbrains.annotations.Mutable public abstract fun getIterable(): kotlin.collections.MutableIterable<T!>!
|
||||
@org.jetbrains.annotations.ReadOnly public abstract fun getReadOnlyIterable(): kotlin.collections.Iterable<T!>!
|
||||
public abstract fun setIterable(/*0*/ @org.jetbrains.annotations.Mutable p0: kotlin.collections.MutableIterable<T!>!): kotlin.Unit
|
||||
public abstract fun setReadOnlyIterable(/*0*/ @org.jetbrains.annotations.ReadOnly p0: kotlin.collections.Iterable<T!>!): kotlin.Unit
|
||||
@kotlin.annotations.jvm.Mutable public abstract fun getIterable(): kotlin.collections.MutableIterable<T!>!
|
||||
@kotlin.annotations.jvm.ReadOnly public abstract fun getReadOnlyIterable(): kotlin.collections.Iterable<T!>!
|
||||
public abstract fun setIterable(/*0*/ @kotlin.annotations.jvm.Mutable p0: kotlin.collections.MutableIterable<T!>!): kotlin.Unit
|
||||
public abstract fun setReadOnlyIterable(/*0*/ @kotlin.annotations.jvm.ReadOnly p0: kotlin.collections.Iterable<T!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
public open class LoadIterableImpl</*0*/ T : kotlin.Any!> : test.LoadIterableWithPropagation.LoadIterable<T!> {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// JVM_ANNOTATIONS
|
||||
package test;
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
import kotlin.annotations.jvm.*;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
||||
@@ -2,5 +2,5 @@ package test
|
||||
|
||||
public interface ReadOnlyExtendsWildcard {
|
||||
public abstract fun bar(): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ @org.jetbrains.annotations.ReadOnly p0: kotlin.collections.List<kotlin.CharSequence!>!, /*1*/ @org.jetbrains.annotations.NotNull p1: kotlin.Comparable<kotlin.String!>): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ @kotlin.annotations.jvm.ReadOnly p0: kotlin.collections.List<kotlin.CharSequence!>!, /*1*/ @org.jetbrains.annotations.NotNull p1: kotlin.Comparable<kotlin.String!>): kotlin.Unit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user