Apache Lucene open-source search software
add/delete/move/remove some nocommits
Robert Muiree55976e9d8e
diff --git a/lucene/core/src/java/org/apache/lucene/codecs/Codec.java b/lucene/core/src/java/org/apache/lucene/codecs/Codec.javaindex 67c932135db..6437e632c7a 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/Codec.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/Codec.java@@ -69,10 +69,7 @@ public abstract class Codec implements NamedSPILoader.NamedSPI {public abstract DocValuesFormat docValuesFormat();/** Encodes/decodes streaming docvalues */- public SimpleDocValuesFormat simpleDocValuesFormat() {- // nocommit make this abstract- return null;- }+ public abstract SimpleDocValuesFormat simpleDocValuesFormat();/** Encodes/decodes stored fields */public abstract StoredFieldsFormat storedFieldsFormat();diff --git a/lucene/core/src/java/org/apache/lucene/codecs/SimpleDocValuesFormat.java b/lucene/core/src/java/org/apache/lucene/codecs/SimpleDocValuesFormat.javaindex b051ecd01ed..e60ab95df42 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/SimpleDocValuesFormat.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/SimpleDocValuesFormat.java@@ -43,7 +43,6 @@ public abstract class SimpleDocValuesFormat implements NamedSPILoader.NamedSPI {* SPI mechanism (registered in META-INF/ of your jar file, etc).* @param name must be all ascii alphanumeric, and less than 128 characters in length.*/- // nocommit: @code -> @linkprotected SimpleDocValuesFormat(String name) {NamedSPILoader.checkServiceName(name);this.name = name;@@ -51,7 +50,6 @@ public abstract class SimpleDocValuesFormat implements NamedSPILoader.NamedSPI {public abstract SimpleDVConsumer fieldsConsumer(SegmentWriteState state) throws IOException;- // nocommit do this:public abstract SimpleDVProducer fieldsProducer(SegmentReadState state) throws IOException;@Overridediff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40Codec.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40Codec.javaindex a0d66af61d0..8d3100a29e6 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40Codec.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40Codec.java@@ -25,6 +25,7 @@ import org.apache.lucene.codecs.LiveDocsFormat;import org.apache.lucene.codecs.NormsFormat;import org.apache.lucene.codecs.PostingsFormat;import org.apache.lucene.codecs.SegmentInfoFormat;+import org.apache.lucene.codecs.SimpleDocValuesFormat;import org.apache.lucene.codecs.StoredFieldsFormat;import org.apache.lucene.codecs.TermVectorsFormat;import org.apache.lucene.codecs.perfield.PerFieldPostingsFormat;@@ -98,6 +99,11 @@ public final class Lucene40Codec extends Codec {return normsFormat;}+ @Override+ public SimpleDocValuesFormat simpleDocValuesFormat() {+ return null; // nocommit+ }+@Overridepublic final LiveDocsFormat liveDocsFormat() {return liveDocsFormat;diff --git a/lucene/core/src/java/org/apache/lucene/util/packed/PackedInts.java b/lucene/core/src/java/org/apache/lucene/util/packed/PackedInts.javaindex f1b0e5bf2c6..6cca4e4c322 100644--- a/lucene/core/src/java/org/apache/lucene/util/packed/PackedInts.java+++ b/lucene/core/src/java/org/apache/lucene/util/packed/PackedInts.java@@ -1152,6 +1152,7 @@ public class PackedInts {this.version = version;}+ // nocommitpublic int getValueCount() {return valueCount;}diff --git a/lucene/core/src/test/org/apache/lucene/TestDemoDocValue.java b/lucene/core/src/test/org/apache/lucene/TestDemoDocValue.javaindex 9fd07741ab0..57700f099a9 100644--- a/lucene/core/src/test/org/apache/lucene/TestDemoDocValue.java+++ b/lucene/core/src/test/org/apache/lucene/TestDemoDocValue.java@@ -494,11 +494,6 @@ public class TestDemoDocValue extends LuceneTestCase {directory.close();}- // nocommit tests should fail if a codec makes the [easy]- // mistake of NOT opening all files when SimpleDVProducer- // is created ... frist cut of Lucene41 had this bug but- // no tests failed!?-public void testDemoSortedBytes() throws IOException {Analyzer analyzer = new MockAnalyzer(random());diff --git a/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestFailIfDirectoryNotClosed.java b/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestFailIfDirectoryNotClosed.javaindex 2518835b7a3..9f7167b938c 100644--- a/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestFailIfDirectoryNotClosed.java+++ b/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestFailIfDirectoryNotClosed.java@@ -25,8 +25,7 @@ import org.junit.runner.Result;public class TestFailIfDirectoryNotClosed extends WithNestedTests {public TestFailIfDirectoryNotClosed() {- // nocommit true- super(false);+ super(true);}public static class Nested1 extends WithNestedTests.AbstractNestedTest {