|
1 | 1 | /******************************************************************************* |
2 | | - * Copyright (c) 2000, 2017 IBM Corporation and others. |
| 2 | + * Copyright (c) 2000, 2025 IBM Corporation and others. |
3 | 3 | * |
4 | 4 | * This program and the accompanying materials |
5 | 5 | * are made available under the terms of the Eclipse Public License 2.0 |
|
52 | 52 | import org.eclipse.team.internal.core.Messages; |
53 | 53 | import org.eclipse.team.internal.core.Policy; |
54 | 54 | import org.eclipse.team.internal.core.StorageMergerRegistry; |
55 | | -import org.eclipse.team.internal.core.WildcardStringMatcher; |
56 | 55 | import org.eclipse.team.internal.core.TeamPlugin; |
57 | 56 | import org.eclipse.team.internal.core.TeamResourceChangeListener; |
| 57 | +import org.eclipse.team.internal.core.WildcardStringMatcher; |
58 | 58 | import org.eclipse.team.internal.core.importing.BundleImporterExtension; |
59 | 59 |
|
60 | 60 | /** |
@@ -186,7 +186,7 @@ public static boolean isIgnored(IFile file) { |
186 | 186 | * @return all known file types |
187 | 187 | * @deprecated Use <code>getFileContentManager().getExtensionMappings()</code> instead. |
188 | 188 | */ |
189 | | - @Deprecated |
| 189 | + @Deprecated(forRemoval = true, since = "2025-03") |
190 | 190 | public static IFileTypeInfo[] getAllTypes() { |
191 | 191 | final IStringMapping [] mappings= fFileContentManager.getExtensionMappings(); |
192 | 192 | final IFileTypeInfo [] infos= new IFileTypeInfo[mappings.length]; |
@@ -366,9 +366,7 @@ private static void initializePluginIgnores(SortedMap<String, Boolean> pIgnore, |
366 | 366 | } |
367 | 367 | } |
368 | 368 |
|
369 | | - Iterator<String> it = pIgnore.keySet().iterator(); |
370 | | - while (it.hasNext()) { |
371 | | - String pattern = it.next(); |
| 369 | + for (String pattern : pIgnore.keySet()) { |
372 | 370 | if (!gIgnore.containsKey(pattern)) { |
373 | 371 | gIgnore.put(pattern, pIgnore.get(pattern)); |
374 | 372 | } |
@@ -531,7 +529,7 @@ public static IIgnoreInfo[] getDefaultIgnores() { |
531 | 529 | * @since 3.0 |
532 | 530 | * @deprecated Use Team.getFileContentManager().getDefaultExtensionMappings() instead. |
533 | 531 | */ |
534 | | - @Deprecated |
| 532 | + @Deprecated(forRemoval = true, since = "2025-03") |
535 | 533 | public static IFileTypeInfo[] getDefaultTypes() { |
536 | 534 | return asFileTypeInfo(getFileContentManager().getDefaultExtensionMappings()); |
537 | 535 | } |
|
0 commit comments