diff --git a/platform/util/zip/apiDump.txt b/platform/util/zip/apiDump.txt new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/platform/util/zip/src/com/intellij/util/lang/ByteBufferCleaner.java b/platform/util/zip/src/com/intellij/util/lang/ByteBufferCleaner.java index 654e08b7fc28..bdf978fc8a15 100644 --- a/platform/util/zip/src/com/intellij/util/lang/ByteBufferCleaner.java +++ b/platform/util/zip/src/com/intellij/util/lang/ByteBufferCleaner.java @@ -1,6 +1,7 @@ -// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.util.lang; +import org.jetbrains.annotations.ApiStatus.Internal; import org.jetbrains.annotations.NotNull; import java.lang.invoke.MethodHandle; @@ -10,6 +11,7 @@ import java.nio.ByteBuffer; // we need to unmap buffer immediately without waiting until GC does this job; otherwise further modifications of the created file // will fail with AccessDeniedException +@Internal public final class ByteBufferCleaner { private static volatile MethodHandle cleaner; diff --git a/platform/util/zip/src/com/intellij/util/lang/InputStreamAccess.java b/platform/util/zip/src/com/intellij/util/lang/InputStreamAccess.java index 56efca49a396..8dcd2b2e7439 100644 --- a/platform/util/zip/src/com/intellij/util/lang/InputStreamAccess.java +++ b/platform/util/zip/src/com/intellij/util/lang/InputStreamAccess.java @@ -1,4 +1,4 @@ -// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.util.lang; import java.io.IOException; @@ -7,7 +7,7 @@ import java.lang.invoke.MethodHandles; import java.lang.invoke.VarHandle; import java.nio.ByteOrder; -public class InputStreamAccess implements Access { +class InputStreamAccess implements Access { private static final VarHandle LONG_HANDLE = MethodHandles.byteArrayViewVarHandle(long[].class, ByteOrder.LITTLE_ENDIAN); private static final VarHandle INT_HANDLE = MethodHandles.byteArrayViewVarHandle(int[].class, ByteOrder.LITTLE_ENDIAN); @@ -16,7 +16,7 @@ public class InputStreamAccess implements Access { private final int totalStreamLength; private final int totalBlocks; - public InputStreamAccess(int streamLength) { + InputStreamAccess(int streamLength) { currentBlock = -1; buffer = new byte[Xxh3Impl.getBlockLength()]; totalStreamLength = streamLength;