replace 'trait' keyword with 'interface' in library code

This commit is contained in:
Dmitry Jemerov
2015-05-12 12:09:27 +02:00
parent b1c4a5670a
commit 2a99f757c4
42 changed files with 195 additions and 195 deletions
@@ -21,7 +21,7 @@ import org.gradle.api.tasks.compile.AbstractCompile
public class SubpluginOption(val key: String, val value: String)
public trait KotlinGradleSubplugin {
public interface KotlinGradleSubplugin {
public fun getExtraArguments(project: Project, task: AbstractCompile): List<SubpluginOption>?
public fun getPluginName(): String
public fun getGroupName(): String
@@ -6,7 +6,7 @@ import org.gradle.api.internal.file.FileResolver
import org.gradle.api.internal.file.DefaultSourceDirectorySet
import org.gradle.util.ConfigureUtil
trait KotlinSourceSet {
interface KotlinSourceSet {
fun getKotlin(): SourceDirectorySet
fun kotlin(configureClosure: Closure<Any?>?): KotlinSourceSet
@@ -7,7 +7,7 @@ fun foo(p: Int??) {
}
trait T {
interface T {
abstract fun foo()
}
@@ -7,7 +7,7 @@ fun foo(p: Int??) {
}
trait T {
interface T {
abstract fun foo()
}
@@ -7,7 +7,7 @@ fun foo(p: Int??) {
}
trait T {
interface T {
abstract fun foo()
}
@@ -87,7 +87,7 @@ $imports
val interfaces = klass.getInterfaces()
val extends = if (interfaces != null && interfaces.size == 1) ": ${interfaces[0]?.getSimpleName()}" else ""
println("native public trait ${klass.getSimpleName()}$extends {")
println("native public interface ${klass.getSimpleName()}$extends {")
val methods = klass.getDeclaredMethods().sortBy { it.getName()!! }
if (methods != null) {