Tidy up for codacy
This commit is contained in:
parent
9cf379e625
commit
af3aa44e6c
@ -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", "*/*");
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user