Tidy up for codacy

This commit is contained in:
Owen Stephens 2018-01-16 18:27:13 +00:00
parent 9cf379e625
commit af3aa44e6c
3 changed files with 3 additions and 5 deletions

View File

@ -41,6 +41,8 @@ import com.google.refine.RefineServlet;
abstract public class HttpHeadersSupport {
static final protected Map<String, HttpHeaderInfo> s_headers = new HashMap<String, HttpHeaderInfo>();
static public class HttpHeaderInfo {
final public String name;
final public String header;
@ -52,9 +54,7 @@ abstract public class HttpHeadersSupport {
this.defaultValue = defaultValue;
}
}
static final protected Map<String, HttpHeaderInfo> s_headers = new HashMap<String, HttpHeaderInfo>();
static {
registerHttpHeader("User-Agent", RefineServlet.FULLNAME);
registerHttpHeader("Accept", "*/*");

View File

@ -37,7 +37,6 @@ import javax.servlet.http.HttpServletRequest;
import org.json.JSONObject;
import org.json.JSONArray;
import java.util.Enumeration;
import com.google.refine.commands.EngineDependentCommand;
import com.google.refine.model.AbstractOperation;

View File

@ -350,7 +350,6 @@ public class ColumnAdditionByFetchingURLsOperation extends EngineDependentOperat
urlConnection.setRequestProperty(info.header, httpHeaders.get(headerLabel));
}
}
// urlConnection.setRequestProperty(_headerKey, _headerValue);
try {
InputStream is = urlConnection.getInputStream();