This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openjpa.git

commit f009f39150c3d8f30dd601a4048580ded5f0bddd
Author: Mark Struberg <strub...@apache.org>
AuthorDate: Mon Jul 24 11:29:36 2023 +0200

    OPENJPA-2911 remove now unused SerpPrivacyHelper
---
 .../apache/openjpa/enhance/SerpPrivacyHelper.java  | 50 ----------------------
 1 file changed, 50 deletions(-)

diff --git 
a/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/SerpPrivacyHelper.java
 
b/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/SerpPrivacyHelper.java
deleted file mode 100644
index 06b571c11..000000000
--- 
a/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/SerpPrivacyHelper.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * 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.openjpa.enhance;
-
-import java.security.PrivilegedAction;
-
-import org.apache.openjpa.lib.util.J2DoPrivHelper;
-
-import serp.bytecode.BCClassLoader;
-import serp.bytecode.Project;
-
-/**
- *
- * @Deprecated just for getting rid of Serp in one place
- */
-public class SerpPrivacyHelper extends J2DoPrivHelper {
-
-    /**
-     * Return a PrivilegeAction object for new BCClassLoader().
-     *
-     * Requires security policy:
-     *   'permission java.lang.RuntimePermission "createClassLoader";'
-     *
-     * @return BCClassLoader
-     */
-    public static PrivilegedAction<BCClassLoader> newBCClassLoaderAction(
-            final Project project, final ClassLoader parent) {
-        return new PrivilegedAction<BCClassLoader>() {
-            @Override
-            public BCClassLoader run() {
-                return new BCClassLoader(project, parent);
-            }
-        };
-    }
-
-}

Reply via email to