J2K: adapted for default visibility modifier 'public'

This commit is contained in:
Valentin Kipyatkov
2015-09-15 11:29:27 +03:00
parent 1ccbda6af4
commit c3ddd5d32b
477 changed files with 1359 additions and 1350 deletions
+2 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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)
}
}