fix typos in method signatures

This commit is contained in:
Ivan Masár
2015-01-16 13:07:27 +01:00
parent 0571386370
commit 3dc71439b0
10 changed files with 110 additions and 110 deletions

View File

@@ -242,13 +242,13 @@ public class SolrLogger
}
public static void postView(DSpaceObject dspaceObject,
String ip, String userAgent, String xforwarderfor, EPerson currentUser) {
String ip, String userAgent, String xforwardedfor, EPerson currentUser) {
if (solr == null || locationService == null) {
return;
}
try {
SolrInputDocument doc1 = getCommonSolrDoc(dspaceObject, ip, userAgent, xforwarderfor,
SolrInputDocument doc1 = getCommonSolrDoc(dspaceObject, ip, userAgent, xforwardedfor,
currentUser);
if (doc1 == null)
return;
@@ -376,7 +376,7 @@ public class SolrLogger
return doc1;
}
private static SolrInputDocument getCommonSolrDoc(DSpaceObject dspaceObject, String ip, String userAgent, String xforwarderfor, EPerson currentUser) throws SQLException {
private static SolrInputDocument getCommonSolrDoc(DSpaceObject dspaceObject, String ip, String userAgent, String xforwardedfor, EPerson currentUser) throws SQLException {
boolean isSpiderBot = SpiderDetector.isSpider(ip);
if(isSpiderBot &&
!ConfigurationManager.getBooleanProperty("usage-statistics", "logBots", true))
@@ -388,14 +388,14 @@ public class SolrLogger
// Save our basic info that we already have
if (isUseProxies() && xforwarderfor != null) {
if (isUseProxies() && xforwardedfor != null) {
/* This header is a comma delimited list */
for (String xfip : xforwarderfor.split(",")) {
for (String xfip : xforwardedfor.split(",")) {
/* proxy itself will sometime populate this header with the same value in
remote address. ordering in spec is vague, we'll just take the last
not equal to the proxy
*/
if (!xforwarderfor.contains(ip)) {
if (!xforwardedfor.contains(ip)) {
ip = xfip.trim();
}
}