1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

bailout early

This commit is contained in:
Alain Magloire 2005-06-10 00:55:34 +00:00
parent e76316f9bc
commit 9d93120804

View file

@ -121,7 +121,7 @@ public class CFileTypesPropertyPage extends PropertyPage {
return;
List existingValues = parseItemsIntoList(contentTypeNode.get(key, null), PREF_SEPARATOR); //$NON-NLS-1$
int index = -1;
for (int j = 0; j < existingValues.size(); j++)
for (int j = 0; index == -1 && j < existingValues.size(); j++)
if (((String) existingValues.get(j)).equalsIgnoreCase(spec))
index = j;
if (index == -1)