Skip to content

Commit

Permalink
Fixed URLs for downloading JVM spec
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswhocodes committed Oct 23, 2017
1 parent 847008c commit 95123ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2015 Chris Newland.
* Copyright (c) 2013-2017 Chris Newland.
* Licensed under https://github.com/AdoptOpenJDK/jitwatch/blob/master/LICENSE-BSD
* Instructions: https://github.com/AdoptOpenJDK/jitwatch/wiki
*/
Expand Down Expand Up @@ -62,11 +62,11 @@ public static String getJVMSCSSURL()

public static boolean fetchJVMS()
{
String html = NetUtil.fetchURL("http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-6.html");
String css = NetUtil.fetchURL("http://docs.oracle.com/javase/specs/javaspec.css");
String html = NetUtil.fetchURL("https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-6.html");
String css = NetUtil.fetchURL("https://docs.oracle.com/javase/specs/javaspec.css");

boolean result = false;

if (html.length() > 0 && css.length() > 0)
{
Path pathHTML = Paths.get(new File(JVMS_HTML_FILENAME).toURI());
Expand Down
Expand Up @@ -31,15 +31,15 @@ public static String fetchURL(String toFetch)
BufferedReader in = null;

try
{
{
URL url = new URL(toFetch);

in = new BufferedReader(new InputStreamReader(url.openStream()));

String inputLine;

while ((inputLine = in.readLine()) != null)
{
{
builder.append(inputLine).append(S_NEWLINE);
}

Expand Down

0 comments on commit 95123ae

Please sign in to comment.