package org.apache.lucene.search.spans;

/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements. See the NOTICE file distributed with this
 * work for additional information regarding copyright ownership. The ASF
 * licenses this file to You under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

import java.lang.reflect.Method;
import java.util.HashSet;
import java.util.Set;

import org.apache.lucene.util.LuceneTestCase;
import org.junit.Test;

public class TestFilterSpans extends LuceneTestCase {

  @Test
  public void testOverrides() throws Exception {
    // verify that all methods of Spans are overridden by FilterSpans,
    // except those under the 'exclude' list
    Set<Method> exclude = new HashSet<>();
    for (Method m : FilterSpans.class.getMethods()) {
      if (m.getDeclaringClass() == Spans.class) {
        assertTrue("method " + m.getName() + " not overridden!", exclude.contains(m));
      }
    }
  }
  
}

@@ -36,15 +36,12 @@
 ans;
-%0D%0A%0D
+%0A
 %0A/*
-%0D
 %0A * 
@@ -106,17 +106,16 @@
  or more
-%0D
 %0A * cont
@@ -183,17 +183,16 @@
 ith this
-%0D
 %0A * work
@@ -257,17 +257,16 @@
  The ASF
-%0D
 %0A * lice
@@ -329,17 +329,16 @@
 2.0 (the
-%0D
 %0A * %22Lic
@@ -409,17 +409,16 @@
 License.
-%0D
 %0A * You 
@@ -452,22 +452,20 @@
 cense at
-%0D
 %0A * 
-%0D
 %0A * http
@@ -506,14 +506,12 @@
 -2.0
-%0D
 %0A * 
-%0D
 %0A * 
@@ -577,17 +577,16 @@
 software
-%0D
 %0A * dist
@@ -654,17 +654,16 @@
  WITHOUT
-%0D
 %0A * WARR
@@ -730,17 +730,16 @@
  See the
-%0D
 %0A * Lice
@@ -811,17 +811,16 @@
 ns under
-%0D
 %0A * the 
@@ -831,16 +831,13 @@
 nse.
-%0D
 %0A */
-%0D%0A%0D
+%0A
 %0Aimp
@@ -865,17 +865,16 @@
 .Method;
-%0D
 %0Aimport 
@@ -891,17 +891,16 @@
 HashSet;
-%0D
 %0Aimport 
@@ -913,19 +913,17 @@
 til.Set;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -960,17 +960,16 @@
 estCase;
-%0D
 %0Aimport 
@@ -983,19 +983,17 @@
 it.Test;
-%0D%0A%0D
+%0A
 %0Apublic 
@@ -1042,19 +1042,17 @@
 se %7B
-%0D%0A%0D
+%0A
 %0A  @Test
 %0D%0A  
@@ -1047,17 +1047,16 @@
 %0A  @Test
-%0D
 %0A  publi
@@ -1096,17 +1096,16 @@
 eption %7B
-%0D
 %0A    // 
@@ -1167,17 +1167,16 @@
 erSpans,
-%0D
 %0A    // 
@@ -1212,17 +1212,16 @@
 de' list
-%0D
 %0A    Set
@@ -1255,17 +1255,16 @@
 Set%3C%3E();
-%0D
 %0A    for
@@ -1309,17 +1309,16 @@
 ods()) %7B
-%0D
 %0A      i
@@ -1359,17 +1359,16 @@
 class) %7B
-%0D
 %0A       
@@ -1450,17 +1450,16 @@
 m));
-%0D
 %0A      %7D
 %0D%0A  
@@ -1458,25 +1458,20 @@
    %7D
-%0D
 %0A    %7D
-%0D
 %0A  %7D
-%0D
 %0A  
-%0D
 %0A%7D
-%0D
 %0A

fix eol-style