Reputation: 103
Is there any possible way how to refactor variable fields in eclipse?
long interval;
public WebsiteConnectionPing(String url, long interval, String serviceName) {
this.url = url;
this.interval = interval;
this.serviceName = serviceName;
}
//......
I want to refactor interval which is type long to type String is it possible?
String interval;
public WebsiteConnectionPing(String url, String interval, String serviceName) {
this.url = url;
this.interval = interval;
this.serviceName = serviceName;
}
//....
Upvotes: 0
Views: 515
Reputation: 76
I found this way:
String
.this.interval = interval;
String
.Upvotes: 1