有没有办法在eclipse中重构变量字段?
long interval;
public WebsiteConnectionPing(String url, long interval, String serviceName) {
this.url = url;
this.interval = interval;
this.serviceName = serviceName;
}
//......
我想重构类型为long的间隔字符串是否可能?
String interval;
public WebsiteConnectionPing(String url, String interval, String serviceName) {
this.url = url;
this.interval = interval;
this.serviceName = serviceName;
}
//....
答案 0 :(得分:1)
我发现了这种方式:
String
。this.interval = interval;
String
。