From bbe133d5df1c2c66305cf46fa8f2ddb72fe3e7e8 Mon Sep 17 00:00:00 2001 From: Daniil Ovchinnikov Date: Tue, 26 Mar 2024 21:21:33 +0100 Subject: [PATCH] IJPL-797 `intellij.platform.util.zip`: dump API GitOrigin-RevId: 1e6f1df581162ed5ef3adda5cb0d192d2663a8da --- platform/util/zip/apiDump.txt | 0 .../zip/src/com/intellij/util/lang/ByteBufferCleaner.java | 4 +++- .../zip/src/com/intellij/util/lang/InputStreamAccess.java | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 platform/util/zip/apiDump.txt 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;