You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2014/08/26 18:18:06 UTC
svn commit: r1620648 -
/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java
Author: jacopoc
Date: Tue Aug 26 16:18:06 2014
New Revision: 1620648
URL: http://svn.apache.org/r1620648
Log:
Removed unused/unnecessary code from ServerHitBin; no functional changes.
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java?rev=1620648&r1=1620647&r2=1620648&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java Tue Aug 26 16:18:06 2014
@@ -18,7 +18,6 @@
*******************************************************************************/
package org.ofbiz.webapp.stats;
-import java.net.InetAddress;
import java.util.Date;
import java.util.List;
import java.util.Map;
@@ -234,11 +233,7 @@ public class ServerHitBin {
countHit("GLOBAL", type, request, startTime, runningTime, userLogin, true);
}
- private static void countHitSinceStart(String baseId, int type, long startTime, long runningTime, boolean isOriginal,
- Delegator delegator) {
- if (delegator == null) {
- throw new IllegalArgumentException("The delegator passed to countHitSinceStart cannot be null");
- }
+ private static void countHitSinceStart(String baseId, int type, long startTime, long runningTime, boolean isOriginal, Delegator delegator) {
String id = makeIdTenantAware(baseId, delegator);
@@ -337,11 +332,6 @@ public class ServerHitBin {
private long maxTime;
private ServerHitBin(String id, int type, boolean limitLength, Delegator delegator) {
- super();
- if (delegator == null) {
- throw new IllegalArgumentException("The delegator passed to countHitSinceStart cannot be null");
- }
-
this.id = id;
this.type = type;
this.limitLength = limitLength;
@@ -351,8 +341,6 @@ public class ServerHitBin {
}
private ServerHitBin(ServerHitBin oldBin) {
- super();
-
this.id = oldBin.id;
this.type = oldBin.type;
this.limitLength = oldBin.limitLength;