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