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 {
|
abstract public class HttpHeadersSupport {
|
||||||
|
|
||||||
|
static final protected Map<String, HttpHeaderInfo> s_headers = new HashMap<String, HttpHeaderInfo>();
|
||||||
|
|
||||||
static public class HttpHeaderInfo {
|
static public class HttpHeaderInfo {
|
||||||
final public String name;
|
final public String name;
|
||||||
final public String header;
|
final public String header;
|
||||||
@ -53,8 +55,6 @@ abstract public class HttpHeadersSupport {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static final protected Map<String, HttpHeaderInfo> s_headers = new HashMap<String, HttpHeaderInfo>();
|
|
||||||
|
|
||||||
static {
|
static {
|
||||||
registerHttpHeader("User-Agent", RefineServlet.FULLNAME);
|
registerHttpHeader("User-Agent", RefineServlet.FULLNAME);
|
||||||
registerHttpHeader("Accept", "*/*");
|
registerHttpHeader("Accept", "*/*");
|
||||||
|
@ -37,7 +37,6 @@ import javax.servlet.http.HttpServletRequest;
|
|||||||
|
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
import org.json.JSONArray;
|
import org.json.JSONArray;
|
||||||
import java.util.Enumeration;
|
|
||||||
|
|
||||||
import com.google.refine.commands.EngineDependentCommand;
|
import com.google.refine.commands.EngineDependentCommand;
|
||||||
import com.google.refine.model.AbstractOperation;
|
import com.google.refine.model.AbstractOperation;
|
||||||
|
@ -350,7 +350,6 @@ public class ColumnAdditionByFetchingURLsOperation extends EngineDependentOperat
|
|||||||
urlConnection.setRequestProperty(info.header, httpHeaders.get(headerLabel));
|
urlConnection.setRequestProperty(info.header, httpHeaders.get(headerLabel));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// urlConnection.setRequestProperty(_headerKey, _headerValue);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
InputStream is = urlConnection.getInputStream();
|
InputStream is = urlConnection.getInputStream();
|
||||||
|
Loading…
Reference in New Issue
Block a user