Removing unneeded "public override val" from constructors across the project

#KT-4295 Fixed
This commit is contained in:
Andrey Breslav
2014-07-05 18:10:35 +04:00
parent caec40b3a8
commit 98e87f2f95
20 changed files with 56 additions and 56 deletions
+21 -21
View File
@@ -19,9 +19,9 @@
package kotlin
public class ByteProgression(
public override val start: Byte,
public override val end: Byte,
public override val increment: Int
override val start: Byte,
override val end: Byte,
override val increment: Int
) : Progression<Byte> {
{
if (increment == 0) throw IllegalArgumentException("Increment must be non-zero")
@@ -42,9 +42,9 @@ public class ByteProgression(
}
public class CharProgression(
public override val start: Char,
public override val end: Char,
public override val increment: Int
override val start: Char,
override val end: Char,
override val increment: Int
) : Progression<Char> {
{
if (increment == 0) throw IllegalArgumentException("Increment must be non-zero")
@@ -65,9 +65,9 @@ public class CharProgression(
}
public class ShortProgression(
public override val start: Short,
public override val end: Short,
public override val increment: Int
override val start: Short,
override val end: Short,
override val increment: Int
) : Progression<Short> {
{
if (increment == 0) throw IllegalArgumentException("Increment must be non-zero")
@@ -88,9 +88,9 @@ public class ShortProgression(
}
public class IntProgression(
public override val start: Int,
public override val end: Int,
public override val increment: Int
override val start: Int,
override val end: Int,
override val increment: Int
) : Progression<Int> {
{
if (increment == 0) throw IllegalArgumentException("Increment must be non-zero")
@@ -111,9 +111,9 @@ public class IntProgression(
}
public class LongProgression(
public override val start: Long,
public override val end: Long,
public override val increment: Long
override val start: Long,
override val end: Long,
override val increment: Long
) : Progression<Long> {
{
if (increment == 0L) throw IllegalArgumentException("Increment must be non-zero")
@@ -134,9 +134,9 @@ public class LongProgression(
}
public class FloatProgression(
public override val start: Float,
public override val end: Float,
public override val increment: Float
override val start: Float,
override val end: Float,
override val increment: Float
) : Progression<Float> {
{
if (java.lang.Float.isNaN(increment)) throw IllegalArgumentException("Increment must be not NaN")
@@ -158,9 +158,9 @@ public class FloatProgression(
}
public class DoubleProgression(
public override val start: Double,
public override val end: Double,
public override val increment: Double
override val start: Double,
override val end: Double,
override val increment: Double
) : Progression<Double> {
{
if (java.lang.Double.isNaN(increment)) throw IllegalArgumentException("Increment must be not NaN")
+1 -1
View File
@@ -20,4 +20,4 @@ public trait PropertyMetadata {
public val name: String
}
public class PropertyMetadataImpl(public override val name: String): PropertyMetadata
public class PropertyMetadataImpl(override val name: String): PropertyMetadata
+7 -7
View File
@@ -18,7 +18,7 @@
package kotlin
public class ByteRange(public override val start: Byte, public override val end: Byte) : Range<Byte>, Progression<Byte> {
public class ByteRange(override val start: Byte, override val end: Byte) : Range<Byte>, Progression<Byte> {
override val increment: Int
get() = 1
@@ -40,7 +40,7 @@ public class ByteRange(public override val start: Byte, public override val end:
}
}
public class CharRange(public override val start: Char, public override val end: Char) : Range<Char>, Progression<Char> {
public class CharRange(override val start: Char, override val end: Char) : Range<Char>, Progression<Char> {
override val increment: Int
get() = 1
@@ -62,7 +62,7 @@ public class CharRange(public override val start: Char, public override val end:
}
}
public class ShortRange(public override val start: Short, public override val end: Short) : Range<Short>, Progression<Short> {
public class ShortRange(override val start: Short, override val end: Short) : Range<Short>, Progression<Short> {
override val increment: Int
get() = 1
@@ -84,7 +84,7 @@ public class ShortRange(public override val start: Short, public override val en
}
}
public class IntRange(public override val start: Int, public override val end: Int) : Range<Int>, Progression<Int> {
public class IntRange(override val start: Int, override val end: Int) : Range<Int>, Progression<Int> {
override val increment: Int
get() = 1
@@ -106,7 +106,7 @@ public class IntRange(public override val start: Int, public override val end: I
}
}
public class LongRange(public override val start: Long, public override val end: Long) : Range<Long>, Progression<Long> {
public class LongRange(override val start: Long, override val end: Long) : Range<Long>, Progression<Long> {
override val increment: Long
get() = 1
@@ -128,7 +128,7 @@ public class LongRange(public override val start: Long, public override val end:
}
}
public class FloatRange(public override val start: Float, public override val end: Float) : Range<Float>, Progression<Float> {
public class FloatRange(override val start: Float, override val end: Float) : Range<Float>, Progression<Float> {
override val increment: Float
get() = 1.0f
@@ -150,7 +150,7 @@ public class FloatRange(public override val start: Float, public override val en
}
}
public class DoubleRange(public override val start: Double, public override val end: Double) : Range<Double>, Progression<Double> {
public class DoubleRange(override val start: Double, override val end: Double) : Range<Double>, Progression<Double> {
override val increment: Double
get() = 1.0
@@ -20,7 +20,7 @@ import java.lang.reflect.*
import kotlin.reflect.*
open class KForeignMemberProperty<T : Any, out R>(
public override val name: String,
override val name: String,
protected val owner: KClassImpl<T>
) : KMemberProperty<T, R>, KPropertyImpl<R> {
override val field: Field = try {
@@ -22,7 +22,7 @@ import kotlin.reflect.*
// TODO: properties of built-in classes
open class KMemberPropertyImpl<T : Any, out R>(
public override val name: String,
override val name: String,
protected val owner: KClassImpl<T>
) : KMemberProperty<T, R>, KPropertyImpl<R> {
override val field: Field?
@@ -20,7 +20,7 @@ import java.lang.reflect.*
import kotlin.reflect.*
open class KTopLevelExtensionPropertyImpl<T, out R>(
public override val name: String,
override val name: String,
protected val owner: KPackageImpl,
protected val receiverClass: Class<T>
) : KTopLevelExtensionProperty<T, R>, KPropertyImpl<R> {
@@ -20,7 +20,7 @@ import java.lang.reflect.*
import kotlin.reflect.*
open class KTopLevelVariableImpl<out R>(
public override val name: String,
override val name: String,
protected val owner: KPackageImpl
) : KTopLevelVariable<R>, KVariableImpl<R> {
// TODO: load the field from the corresponding package part