lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject [08/19] lucene-solr:feature/autoscaling: SOLR-9045: exclude static methods from ConfigureRecoveryStrategyTest.testAlmostAllMethodsAreFinal
Date Thu, 16 Mar 2017 08:12:30 GMT
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/6163956a
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/6163956a
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/6163956a

Branch: refs/heads/feature/autoscaling
Commit: 6163956a1b303ca3690715f91ad737dab78b84ea
Parents: 52b3bc2
Author: Christine Poerschke <cpoerschke@apache.org>
Authored: Tue Mar 14 13:05:55 2017 +0000
Committer: Shalin Shekhar Mangar <shalin@apache.org>
Committed: Thu Mar 16 13:41:50 2017 +0530

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


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/6163956a/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()));


Mime
View raw message