| RFE: Refactor property type [message #655722] |
Tue, 22 February 2011 07:57 |
David Balažic Messages: 127 Registered: July 2009 |
Senior Member |
|
|
Continuing this thread: http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg0 4950.html
I suggest refactoring the type of a property.
- before:
private String foo;
public void setFoo(String foo){
this.foo = foo;
}
public String getFoo(){
return foo;
}
- action: select Refactor menu on the foo property definition (first line in example code) and select another desired type, eg. Long
- after:
private Long foo;
public void setFoo(Long foo){
this.foo = foo;
}
public Long getFoo(){
return foo;
}
Regards,
David
|
|
|
Powered by
FUDForum. Page generated in 0.01584 seconds