|
| 1 | +/* |
| 2 | + * Copyright 2025 JetBrains s.r.o. |
| 3 | + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
| 4 | + * |
| 5 | + * This code is free software; you can redistribute it and/or modify it |
| 6 | + * under the terms of the GNU General Public License version 2 only, as |
| 7 | + * published by the Free Software Foundation. Oracle designates this |
| 8 | + * particular file as subject to the "Classpath" exception as provided |
| 9 | + * by Oracle in the LICENSE file that accompanied this code. |
| 10 | + * |
| 11 | + * This code is distributed in the hope that it will be useful, but WITHOUT |
| 12 | + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 13 | + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 14 | + * version 2 for more details (a copy is included in the LICENSE file that |
| 15 | + * accompanied this code). |
| 16 | + * |
| 17 | + * You should have received a copy of the GNU General Public License version |
| 18 | + * 2 along with this work; if not, write to the Free Software Foundation, |
| 19 | + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 | + * |
| 21 | + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
| 22 | + * or visit www.oracle.com if you need additional information or have any |
| 23 | + * questions. |
| 24 | + */ |
| 25 | + |
1 | 26 | package com.jetbrains.exported;
|
2 | 27 |
|
| 28 | +import com.jetbrains.internal.jbrapi.JBRApi; |
| 29 | + |
3 | 30 | import java.lang.annotation.Annotation;
|
4 | 31 | import java.lang.invoke.CallSite;
|
5 | 32 | import java.lang.invoke.ConstantCallSite;
|
@@ -32,22 +59,22 @@ public static synchronized Object bootstrap(Class<?> apiInterface,
|
32 | 59 | Class<? extends Annotation> providesAnnotation,
|
33 | 60 | Map<Enum<?>, Class[]> knownExtensions,
|
34 | 61 | Function<Method, Enum<?>> extensionExtractor) {
|
35 |
| - if (!com.jetbrains.internal.JBRApi.ENABLED) return null; |
36 |
| - com.jetbrains.internal.JBRApi.init( |
| 62 | + if (!JBRApi.ENABLED) return null; |
| 63 | + JBRApi.init( |
37 | 64 | null,
|
38 | 65 | serviceAnnotation,
|
39 | 66 | providedAnnotation,
|
40 | 67 | providesAnnotation,
|
41 | 68 | knownExtensions,
|
42 | 69 | extensionExtractor);
|
43 |
| - return com.jetbrains.internal.JBRApi.getService(apiInterface); |
| 70 | + return JBRApi.getService(apiInterface); |
44 | 71 | }
|
45 | 72 |
|
46 | 73 | /**
|
47 | 74 | * Bootstrap method for JBR API dynamic invocations.
|
48 | 75 | */
|
49 | 76 | public static CallSite bootstrapDynamic(MethodHandles.Lookup caller, String name, MethodType type) {
|
50 |
| - return new ConstantCallSite(com.jetbrains.internal.JBRApi.bindDynamic(caller, name, type)); |
| 77 | + return new ConstantCallSite(JBRApi.bindDynamic(caller, name, type)); |
51 | 78 | }
|
52 | 79 |
|
53 | 80 | /**
|
|
0 commit comments