Apache Lucene open-source search software
LUCENE-5969: fix TOODs and add missing license header
Robert Muire9000cb576b4
diff --git a/lucene/backward-codecs/src/java/org/apache/lucene/codecs/blocktree/Lucene40SegmentTermsEnum.java b/lucene/backward-codecs/src/java/org/apache/lucene/codecs/blocktree/Lucene40SegmentTermsEnum.javaindex 2396f4b67d0..c2b58a58072 100644--- a/lucene/backward-codecs/src/java/org/apache/lucene/codecs/blocktree/Lucene40SegmentTermsEnum.java+++ b/lucene/backward-codecs/src/java/org/apache/lucene/codecs/blocktree/Lucene40SegmentTermsEnum.java@@ -616,7 +616,7 @@ final class Lucene40SegmentTermsEnum extends TermsEnum {int cmp = 0;- // TOOD: we should write our vLong backwards (MSB+ // TODO: we should write our vLong backwards (MSB// first) to get better sharing from the FST// First compare up to valid seek frames:@@ -630,7 +630,7 @@ final class Lucene40SegmentTermsEnum extends TermsEnum {}arc = arcs[1+targetUpto];assert arc.label == (target.bytes[target.offset + targetUpto] & 0xFF): "arc.label=" + (char) arc.label + " targetLabel=" + (char) (target.bytes[target.offset + targetUpto] & 0xFF);- // TOOD: we could save the outputs in local+ // TODO: we could save the outputs in local// byte[][] instead of making new objs ever// seek; but, often the FST doesn't have any// shared bytes (but this could change if wediff --git a/lucene/backward-codecs/src/java/org/apache/lucene/codecs/lucene41/IntBlockTermState.java b/lucene/backward-codecs/src/java/org/apache/lucene/codecs/lucene41/IntBlockTermState.javaindex dc85d8fb176..b5add1e7ee7 100644--- a/lucene/backward-codecs/src/java/org/apache/lucene/codecs/lucene41/IntBlockTermState.java+++ b/lucene/backward-codecs/src/java/org/apache/lucene/codecs/lucene41/IntBlockTermState.java@@ -1,5 +1,22 @@package org.apache.lucene.codecs.lucene41;+/*+ * 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 org.apache.lucene.codecs.BlockTermState;import org.apache.lucene.index.TermState;diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/blocktreeords/OrdsSegmentTermsEnum.java b/lucene/codecs/src/java/org/apache/lucene/codecs/blocktreeords/OrdsSegmentTermsEnum.javaindex 87216d6d04b..75064c21ae4 100644--- a/lucene/codecs/src/java/org/apache/lucene/codecs/blocktreeords/OrdsSegmentTermsEnum.java+++ b/lucene/codecs/src/java/org/apache/lucene/codecs/blocktreeords/OrdsSegmentTermsEnum.java@@ -541,7 +541,7 @@ public final class OrdsSegmentTermsEnum extends TermsEnum {int cmp = 0;- // TOOD: we should write our vLong backwards (MSB+ // TODO: we should write our vLong backwards (MSB// first) to get better sharing from the FST// First compare up to valid seek frames:@@ -555,7 +555,7 @@ public final class OrdsSegmentTermsEnum extends TermsEnum {}arc = arcs[1+targetUpto];assert arc.label == (target.bytes[target.offset + targetUpto] & 0xFF): "arc.label=" + (char) arc.label + " targetLabel=" + (char) (target.bytes[target.offset + targetUpto] & 0xFF);- // TOOD: we could save the outputs in local+ // TODO: we could save the outputs in local// byte[][] instead of making new objs ever// seek; but, often the FST doesn't have any// shared bytes (but this could change if wediff --git a/lucene/core/src/java/org/apache/lucene/codecs/blocktree/SegmentTermsEnum.java b/lucene/core/src/java/org/apache/lucene/codecs/blocktree/SegmentTermsEnum.javaindex 32566deca6e..5e175bbabf5 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/blocktree/SegmentTermsEnum.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/blocktree/SegmentTermsEnum.java@@ -612,7 +612,7 @@ final class SegmentTermsEnum extends TermsEnum {int cmp = 0;- // TOOD: we should write our vLong backwards (MSB+ // TODO: we should write our vLong backwards (MSB// first) to get better sharing from the FST// First compare up to valid seek frames:@@ -626,7 +626,7 @@ final class SegmentTermsEnum extends TermsEnum {}arc = arcs[1+targetUpto];assert arc.label == (target.bytes[target.offset + targetUpto] & 0xFF): "arc.label=" + (char) arc.label + " targetLabel=" + (char) (target.bytes[target.offset + targetUpto] & 0xFF);- // TOOD: we could save the outputs in local+ // TODO: we could save the outputs in local// byte[][] instead of making new objs ever// seek; but, often the FST doesn't have any// shared bytes (but this could change if wediff --git a/lucene/sandbox/src/java/org/apache/lucene/codecs/idversion/IDVersionSegmentTermsEnum.java b/lucene/sandbox/src/java/org/apache/lucene/codecs/idversion/IDVersionSegmentTermsEnum.javaindex 49205461e59..36d2ba9012f 100644--- a/lucene/sandbox/src/java/org/apache/lucene/codecs/idversion/IDVersionSegmentTermsEnum.java+++ b/lucene/sandbox/src/java/org/apache/lucene/codecs/idversion/IDVersionSegmentTermsEnum.java@@ -631,7 +631,7 @@ public final class IDVersionSegmentTermsEnum extends TermsEnum {int cmp = 0;- // TOOD: we should write our vLong backwards (MSB+ // TODO: we should write our vLong backwards (MSB// first) to get better sharing from the FST// First compare up to valid seek frames:@@ -645,7 +645,7 @@ public final class IDVersionSegmentTermsEnum extends TermsEnum {}arc = arcs[1+targetUpto];assert arc.label == (target.bytes[target.offset + targetUpto] & 0xFF): "arc.label=" + (char) arc.label + " targetLabel=" + (char) (target.bytes[target.offset + targetUpto] & 0xFF);- // TOOD: we could save the outputs in local+ // TODO: we could save the outputs in local// byte[][] instead of making new objs ever// seek; but, often the FST doesn't have any// shared bytes (but this could change if we