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

Fixed a compiler warning.

This commit is contained in:
Sergey Prigogin 2011-03-07 02:55:03 +00:00
parent a6a7c95f71
commit a7a8d608fa

View file

@ -56,7 +56,7 @@ public class Process {
} }
/** /**
* This method build the necessary Arguments for the process * This method build the necessary Arguments for the process
* @param templateCore * @param templateCore
* @param element * @param element
*/ */
@ -69,7 +69,8 @@ public class Process {
ProcessParameter param = params[i]; ProcessParameter param = params[i];
boolean childrenRemain = childIndex < children.size(); boolean childrenRemain = childIndex < children.size();
Element child = (childrenRemain ? children.get(childIndex) : null); Element child = (childrenRemain ? children.get(childIndex) : null);
if (param.isExternal() && (!childrenRemain || !param.getName().equals(child.getAttribute(ProcessArgument.ELEM_NAME)))) { if (param.isExternal() &&
(child == null || !param.getName().equals(child.getAttribute(ProcessArgument.ELEM_NAME)))) {
list.add(new ProcessArgument(templateCore, param)); list.add(new ProcessArgument(templateCore, param));
} else if (childrenRemain) { } else if (childrenRemain) {
list.add(new ProcessArgument(templateCore, child)); list.add(new ProcessArgument(templateCore, child));
@ -83,7 +84,7 @@ public class Process {
} }
/** /**
* *
* @return boolean, true if the Process is Ready. * @return boolean, true if the Process is Ready.
*/ */
public boolean isReadyToProcess() { public boolean isReadyToProcess() {
@ -92,9 +93,9 @@ public class Process {
} }
return true; return true;
} }
/** /**
* *
* @return boolean, true if Macros are Exapandable. * @return boolean, true if Macros are Exapandable.
*/ */
private boolean areAllMacrosExpandable() { private boolean areAllMacrosExpandable() {
@ -108,7 +109,7 @@ public class Process {
} }
return true; return true;
} }
/** /**
* Returns First NonExpandable Macro Message * Returns First NonExpandable Macro Message
*/ */
@ -124,7 +125,7 @@ public class Process {
} }
return null; return null;
} }
/** /**
* Returns the Process Message depending on the parameters. * Returns the Process Message depending on the parameters.
* @param code * @param code
@ -141,10 +142,10 @@ public class Process {
return id + TemplateEngineMessages.getString("Process.info") + msg; //$NON-NLS-1$ return id + TemplateEngineMessages.getString("Process.info") + msg; //$NON-NLS-1$
} }
} }
/** /**
* Executes this process * Executes this process
* @param monitor * @param monitor
* @return the result of executing this process * @return the result of executing this process
* @throws ProcessFailureException * @throws ProcessFailureException
*/ */
@ -193,7 +194,7 @@ public class Process {
} }
return set; return set;
} }
@Override @Override
public String toString() { public String toString() {
return id; return id;