Opened 16 years ago
Closed 16 years ago
#770 closed defect (fixed)
Wrong variable assignment in org.openstreetmap.josm.io.MyHttpHandler
Reported by: | Owned by: | framm | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | |
Keywords: | wrong variable assignment | Cc: | krasnoj@… |
Description
Hi!
I think the function:
public MyHttpHandler(String proxy, int port) {
proxy = proxy;
proxyPort = port;
}
is wrong. The right code should be:
public MyHttpHandler(String proxy, int port) {
this.proxy = proxy;
this.proxyPort = port;
}
If you write proxy=proxy, this assignment has no effect to the class variable proxy. Instead this.proxy=proxy overwrites the class variable (instead the function argument) like it is wantet.
Closed in r655.