mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
f92fff3e50
commit
29d3e83da0
2 changed files with 3 additions and 3 deletions
|
@ -171,7 +171,7 @@ public class GenerateGettersAndSettersInputPage extends UserInputWizardPage impl
|
|||
for (Object funct : funtions) {
|
||||
if (funct instanceof GetterSetterInsertEditProvider) {
|
||||
GetterSetterInsertEditProvider getSet = (GetterSetterInsertEditProvider) funct;
|
||||
if(getSet.getType() == type) {
|
||||
if (getSet.getType() == type) {
|
||||
checked.add(getSet);
|
||||
variableSelectionView.setChecked(getSet, true);
|
||||
}
|
||||
|
|
|
@ -173,7 +173,7 @@ public class GenerateGettersAndSettersRefactoring extends CRefactoring2 {
|
|||
|
||||
private IASTCompositeTypeSpecifier getCompositeTypeSpecifier(IASTName selectedName) {
|
||||
IASTNode node = selectedName;
|
||||
while(node != null && !(node instanceof IASTCompositeTypeSpecifier)) {
|
||||
while (node != null && !(node instanceof IASTCompositeTypeSpecifier)) {
|
||||
node = node.getParent();
|
||||
}
|
||||
return (IASTCompositeTypeSpecifier) node;
|
||||
|
@ -181,7 +181,7 @@ public class GenerateGettersAndSettersRefactoring extends CRefactoring2 {
|
|||
|
||||
private IASTName getSelectedName(IASTTranslationUnit ast) {
|
||||
List<IASTName> names = findAllMarkedNames(ast);
|
||||
if (names.size() < 1) {
|
||||
if (names.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
return names.get(names.size() - 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue