- Timestamp:
- 2015-12-27T00:12:51+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/JosmEditorPane.java
r8846 r9175 7 7 import java.io.InputStream; 8 8 import java.net.URL; 9 import java.net.URLConnection;10 9 import java.text.MessageFormat; 11 10 … … 17 16 18 17 import org.openstreetmap.josm.gui.util.GuiHelper; 18 import org.openstreetmap.josm.tools.HttpClient; 19 19 import org.openstreetmap.josm.tools.LanguageInfo; 20 import org.openstreetmap.josm.tools.Utils;21 20 22 21 /** … … 76 75 @Override 77 76 protected InputStream getStream(URL page) throws IOException { 78 URLConnection conn = Utils.setupURLConnection(page.openConnection()); 79 InputStream result = conn.getInputStream(); 77 final HttpClient.Response conn = HttpClient.create(page).connect(); 80 78 String type = conn.getContentType(); 81 79 if (type != null) { 82 80 setContentType(type); 83 81 } 84 return result;82 return conn.getContent(); 85 83 } 86 84
Note:
See TracChangeset
for help on using the changeset viewer.