mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Fixes compile error (for those who still have jre-1.4 installed)
This commit is contained in:
parent
ae93a12c54
commit
4327e91e76
1 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ public class BuildProcessManager {
|
||||||
if(map == null)
|
if(map == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
List<String> list = new ArrayList<String>();
|
List list = new ArrayList();
|
||||||
|
|
||||||
for(Iterator iter = map.entrySet().iterator(); iter.hasNext();){
|
for(Iterator iter = map.entrySet().iterator(); iter.hasNext();){
|
||||||
Map.Entry entry = (Map.Entry)iter.next();
|
Map.Entry entry = (Map.Entry)iter.next();
|
||||||
|
@ -166,7 +166,7 @@ public class BuildProcessManager {
|
||||||
IBuildEnvironmentVariable var = evp.getVariable("NUMBER_OF_PROCESSORS", null, false, false); //$NON-NLS-1$
|
IBuildEnvironmentVariable var = evp.getVariable("NUMBER_OF_PROCESSORS", null, false, false); //$NON-NLS-1$
|
||||||
if (var != null) {
|
if (var != null) {
|
||||||
try {
|
try {
|
||||||
x = new Integer(var.getValue()).intValue(); //$NON-NLS-1$
|
x = new Integer(var.getValue()).intValue();
|
||||||
if (x > 0) { procNumber = x; }
|
if (x > 0) { procNumber = x; }
|
||||||
} catch (NumberFormatException e) {} // fallthrough and return default
|
} catch (NumberFormatException e) {} // fallthrough and return default
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue