J2K: all annotations should be with "@"

This commit is contained in:
Valentin Kipyatkov
2015-09-15 12:47:08 +03:00
parent cc4aa6ed21
commit 7caccd7578
71 changed files with 129 additions and 129 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import java.io.*
class C {
Throws(IOException::class)
@Throws(IOException::class)
internal fun foo() {
ByteArrayInputStream(ByteArray(10)).use { stream ->
// reading something
@@ -1,7 +1,7 @@
import java.io.*
class C {
Throws(IOException::class)
@Throws(IOException::class)
internal fun foo() {
ByteArrayInputStream(ByteArray(10)).use { input ->
ByteArrayOutputStream().use { output ->
+1 -1
View File
@@ -1,7 +1,7 @@
import java.io.*
class C {
Throws(IOException::class)
@Throws(IOException::class)
internal fun foo() {
ByteArrayInputStream(ByteArray(10)).use { stream -> println(stream.read()) }
}
+1 -1
View File
@@ -1,7 +1,7 @@
import java.io.*
class C {
Throws(IOException::class)
@Throws(IOException::class)
internal fun foo() {
try {
ByteArrayInputStream(ByteArray(10)).use { stream ->
@@ -1,16 +1,16 @@
import java.io.*
internal interface I {
Throws(IOException::class)
@Throws(IOException::class)
fun doIt(stream: InputStream): Int
}
class C {
Throws(IOException::class)
@Throws(IOException::class)
internal fun foo() {
ByteArrayInputStream(ByteArray(10)).use { stream ->
bar(object : I {
Throws(IOException::class)
@Throws(IOException::class)
override fun doIt(stream: InputStream): Int {
return stream.available()
}
@@ -18,7 +18,7 @@ class C {
}
}
Throws(IOException::class)
@Throws(IOException::class)
internal fun bar(i: I, stream: InputStream): Int {
return i.doIt(stream)
}
@@ -1,16 +1,16 @@
import java.io.*
internal interface I {
Throws(IOException::class)
@Throws(IOException::class)
fun doIt(stream: InputStream): Int
}
class C {
Throws(IOException::class)
@Throws(IOException::class)
internal fun foo(): Int {
ByteArrayInputStream(ByteArray(10)).use { stream ->
return bar(object : I {
Throws(IOException::class)
@Throws(IOException::class)
override fun doIt(stream: InputStream): Int {
return stream.available()
}
@@ -18,7 +18,7 @@ class C {
}
}
Throws(IOException::class)
@Throws(IOException::class)
internal fun bar(i: I, stream: InputStream): Int {
return i.doIt(stream)
}