Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert public API breaking change #1279

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions okio/api/okio.api
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ public final class okio/-InflaterSourceExtensions {
public static synthetic fun inflate$default (Lokio/Source;Ljava/util/zip/Inflater;ILjava/lang/Object;)Lokio/InflaterSource;
}

public final class okio/-JvmPlatform {
public static final fun withLock (Ljava/util/concurrent/locks/ReentrantLock;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;
}

public class okio/AsyncTimeout : okio/Timeout {
public static final field Companion Lokio/AsyncTimeout$Companion;
public fun <init> ()V
Expand Down Expand Up @@ -800,7 +796,11 @@ public final class okio/Utf8 {
public static synthetic fun size$default (Ljava/lang/String;IIILjava/lang/Object;)J
}

public final class okio/internal/-Utf8 {
public final class okio/_JvmPlatformKt {
public static final fun withLock (Ljava/util/concurrent/locks/ReentrantLock;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;
}

public final class okio/internal/_Utf8Kt {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don’t we need a - here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is what it was doing before

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the API dump on 3.3.0 gives us

public final class okio/internal/_Utf8Kt {
	public static final fun commonAsUtf8ToByteArray (Ljava/lang/String;)[B
	public static final fun commonToUtf8String ([BII)Ljava/lang/String;
	public static synthetic fun commonToUtf8String$default ([BIIILjava/lang/Object;)Ljava/lang/String;
}

public static final fun commonAsUtf8ToByteArray (Ljava/lang/String;)[B
public static final fun commonToUtf8String ([BII)Ljava/lang/String;
public static synthetic fun commonToUtf8String$default ([BIIILjava/lang/Object;)Ljava/lang/String;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// ktlint-disable filename
/*
* Copyright (C) 2018 Square, Inc.
*
Expand All @@ -13,11 +14,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@file:JvmName("-Utf8") // A leading '-' hides this class from Java.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the api dump from 3.3.0

public final class okio/_JvmPlatformKt {
	public static final fun withLock (Ljava/util/concurrent/locks/ReentrantLock;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;
}


package okio.internal

import kotlin.jvm.JvmName
import okio.ArrayIndexOutOfBoundsException
import okio.processUtf16Chars
import okio.processUtf8Bytes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// ktlint-disable filename
/*
* Copyright (C) 2018 Square, Inc.
*
Expand All @@ -13,8 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@file:JvmName("-JvmPlatform") // A leading '-' hides this class from Java.

package okio

import java.util.concurrent.locks.ReentrantLock
Expand Down