J2K: adapted for default visibility modifier 'public'
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
||||
import java.io.*
|
||||
|
||||
public class C {
|
||||
class C {
|
||||
Throws(IOException::class)
|
||||
fun foo() {
|
||||
internal fun foo() {
|
||||
ByteArrayInputStream(ByteArray(10)).use { stream ->
|
||||
// reading something
|
||||
val c = stream.read()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import java.io.*
|
||||
|
||||
public class C {
|
||||
class C {
|
||||
Throws(IOException::class)
|
||||
fun foo() {
|
||||
internal fun foo() {
|
||||
ByteArrayInputStream(ByteArray(10)).use { input ->
|
||||
ByteArrayOutputStream().use { output ->
|
||||
output.write(input.read())
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
import java.io.*
|
||||
|
||||
public class C {
|
||||
class C {
|
||||
Throws(IOException::class)
|
||||
fun foo() {
|
||||
internal fun foo() {
|
||||
ByteArrayInputStream(ByteArray(10)).use { stream -> println(stream.read()) }
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
import java.io.*
|
||||
|
||||
public class C {
|
||||
fun foo() {
|
||||
class C {
|
||||
internal fun foo() {
|
||||
try {
|
||||
ByteArrayInputStream(ByteArray(10)).use { stream ->
|
||||
// reading something
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import java.io.*
|
||||
|
||||
public class C {
|
||||
fun foo() {
|
||||
class C {
|
||||
internal fun foo() {
|
||||
try {
|
||||
ByteArrayInputStream(ByteArray(10)).use { stream ->
|
||||
// reading something
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import java.io.*
|
||||
|
||||
public class C {
|
||||
fun foo() {
|
||||
class C {
|
||||
internal fun foo() {
|
||||
try {
|
||||
ByteArrayInputStream(ByteArray(10)).use { stream ->
|
||||
// reading something
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import java.io.*
|
||||
|
||||
public class C {
|
||||
class C {
|
||||
Throws(IOException::class)
|
||||
fun foo() {
|
||||
internal fun foo() {
|
||||
try {
|
||||
ByteArrayInputStream(ByteArray(10)).use { stream ->
|
||||
// reading something
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import java.io.*
|
||||
|
||||
public class C {
|
||||
fun foo(): Int {
|
||||
class C {
|
||||
internal fun foo(): Int {
|
||||
try {
|
||||
ByteArrayInputStream(ByteArray(10)).use { stream ->
|
||||
// reading something
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import java.io.*
|
||||
|
||||
interface I {
|
||||
internal interface I {
|
||||
Throws(IOException::class)
|
||||
public fun doIt(stream: InputStream): Int
|
||||
fun doIt(stream: InputStream): Int
|
||||
}
|
||||
|
||||
public class C {
|
||||
class C {
|
||||
Throws(IOException::class)
|
||||
fun foo() {
|
||||
internal fun foo() {
|
||||
ByteArrayInputStream(ByteArray(10)).use { stream ->
|
||||
bar(object : I {
|
||||
Throws(IOException::class)
|
||||
@@ -19,7 +19,7 @@ public class C {
|
||||
}
|
||||
|
||||
Throws(IOException::class)
|
||||
fun bar(i: I, stream: InputStream): Int {
|
||||
internal fun bar(i: I, stream: InputStream): Int {
|
||||
return i.doIt(stream)
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,13 @@
|
||||
import java.io.*
|
||||
|
||||
interface I {
|
||||
internal interface I {
|
||||
Throws(IOException::class)
|
||||
public fun doIt(stream: InputStream): Int
|
||||
fun doIt(stream: InputStream): Int
|
||||
}
|
||||
|
||||
public class C {
|
||||
class C {
|
||||
Throws(IOException::class)
|
||||
fun foo(): Int {
|
||||
internal fun foo(): Int {
|
||||
ByteArrayInputStream(ByteArray(10)).use { stream ->
|
||||
return bar(object : I {
|
||||
Throws(IOException::class)
|
||||
@@ -19,7 +19,7 @@ public class C {
|
||||
}
|
||||
|
||||
Throws(IOException::class)
|
||||
fun bar(i: I, stream: InputStream): Int {
|
||||
internal fun bar(i: I, stream: InputStream): Int {
|
||||
return i.doIt(stream)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user