IDEMPIERE-455 Discover and fix FindBugs problems / Pattern ICAST_IDIV_CAST_TO_DOUBLE

This commit is contained in:
Richard Morales 2012-12-12 16:31:08 -05:00
parent 24e4972406
commit 7ba478f6c2
4 changed files with 5 additions and 5 deletions

View File

@ -284,7 +284,7 @@ public class TableElement extends PrintElement
m_printRows = new SerializableMatrixImpl<ArrayList<Serializable>>("TableElementPrintRows"); // reset
// Max Column Width = 50% of available width (used if maxWidth not set)
float dynMxColumnWidth = m_firstPage.width / 2;
float dynMxColumnWidth = m_firstPage.width / (float)2;
// Width calculation
int rows = m_data.getRowCount();

View File

@ -962,7 +962,7 @@ public final class WebUtil
out.close();
//
time = System.currentTimeMillis() - time;
double speed = (fileLength/1024) / ((double)time/1000);
double speed = (fileLength/(double)1024) / (time/(double)1000);
log.info("Length="
+ fileLength + " - "
+ time + " ms - "
@ -1015,7 +1015,7 @@ public final class WebUtil
in.close();
//
time = System.currentTimeMillis() - time;
double speed = (fileLength/1024) / ((double)time/1000);
double speed = (fileLength/(double)1024) / (time/(double)1000);
log.info("Length="
+ fileLength + " - "
+ time + " ms - "

View File

@ -446,7 +446,7 @@ public class AdempiereMonitor extends HttpServlet
fis.close();
//
time = System.currentTimeMillis() - time;
double speed = (fileLength/1024) / ((double)time/1000);
double speed = (fileLength/(double)1024) / (time/(double)1000);
log.info("length="
+ fileLength + " - "
+ time + " ms - "

View File

@ -182,7 +182,7 @@ public class RfQServlet extends HttpServlet
out.close();
//
time = System.currentTimeMillis() - time;
double speed = (fileLength/1024) / ((double)time/1000);
double speed = (fileLength/(double)1024) / (time/(double)1000);
log.fine("streamInvoice - length="
+ fileLength + " - "
+ time + " ms - "