Change Signature: Translate JetValVar to Kotlin
This commit is contained in:
+7
-19
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2013 JetBrains s.r.o.
|
* Copyright 2010-2014 JetBrains s.r.o.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -14,24 +14,12 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.plugin.refactoring.changeSignature;
|
package org.jetbrains.jet.plugin.refactoring.changeSignature
|
||||||
|
|
||||||
public enum JetValVar {
|
public enum class JetValVar(val name: String) {
|
||||||
None,
|
None: JetValVar("none")
|
||||||
Val,
|
Val: JetValVar("val")
|
||||||
Var;
|
Var: JetValVar("var")
|
||||||
|
|
||||||
@Override
|
override fun toString(): String = name
|
||||||
public String toString() {
|
|
||||||
switch (this) {
|
|
||||||
case None:
|
|
||||||
return "none";
|
|
||||||
case Val:
|
|
||||||
return "val";
|
|
||||||
case Var:
|
|
||||||
return "var";
|
|
||||||
}
|
|
||||||
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user