This is an automated email from the ASF dual-hosted git repository.
daim pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/trunk by this push:
new 9324bd4262 OAK-11911 : exposed DirectExecutor from ExecutorUtils
(#2575)
9324bd4262 is described below
commit 9324bd426201fc66269d155c89406bcc065083fa
Author: Rishabh Kumar <[email protected]>
AuthorDate: Tue Oct 14 09:46:26 2025 +0530
OAK-11911 : exposed DirectExecutor from ExecutorUtils (#2575)
* OAK-11910 : exposed DirectExecutor from ExecutorUtils
* OAK-11910 : marked DirectExecutor as public again
* OAK-11911 : increased minor version
---
.../commons/internal/concurrent/ExecutorUtils.java | 35 ++++++++++++++++++++++
.../commons/internal/concurrent/package-info.java | 2 +-
2 files changed, 36 insertions(+), 1 deletion(-)
diff --git
a/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/internal/concurrent/ExecutorUtils.java
b/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/internal/concurrent/ExecutorUtils.java
new file mode 100644
index 0000000000..da71da98bc
--- /dev/null
+++
b/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/internal/concurrent/ExecutorUtils.java
@@ -0,0 +1,35 @@
+/*
+ * 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.jackrabbit.oak.commons.internal.concurrent;
+
+
+import java.util.concurrent.Executor;
+
+/**
+ * Util methods for {@link java.util.concurrent.Executor}
+ */
+public class ExecutorUtils {
+ private ExecutorUtils() {
+ // no instances for you
+ }
+
+ public static Executor directExecutor() {
+ return DirectExecutor.INSTANCE;
+ }
+}
diff --git
a/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/internal/concurrent/package-info.java
b/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/internal/concurrent/package-info.java
index f211337277..1d60571596 100644
---
a/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/internal/concurrent/package-info.java
+++
b/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/internal/concurrent/package-info.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-@Version("1.0.0")
+@Version("1.1.0")
@Internal(since = "1.0.0")
package org.apache.jackrabbit.oak.commons.internal.concurrent;