You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by ad...@apache.org on 2026/07/27 07:11:30 UTC
(ratis-thirdparty) branch master updated: RATIS-2623. Do not update protobuf to a version with NioByteString removed (#153)
This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis-thirdparty.git
The following commit(s) were added to refs/heads/master by this push:
new 6f9e8ce RATIS-2623. Do not update protobuf to a version with NioByteString removed (#153)
6f9e8ce is described below
commit 6f9e8ce76c8ad3f0d0a0b62d035f594ec54ce85e
Author: Tsz-Wo Nicholas Sze <sz...@apache.org>
AuthorDate: Mon Jul 27 00:11:24 2026 -0700
RATIS-2623. Do not update protobuf to a version with NioByteString removed (#153)
---
.gitignore | 27 ++++++++++++++----
.../com/google/protobuf/ProtobufTest.java | 33 ++++++++++++++++++++++
2 files changed, 54 insertions(+), 6 deletions(-)
diff --git a/.gitignore b/.gitignore
index 3736e95..cf5943b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,23 @@
-target
-.settings
-.project
-.classpath
-.iml
+.DS_Store
+*.iml
+*.ipr
+*.iws
+*.orig
+*.rej
+**/.keep
+*.sdf
+*.suo
+*.vcxproj.user
+.dev-tools/
+.hugo_build.lock
.idea
+.classpath
.mvn/.develocity/
-*.versionsBackup
+.project
+.settings
+target
+build
+patchprocess
+dependency-reduced-pom.xml
+.mvn/wrapper/maven-wrapper.jar
+.vscode/
diff --git a/test/src/test/java/org/apache/ratis/thirdparty/com/google/protobuf/ProtobufTest.java b/test/src/test/java/org/apache/ratis/thirdparty/com/google/protobuf/ProtobufTest.java
new file mode 100644
index 0000000..1aaf1c6
--- /dev/null
+++ b/test/src/test/java/org/apache/ratis/thirdparty/com/google/protobuf/ProtobufTest.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.ratis.thirdparty.com.google.protobuf;
+
+import java.nio.ByteBuffer;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+/** Unit test for protobuf in order to access package private artifacts. */
+public class ProtobufTest {
+ @Test
+ public void testNioByteStringExist() {
+ final byte[] array = new byte[10];
+ final NioByteString nioByteString = new NioByteString(ByteBuffer.wrap(array));
+ assertEquals(array.length, nioByteString.size());
+ }
+}