Strange behavior when Math.min() in code

2015-09-23 Thread Murphy, Mark
POI 3.12 - Windows - IBM JVM Here is some code (CopyRow is my own concoction based on some code I found on StackOverflow): try { copyRow(sh, n1, n2); sh.removeRow(sh.getRow(n1)); copyRow(sh, n2+1, n1);

Re: Strange behavior when Math.min() in code

2015-09-23 Thread Javen O'Neal
Math.min/StrictMath.min versus your ternary computation look equivalent to me. What is the value of last just before sh.shiftRows if you use Math.min, StrictMath.min, or the ternary operator? On a side-note, I've submitted an implementation of copyRows in bug 58348 (https://bz.apache.org/bugzilla/

RE: Strange behavior when Math.min() in code

2015-09-24 Thread Murphy, Mark
Original Message- From: Javen O'Neal [mailto:javenon...@gmail.com] Sent: Wednesday, September 23, 2015 2:53 PM To: POI Users List Subject: Re: Strange behavior when Math.min() in code Math.min/StrictMath.min versus your ternary computation look equivalent to me. What is the value of las