IDEMPIERE-455 Discover and fix FindBugs problems / Pattern ICAST_IDIV_CAST_TO_DOUBLE
This commit is contained in:
parent
24e4972406
commit
7ba478f6c2
|
@ -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();
|
||||
|
|
|
@ -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 - "
|
||||
|
|
|
@ -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 - "
|
||||
|
|
|
@ -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 - "
|
||||
|
|
Loading…
Reference in New Issue