Commit a2faa822 authored by azara's avatar azara
Browse files

BS-14273 improve generation guidance

refactoring some methods 
parent 869c7a37
......@@ -182,22 +182,14 @@ public class CreateContractInputFromBusinessObjectWizardPage extends WizardPage
* @return the isAutogeneratedOperation
*/
public boolean getIsAutogeneratedOperation() {
if (contract.eContainer() instanceof OperationContainer) {
return isAutogeneratedOperation;
} else {
return false;
}
return contract.eContainer() instanceof OperationContainer ? isAutogeneratedOperation : false;
}
/**
* @return the isAutogeneratedScript
*/
public boolean getIsAutogeneratedScript() {
if (contract.eContainer() instanceof Pool) {
return isAutogeneratedScript;
} else {
return false;
}
return contract.eContainer() instanceof Pool ? isAutogeneratedScript : false;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment