Fix whitespace issues in OpenStream.java

This commit is contained in:
Peter Stöckli
2020-02-21 17:13:04 +00:00
committed by GitHub
parent b622e2ae06
commit 9de2be8eba

View File

@@ -1,8 +1,8 @@
public class TestServlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// BAD: a URL from a remote source is opened with URL#openStream()
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// BAD: a URL from a remote source is opened with URL#openStream()
URL url = new URL(request.getParameter("url"));
InputStream inputStream = new URL(url).openStream();
}
}
}