Fix MZTolerance.max function
@@ -73,11 +73,11 @@ public class MZTolerance {
* Joins an m/z tolerance and ppm and absolute tolerance on the maximum values
*
* @param mzTol existing tolerance
- * @param ppm default max tolerance
* @param absolute default max tolerance
+ * @param ppm default max tolerance
* @return a new tolerance of the max values of both
*/
- public static MZTolerance max(final MZTolerance mzTol, final double ppm, final double absolute) {
+ public static MZTolerance max(final MZTolerance mzTol, final double absolute, final double ppm) {
return new MZTolerance(Math.max(absolute, mzTol.mzTolerance),
Math.max(ppm, mzTol.ppmTolerance));
}
