Permalink
Browse files

Update to Kotlin 0.7.5

Add "override" to "toString" members in project
  • Loading branch information...
1 parent 517b619 commit 668011c7f1a8ff9a1fe2b6c7edb585d81ffcb962 @udalov udalov committed Mar 5, 2014
@@ -55,7 +55,7 @@ public data class SyndicationFeedItem(){
extensions.put(name, content)
}
- public fun toString(): String {
+ override fun toString(): String {
if (hasTitle())
return title!!
else if (hasDescription())
Binary file not shown.
View
Binary file not shown.
@@ -29,7 +29,7 @@ public data class CraigsListCity(
public val location: String,
public val grouping: String
){
- public fun toString(): String {
+ override fun toString(): String {
return "$code,$areaId,$url,$location,$grouping"
}
}
@@ -75,7 +75,7 @@ public data class CraigsListCategory(
public val code: String,
public val name: String
){
- public fun toString(): String {
+ override fun toString(): String {
return "$code - $name"
}
}
@@ -50,7 +50,7 @@ public class Bookmark(){
[DatabaseField(canBeNull = true, foreign = true, columnName = "bookmark_collection_id")]
public var collection: BookmarkCollection? = null
- public fun toString(): String {
+ override fun toString(): String {
return title
}
}
@@ -38,7 +38,7 @@ public class BookmarkCollection(){
[DatabaseField(canBeNull = false, columnName = "kind")]
public var kind: String = ""
- public fun toString(): String {
+ override fun toString(): String {
return title
}
}
@@ -67,7 +67,7 @@ public class Podcast(){
[DatabaseField(canBeNull = false, columnName = "date_created", dataType = DataType.DATE)]
public var dateCreated: Date = Calendar.getInstance().getTime()
- public fun toString(): String {
+ override fun toString(): String {
return title
}
}
@@ -43,7 +43,7 @@ public class SavedNewsItem(){
[DatabaseField(canBeNull = false, columnName = "date_created", dataType = DataType.DATE)]
public var dateCreated: Date = Calendar.getInstance().getTime()
- public fun toString(): String {
+ override fun toString(): String {
return title
}
}

0 comments on commit 668011c

Please sign in to comment.