LUCENE-8170: Remove empty class file (Clover output)

This commit is contained in:
Uwe Schindler 2018-02-12 00:29:42 +01:00
parent 95e94ab9d9
commit c0f8e6075d
2 changed files with 1 additions and 24 deletions

View File

@ -1,21 +0,0 @@
/*
* 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.
*/
package conf;
public class ConfLoader {
// don't mind me, I load .alg files
}

View File

@ -38,8 +38,6 @@ import org.apache.lucene.store.RAMDirectory;
import org.apache.lucene.util.LuceneTestCase; import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.LuceneTestCase.SuppressSysoutChecks; import org.apache.lucene.util.LuceneTestCase.SuppressSysoutChecks;
import conf.ConfLoader;
/** Test very simply that perf tasks are parses as expected. */ /** Test very simply that perf tasks are parses as expected. */
@SuppressSysoutChecks(bugUrl = "very noisy") @SuppressSysoutChecks(bugUrl = "very noisy")
public class TestPerfTasksParse extends LuceneTestCase { public class TestPerfTasksParse extends LuceneTestCase {
@ -114,7 +112,7 @@ public class TestPerfTasksParse extends LuceneTestCase {
public void testParseExamples() throws Exception { public void testParseExamples() throws Exception {
// hackedy-hack-hack // hackedy-hack-hack
boolean foundFiles = false; boolean foundFiles = false;
final Path examplesDir = Paths.get(ConfLoader.class.getResource(".").toURI()); final Path examplesDir = Paths.get(getClass().getResource("/conf").toURI());
try (DirectoryStream<Path> stream = Files.newDirectoryStream(examplesDir, "*.alg")) { try (DirectoryStream<Path> stream = Files.newDirectoryStream(examplesDir, "*.alg")) {
for (Path path : stream) { for (Path path : stream) {
Config config = new Config(Files.newBufferedReader(path, StandardCharsets.UTF_8)); Config config = new Config(Files.newBufferedReader(path, StandardCharsets.UTF_8));