mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-24 00:21:34 +00:00
Basically, this commit splits test data from the from java-txt-kt to two pairs java-txt and kt-txt. This commit leads to some duplication in test data. This is temporary: in the platform types branch the test data for LoadJava tests will be changed dramatically, so duplication will go away
23 lines
767 B
Java
Vendored
23 lines
767 B
Java
Vendored
package test;
|
|
|
|
import org.jetbrains.annotations.*;
|
|
import java.util.ArrayList;
|
|
|
|
public interface LoadIterableWithPropagation {
|
|
public interface LoadIterable<T> {
|
|
public @Mutable Iterable<T> getIterable();
|
|
public void setIterable(@Mutable Iterable<T> Iterable);
|
|
|
|
public @ReadOnly Iterable<T> getReadOnlyIterable();
|
|
public void setReadOnlyIterable(@ReadOnly Iterable<T> Iterable);
|
|
}
|
|
|
|
public class LoadIterableImpl<T> implements LoadIterable<T> {
|
|
public Iterable<T> getIterable() {return new ArrayList<T>();}
|
|
public void setIterable(Iterable<T> Iterable) {}
|
|
|
|
public Iterable<T> getReadOnlyIterable() {return new ArrayList<T>();}
|
|
public void setReadOnlyIterable(Iterable<T> Iterable) {}
|
|
}
|
|
}
|