Convert SimpleOutputItem: step 2
This commit is contained in:
@@ -14,34 +14,11 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.kotlin.compilerRunner;
|
package org.jetbrains.kotlin.compilerRunner
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import java.io.File
|
||||||
|
|
||||||
import java.io.File;
|
data class SimpleOutputItem(val sourceFiles: Collection<File>, val outputFile: File) {
|
||||||
import java.util.Collection;
|
override fun toString(): String =
|
||||||
|
"$sourceFiles->$outputFile"
|
||||||
public class SimpleOutputItem {
|
|
||||||
private final Collection<File> sourceFiles;
|
|
||||||
private final File outputFile;
|
|
||||||
|
|
||||||
public SimpleOutputItem(@NotNull Collection<File> sourceFiles, @NotNull File outputFile) {
|
|
||||||
this.sourceFiles = sourceFiles;
|
|
||||||
this.outputFile = outputFile;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotNull
|
|
||||||
public Collection<File> getSourceFiles() {
|
|
||||||
return sourceFiles;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotNull
|
|
||||||
public File getOutputFile() {
|
|
||||||
return outputFile;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return sourceFiles + " -> " + outputFile;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user