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 m_printRows = new SerializableMatrixImpl<ArrayList<Serializable>>("TableElementPrintRows"); // reset
// Max Column Width = 50% of available width (used if maxWidth not set) // 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 // Width calculation
int rows = m_data.getRowCount(); int rows = m_data.getRowCount();

View File

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

View File

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

View File

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