mirror of
https://github.com/apache/commons-math.git
synced 2025-02-07 18:49:40 +00:00
Should only test against public methods.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1062302 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ebe4b3e92b
commit
fcc41aa360
@ -1071,7 +1071,11 @@ public class FastMathTest {
|
||||
String name = mathMethod.getName();
|
||||
try {
|
||||
fastMethod = FastMath.class.getDeclaredMethod(name, (Class[]) params);
|
||||
comparer.compareSpecials(mathMethod, fastMethod, params);
|
||||
if (Modifier.isPublic(fastMethod.getModifiers())) {
|
||||
comparer.compareSpecials(mathMethod, fastMethod, params);
|
||||
} else {
|
||||
System.out.println("Cannot find public FastMath method corresponding to: "+mathMethod);
|
||||
}
|
||||
} catch (NoSuchMethodException e) {
|
||||
System.out.println("Cannot find FastMath method corresponding to: "+mathMethod);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user