You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2020/09/07 00:51:28 UTC

[lucene-solr] 02/02: unused import

This is an automated email from the ASF dual-hosted git repository.

noble pushed a commit to branch jira/solr14827
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 0cfa31d498a514f44c0aefc08fa8805910fa7cf8
Author: noblepaul <no...@gmail.com>
AuthorDate: Mon Sep 7 10:50:31 2020 +1000

    unused import
---
 solr/core/src/java/org/apache/solr/schema/IndexSchema.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java b/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
index 53d3a80..0f59c5b 100644
--- a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
+++ b/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
@@ -37,7 +37,6 @@ import java.util.Set;
 import java.util.SortedMap;
 import java.util.TreeMap;
 import java.util.TreeSet;
-import java.util.concurrent.atomic.AtomicLong;
 import java.util.function.Function;
 import java.util.regex.Pattern;
 import java.util.stream.Collectors;
@@ -169,7 +168,7 @@ public class IndexSchema {
    * directives that target them.
    */
   protected Map<SchemaField, Integer> copyFieldTargetCounts = new HashMap<>();
-  static AtomicLong totalSchemaLoadTime = new AtomicLong();
+//  static AtomicLong totalSchemaLoadTime = new AtomicLong();
 
 
   /**
@@ -182,9 +181,9 @@ public class IndexSchema {
 
     this.resourceName = Objects.requireNonNull(name);
     try {
-      long start = System.currentTimeMillis();
+//      long start = System.currentTimeMillis();
       readSchema(is);
-      System.out.println("schema-load-time : "+ totalSchemaLoadTime.addAndGet (System.currentTimeMillis() - start));
+//      System.out.println("schema-load-time : "+ totalSchemaLoadTime.addAndGet (System.currentTimeMillis() - start));
       loader.inform(loader);
     } catch (IOException e) {
       throw new RuntimeException(e);