[textmate] API cleanup: mark for removal API which was deprecated in 2023.3 or earlier (IJPL-503)

GitOrigin-RevId: ea7b1fd19432477adad0b73fbae97e7ab328b575
This commit is contained in:
Nikolay Chashnikov
2024-06-19 13:39:51 +02:00
committed by intellij-monorepo-bot
parent b91b0f65c0
commit c8b45c467c
3 changed files with 7 additions and 7 deletions

View File

@@ -94,7 +94,7 @@ public final class PreferencesReadUtil {
/**
* @deprecated use {@link TextMateBundleReader#readSnippets()} instead
*/
@Deprecated
@Deprecated(forRemoval = true)
@Nullable
public static TextMateSnippet loadSnippet(@NotNull File snippetFile, @NotNull Plist plist, @NotNull Interner<CharSequence> interner) {
return snippetFile.getName().endsWith("." + Constants.SUBLIME_SNIPPET_EXTENSION)

View File

@@ -57,7 +57,7 @@ public class Bundle {
/**
* @deprecated use `TextMateService#readBundle#readPreferences` or `TextMateBundleReader`
*/
@Deprecated
@Deprecated(forRemoval = true)
public @NotNull Collection<File> getPreferenceFiles() {
switch (myType) {
case TEXTMATE -> {
@@ -73,7 +73,7 @@ public class Bundle {
/**
* @deprecated use `TextMateService#readBundle#readSnippets` or `TextMateBundleReader`
*/
@Deprecated
@Deprecated(forRemoval = true)
public @NotNull Collection<File> getSnippetFiles() {
switch (myType) {
case TEXTMATE -> {
@@ -119,7 +119,7 @@ public class Bundle {
/**
* @deprecated use `TextMateService#readBundle#readGrammars` or `TextMateBundleReader`
*/
@Deprecated
@Deprecated(forRemoval = true)
public Collection<String> getExtensions(@NotNull File file, @NotNull Plist plist) {
return plist.getPlistValue(Constants.FILE_TYPES_KEY, emptyList()).getStringArray();
}
@@ -127,7 +127,7 @@ public class Bundle {
/**
* @deprecated use `TextMateService#readBundle#readPreferences` or `TextMateBundleReader`
*/
@Deprecated
@Deprecated(forRemoval = true)
public List<Map.Entry<String, Plist>> loadPreferenceFile(@NotNull File file, @NotNull PlistReader plistReader) throws IOException {
return Collections.singletonList(PreferencesReadUtil.retrieveSettingsPlist(plistReader.read(file)));
}

View File

@@ -12,7 +12,7 @@ import java.io.IOException;
/**
* @deprecated use `TextMateService#readBundle` or `TextMateBundleReader`
*/
@Deprecated
@Deprecated(forRemoval = true)
public class BundleFactory {
private final PlistReader myPlistReader;
@@ -28,7 +28,7 @@ public class BundleFactory {
* @return Bundle object or null
* @deprecated use `TextMateService#readBundle#readGrammars` or `TextMateBundleReader`
*/
@Deprecated
@Deprecated(forRemoval = true)
@Nullable
public Bundle fromDirectory(@NotNull File directory) throws IOException {
final BundleType type = BundleType.detectBundleType(directory.toPath());