mirror of https://github.com/apache/lucene.git
SOLR-15054: Test should not require private methods to be final (#2150)
This commit is contained in:
parent
f11837544f
commit
809d15115b
|
@ -66,7 +66,7 @@ public class ConfigureRecoveryStrategyTest extends SolrTestCaseJ4 {
|
|||
|
||||
public void testAlmostAllMethodsAreFinal() throws Exception {
|
||||
for (Method m : RecoveryStrategy.class.getDeclaredMethods()) {
|
||||
if (Modifier.isStatic(m.getModifiers())) continue;
|
||||
if (Modifier.isStatic(m.getModifiers()) || Modifier.isPrivate(m.getModifiers())) continue;
|
||||
final String methodName = m.getName();
|
||||
if ("getReplicateLeaderUrl".equals(methodName)) {
|
||||
assertFalse(m.toString(), Modifier.isFinal(m.getModifiers()));
|
||||
|
|
Loading…
Reference in New Issue