mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix compile error. Looks like Java 1.5 auto converts between Integer and int. Unfortunately 1.4 doesn't.
This commit is contained in:
parent
3646c58a41
commit
d440fd11f0
2 changed files with 7 additions and 2 deletions
|
@ -84,7 +84,7 @@ public class ErrorPattern {
|
|||
public int getLineNum(Matcher matcher) {
|
||||
try {
|
||||
return groupLineNum != 0
|
||||
? Integer.valueOf(matcher.group(groupLineNum))
|
||||
? Integer.valueOf(matcher.group(groupLineNum)).intValue()
|
||||
: 0;
|
||||
} catch (NumberFormatException e) {
|
||||
return 0;
|
||||
|
|
|
@ -22,7 +22,12 @@ public class MakeErrorParser extends AbstractErrorParser {
|
|||
private static final ErrorPattern[] patterns = {
|
||||
new ErrorPattern("make\\[(.*)\\]: Entering directory `(.*)'", 0, 0) { //$NON-NLS-1
|
||||
protected boolean recordError(Matcher matcher, ErrorParserManager eoParser) {
|
||||
int level = Integer.valueOf(matcher.group(1));
|
||||
int level;
|
||||
try {
|
||||
level = Integer.valueOf(matcher.group(1)).intValue();
|
||||
} catch (NumberFormatException e) {
|
||||
level = 0;
|
||||
}
|
||||
String dir = matcher.group(2);
|
||||
/* Sometimes make screws up the output, so
|
||||
* "leave" events can't be seen. Double-check level
|
||||
|
|
Loading…
Add table
Reference in a new issue