Files
kotlin/compiler/testData/loadJava/compiledJava/mutability/LoadIterableWithPropagation.java
Andrey Breslav 1933e30905 Test data split between compiledJava tests and compiledKotlin tests
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
2014-08-21 12:22:22 +04:00

23 lines
767 B
Java

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) {}
}
}