create getter from usage: return type fixed when field with name already exist

This commit is contained in:
anna
2010-07-23 20:49:21 +04:00
parent 19e299f9ed
commit 5c430dd73a
3 changed files with 21 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
// "Create Getter" "true"
public class Test {
Integer field;
public foo() {
getField();
}
public Integer getField() {
return field;
}
}

View File

@@ -0,0 +1,7 @@
// "Create Getter" "true"
public class Test {
Integer field;
public foo() {
get<caret>Field();
}
}