mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Fix getCommandLinePattern to check its superclass when the value is null.
This commit is contained in:
parent
840aece508
commit
b6d40feacd
1 changed files with 7 additions and 4 deletions
|
@ -1104,11 +1104,14 @@ public class Tool extends BuildObject implements ITool, IOptionCategory {
|
|||
* @see org.eclipse.cdt.managedbuilder.core.ITool#getCommandLinePattern()
|
||||
*/
|
||||
public String getCommandLinePattern() {
|
||||
if (commandLinePattern != null) {
|
||||
return commandLinePattern;
|
||||
} else {
|
||||
return new String(DEFAULT_PATTERN); // Default pattern
|
||||
if (commandLinePattern == null) {
|
||||
if (superClass != null) {
|
||||
return superClass.getCommandLinePattern();
|
||||
} else {
|
||||
return new String(DEFAULT_PATTERN); // Default pattern
|
||||
}
|
||||
}
|
||||
return commandLinePattern;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
Loading…
Add table
Reference in a new issue