2222import com .dbeaver .osgi .dependency .processing .p2 .P2RepositoryManager ;
2323import com .dbeaver .osgi .dependency .processing .p2 .repository .RemoteP2BundleInfo ;
2424import com .dbeaver .osgi .dependency .processing .util .FileUtils ;
25- import jakarta . annotation . Nonnull ;
26- import jakarta . annotation .Nullable ;
25+ import org . jkiss . code . NotNull ;
26+ import org . jkiss . code .Nullable ;
2727import org .jkiss .tools .rcplaunchconfig .Params ;
2828import org .slf4j .Logger ;
2929import org .slf4j .LoggerFactory ;
@@ -44,7 +44,7 @@ public class ConfigIniProducer {
4444
4545 public static Map <String , String > generateConfigIni (
4646 @ Nullable Path osgiSplashPath ,
47- @ Nonnull Collection <Set <BundleInfo >> bundles
47+ @ NotNull Collection <Set <BundleInfo >> bundles
4848 ) throws IOException {
4949 Map <String , String > result = new LinkedHashMap <>();
5050 if (osgiSplashPath != null ) {
@@ -58,15 +58,15 @@ public static Map<String, String> generateConfigIni(
5858 return result ;
5959 }
6060
61- private static @ Nonnull String getOsgiBundlesValue (@ Nonnull Collection <Set <BundleInfo >> bundles ) {
61+ private static @ NotNull String getOsgiBundlesValue (@ NotNull Collection <Set <BundleInfo >> bundles ) {
6262 return bundles .stream ()
6363 .flatMap (Collection ::stream )
6464 .filter (it -> it .getPath () != null )
6565 .map (ConfigIniProducer ::getBundleReference )
6666 .collect (Collectors .joining ("," ));
6767 }
6868
69- private static @ Nonnull String getBundleReference (@ Nonnull BundleInfo bundleInfo ) {
69+ private static @ NotNull String getBundleReference (@ NotNull BundleInfo bundleInfo ) {
7070 var stringBuilder = new StringBuilder ();
7171 stringBuilder .append ("reference:" );
7272 stringBuilder .append (getNormalizeFileReference (bundleInfo .getPath ()));
@@ -78,15 +78,15 @@ public static Map<String, String> generateConfigIni(
7878 return stringBuilder .toString ();
7979 }
8080
81- private static @ Nonnull String getBundleStartLevel (@ Nonnull BundleInfo bundleInfo ) {
81+ private static @ NotNull String getBundleStartLevel (@ NotNull BundleInfo bundleInfo ) {
8282 if (bundleInfo .getStartLevel () != null ) {
8383 return "@" + bundleInfo .getStartLevel () + ":start" ;
8484 } else {
8585 return "@default:default" ;
8686 }
8787 }
8888
89- private static @ Nonnull String getOsgiFrameworkValue () throws IOException {
89+ private static @ NotNull String getOsgiFrameworkValue () throws IOException {
9090 var eclipsePluginsPath = PathsManager .INSTANCE .getEclipsePluginsPath ();
9191 var file = FileUtils .findFirstChildByPackageName (eclipsePluginsPath , OSGI_FRAMEWORK_BUNDLE_NAME );
9292 if (file == null ) {
@@ -109,11 +109,11 @@ public static Map<String, String> generateConfigIni(
109109 return file .getCanonicalPath ();
110110 }
111111
112- private static @ Nonnull String getNormalizeFileReference (@ Nonnull Path path ) {
112+ private static @ NotNull String getNormalizeFileReference (@ NotNull Path path ) {
113113 return getNormalizeFileReference (path .toString ());
114114 }
115115
116- private static @ Nonnull String getNormalizeFileReference (@ Nonnull String path ) {
116+ private static @ NotNull String getNormalizeFileReference (@ NotNull String path ) {
117117 return "file:" + path .replace ('\\' , '/' );
118118 }
119119
0 commit comments