mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bailout early
This commit is contained in:
parent
e76316f9bc
commit
9d93120804
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ public class CFileTypesPropertyPage extends PropertyPage {
|
||||||
return;
|
return;
|
||||||
List existingValues = parseItemsIntoList(contentTypeNode.get(key, null), PREF_SEPARATOR); //$NON-NLS-1$
|
List existingValues = parseItemsIntoList(contentTypeNode.get(key, null), PREF_SEPARATOR); //$NON-NLS-1$
|
||||||
int index = -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))
|
if (((String) existingValues.get(j)).equalsIgnoreCase(spec))
|
||||||
index = j;
|
index = j;
|
||||||
if (index == -1)
|
if (index == -1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue