mirror of https://github.com/apache/lucene.git
SOLR-9045: exclude static methods from ConfigureRecoveryStrategyTest.testAlmostAllMethodsAreFinal
This commit is contained in:
parent
52b3bc2f6d
commit
6163956a1b
|
@ -66,6 +66,7 @@ public class ConfigureRecoveryStrategyTest extends SolrTestCaseJ4 {
|
||||||
|
|
||||||
public void testAlmostAllMethodsAreFinal() throws Exception {
|
public void testAlmostAllMethodsAreFinal() throws Exception {
|
||||||
for (Method m : RecoveryStrategy.class.getDeclaredMethods()) {
|
for (Method m : RecoveryStrategy.class.getDeclaredMethods()) {
|
||||||
|
if (Modifier.isStatic(m.getModifiers())) continue;
|
||||||
final String methodName = m.getName();
|
final String methodName = m.getName();
|
||||||
if ("getReplicateLeaderUrl".equals(methodName)) {
|
if ("getReplicateLeaderUrl".equals(methodName)) {
|
||||||
assertFalse(m.toString(), Modifier.isFinal(m.getModifiers()));
|
assertFalse(m.toString(), Modifier.isFinal(m.getModifiers()));
|
||||||
|
|
Loading…
Reference in New Issue