J2K: all annotations should be with "@"
This commit is contained in:
+1
-1
@@ -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
@@ -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,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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user