Change Signature: Translate JetValVar to Kotlin

This commit is contained in:
Alexey Sedunov
2014-12-08 15:31:54 +03:00
parent fe455df001
commit 5e34308a08
@@ -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 "";
}
} }