replace 'trait' keyword with 'interface' in library code
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ fun foo(p: Int??) {
|
||||
|
||||
}
|
||||
|
||||
trait T {
|
||||
interface T {
|
||||
abstract fun foo()
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ fun foo(p: Int??) {
|
||||
|
||||
}
|
||||
|
||||
trait T {
|
||||
interface T {
|
||||
abstract fun foo()
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user