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

Conversation

oldergod
Copy link
Member

The changed happened here cd31c07#diff-aa9f6ad4ed05efc263a9cc5ab076514a3f851f6b0573d76580a99aa31fe5d21a
This introduced a API breaking change from out latest tag 3.3.0. Even though the package is internal, methods are public.

@oldergod oldergod requested a review from swankjesse June 22, 2023 10:22
@@ -800,7 +800,7 @@ 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/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;
}

@oldergod oldergod force-pushed the bquenaudon.2023-06-22.nonbreaking branch from 2df662f to bfc39c6 Compare June 22, 2023 11:08
@@ -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;
}

@swankjesse swankjesse merged commit c12a566 into bquenaudon.2023-06-22.api Jun 22, 2023
@swankjesse swankjesse deleted the bquenaudon.2023-06-22.nonbreaking branch June 22, 2023 12:04
swankjesse pushed a commit that referenced this pull request Jun 22, 2023
* Dump internal public APIs

Since they're public... they might be used!

* Revert public API breaking change (#1279)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants