You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2018/02/11 23:30:08 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/master 95e94ab9d -> c0f8e6075


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


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

Branch: refs/heads/master
Commit: c0f8e6075d4c57ccaa6661b1a5d1483ba11123e5
Parents: 95e94ab
Author: Uwe Schindler <us...@apache.org>
Authored: Mon Feb 12 00:29:42 2018 +0100
Committer: Uwe Schindler <us...@apache.org>
Committed: Mon Feb 12 00:29:42 2018 +0100

----------------------------------------------------------------------
 lucene/benchmark/src/test/conf/ConfLoader.java  | 21 --------------------
 .../benchmark/byTask/TestPerfTasksParse.java    |  4 +---
 2 files changed, 1 insertion(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c0f8e607/lucene/benchmark/src/test/conf/ConfLoader.java
----------------------------------------------------------------------
diff --git a/lucene/benchmark/src/test/conf/ConfLoader.java b/lucene/benchmark/src/test/conf/ConfLoader.java
deleted file mode 100644
index 97c02ac..0000000
--- a/lucene/benchmark/src/test/conf/ConfLoader.java
+++ /dev/null
@@ -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
-}

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c0f8e607/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksParse.java
----------------------------------------------------------------------
diff --git a/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksParse.java b/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksParse.java
index 90158da..04e15ca 100644
--- a/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksParse.java
+++ b/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/TestPerfTasksParse.java
@@ -38,8 +38,6 @@ import org.apache.lucene.store.RAMDirectory;
 import org.apache.lucene.util.LuceneTestCase;
 import org.apache.lucene.util.LuceneTestCase.SuppressSysoutChecks;
 
-import conf.ConfLoader;
-
 /** Test very simply that perf tasks are parses as expected. */
 @SuppressSysoutChecks(bugUrl = "very noisy")
 public class TestPerfTasksParse extends LuceneTestCase {
@@ -114,7 +112,7 @@ public class TestPerfTasksParse extends LuceneTestCase {
   public void testParseExamples() throws Exception {
     // hackedy-hack-hack
     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")) {
       for (Path path : stream) {
         Config config = new Config(Files.newBufferedReader(path, StandardCharsets.UTF_8));