Permalink
Browse files

Checkstyle fixes.

Also, after further consideration, fixed the bug I just introduced.
  • Loading branch information...
LadyCailin committed Dec 20, 2018
1 parent f35e4da commit 082e0c0a1388fbe5b698a9cc299787ce06b1ece5
@@ -7,7 +7,6 @@
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintStream;
import java.io.Reader;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
@@ -7,8 +7,6 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
* This class wraps all the data that an HTTP response contains.
@@ -61,7 +59,7 @@ public HTTPResponse(String responseText, int responseCode, Map<String, List<Stri
public String getContentAsString() {
try {
return getContentAsString("UTF-8");
} catch(UnsupportedEncodingException ex) {
} catch (UnsupportedEncodingException ex) {
throw new Error(ex);
}
}
@@ -8,12 +8,8 @@
import java.io.BufferedInputStream;

import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
@@ -6,7 +6,6 @@
import com.laytonsmith.PureUtilities.Version;
import com.laytonsmith.PureUtilities.ZipReader;
import com.laytonsmith.abstraction.MCPlayer;
import com.laytonsmith.annotations.MEnum;
import com.laytonsmith.annotations.api;
import com.laytonsmith.annotations.hide;
import com.laytonsmith.annotations.noboilerplate;
@@ -16,7 +15,6 @@
import com.laytonsmith.core.MethodScriptCompiler;
import com.laytonsmith.core.ParseTree;
import com.laytonsmith.core.Security;
import com.laytonsmith.core.SimpleDocumentation;
import com.laytonsmith.core.Static;
import com.laytonsmith.core.constructs.CBoolean;
import com.laytonsmith.core.constructs.CByteArray;
@@ -443,12 +443,12 @@ public Mixed exec(final Target t, final Environment environment, Mixed... args)

List<ConfigRuntimeException.StackTraceElement> st
= environment.getEnv(GlobalEnv.class).GetStackTraceManager().getCurrentStackTrace();
environment.getEnv(GlobalEnv.class).GetDaemonManager().activateThread(null);
Runnable task = new Runnable() {

@Override
public void run() {
try {
environment.getEnv(GlobalEnv.class).GetDaemonManager().activateThread(null);
HTTPResponse resp = WebUtility.GetPage(url, settings);
final CArray array = CArray.GetAssociativeArray(t);
if(settings.getDownloadTo() == null) {

0 comments on commit 082e0c0

Please sign in to comment.