You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by cp...@apache.org on 2017/03/14 13:10:38 UTC

lucene-solr:master: SOLR-9045: exclude static methods from ConfigureRecoveryStrategyTest.testAlmostAllMethodsAreFinal

Repository: lucene-solr
Updated Branches:
  refs/heads/master 175009504 -> 5aafea849


SOLR-9045: exclude static methods from ConfigureRecoveryStrategyTest.testAlmostAllMethodsAreFinal


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/5aafea84
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/5aafea84
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/5aafea84

Branch: refs/heads/master
Commit: 5aafea84948e9838dd2cd333c3e873bea176c9e8
Parents: 1750095
Author: Christine Poerschke <cp...@apache.org>
Authored: Tue Mar 14 13:05:55 2017 +0000
Committer: Christine Poerschke <cp...@apache.org>
Committed: Tue Mar 14 13:05:55 2017 +0000

----------------------------------------------------------------------
 .../test/org/apache/solr/core/ConfigureRecoveryStrategyTest.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5aafea84/solr/core/src/test/org/apache/solr/core/ConfigureRecoveryStrategyTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/core/ConfigureRecoveryStrategyTest.java b/solr/core/src/test/org/apache/solr/core/ConfigureRecoveryStrategyTest.java
index 80032af..0a988f6 100644
--- a/solr/core/src/test/org/apache/solr/core/ConfigureRecoveryStrategyTest.java
+++ b/solr/core/src/test/org/apache/solr/core/ConfigureRecoveryStrategyTest.java
@@ -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()));