lucene-pylucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r1759174 - in /lucene/pylucene/trunk: ./ java/org/apache/pylucene/analysis/ java/org/apache/pylucene/index/ java/org/apache/pylucene/queryparser/classic/ java/org/apache/pylucene/search/ java/org/apache/pylucene/search/highlight/ java/org/a...
Date Sun, 04 Sep 2016 12:02:21 GMT
Author: vajda
Date: Sun Sep  4 12:02:21 2016
New Revision: 1759174

URL: http://svn.apache.org/viewvc?rev=1759174&view=rev
Log:
added @Overrides in extension classes

Modified:
    lucene/pylucene/trunk/Makefile
    lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonAnalyzer.java
    lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonFilteringTokenFilter.java
    lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenFilter.java
    lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenStream.java
    lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenizer.java
    lucene/pylucene/trunk/java/org/apache/pylucene/index/PythonIndexDeletionPolicy.java
    lucene/pylucene/trunk/java/org/apache/pylucene/queryparser/classic/PythonMultiFieldQueryParser.java
    lucene/pylucene/trunk/java/org/apache/pylucene/queryparser/classic/PythonQueryParser.java
    lucene/pylucene/trunk/java/org/apache/pylucene/search/PythonSimpleCollector.java
    lucene/pylucene/trunk/java/org/apache/pylucene/search/highlight/PythonFormatter.java
    lucene/pylucene/trunk/java/org/apache/pylucene/search/highlight/PythonFragmenter.java
    lucene/pylucene/trunk/java/org/apache/pylucene/search/similarities/PythonClassicSimilarity.java
    lucene/pylucene/trunk/java/org/apache/pylucene/search/spans/PythonSpanCollector.java
    lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonDirectory.java
    lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonIndexInput.java
    lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonIndexOutput.java
    lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonLock.java
    lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonLockFactory.java
    lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttributeImpl.java
    lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonComparable.java
    lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonIterator.java
    lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonList.java
    lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonListIterator.java
    lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonSet.java
    lucene/pylucene/trunk/jcc/setup.py

Modified: lucene/pylucene/trunk/Makefile
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/Makefile?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/Makefile (original)
+++ lucene/pylucene/trunk/Makefile Sun Sep  4 12:02:21 2016
@@ -45,11 +45,11 @@ LUCENE=$(LUCENE_SRC)/lucene
 #
 
 # Mac OS X 10.9 (64-bit Python 2.7, Java 1.8)
-#PREFIX_PYTHON=/Users/vajda/apache/pylucene/_install
-#ANT=/Users/vajda/tmp/apache-ant-1.9.3/bin/ant
-#PYTHON=$(PREFIX_PYTHON)/bin/python
-#JCC=$(PYTHON) -m jcc.__main__ --shared --arch x86_64
-#NUM_FILES=8
+PREFIX_PYTHON=/Users/vajda/apache/pylucene/_install
+ANT=/Users/vajda/tmp/apache-ant-1.9.3/bin/ant
+PYTHON=$(PREFIX_PYTHON)/bin/python
+JCC=$(PYTHON) -m jcc.__main__ --shared --arch x86_64
+NUM_FILES=8
 
 # Mac OS X 10.5 (32-bit Python 2.5, Java 1.5)
 #PREFIX_PYTHON=/usr
@@ -68,11 +68,11 @@ LUCENE=$(LUCENE_SRC)/lucene
 # Linux     (Debian Jessie 64-bit, Python 2.7.9, Oracle Java 1.8
 # Be sure to also set JDK['linux2'] in jcc's setup.py to the JAVA_HOME value
 # used below for ANT (and rebuild jcc after changing it).
-PREFIX_PYTHON=/opt/apache/pylucene/_install
-ANT=JAVA_HOME=/usr/lib/jvm/java-8-oracle /usr/bin/ant
-PYTHON=$(PREFIX_PYTHON)/bin/python
-JCC=$(PYTHON) -m jcc --shared
-NUM_FILES=8
+#PREFIX_PYTHON=/opt/apache/pylucene/_install
+#ANT=JAVA_HOME=/usr/lib/jvm/java-8-oracle /usr/bin/ant
+#PYTHON=$(PREFIX_PYTHON)/bin/python
+#JCC=$(PYTHON) -m jcc --shared
+#NUM_FILES=8
 
 # Linux     (Ubuntu 6.06, Python 2.4, Java 1.5, no setuptools)
 #PREFIX_PYTHON=/usr

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonAnalyzer.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonAnalyzer.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonAnalyzer.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonAnalyzer.java Sun Sep  4
12:02:21 2016
@@ -41,5 +41,7 @@ public class PythonAnalyzer extends Anal
     }
 
     public native void pythonDecRef();
+
+    @Override
     public native TokenStreamComponents createComponents(final String fieldName);
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonFilteringTokenFilter.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonFilteringTokenFilter.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonFilteringTokenFilter.java
(original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonFilteringTokenFilter.java
Sun Sep  4 12:02:21 2016
@@ -45,6 +45,7 @@ public class PythonFilteringTokenFilter
 
     public native void pythonDecRef();
 
+    @Override
     public native boolean accept()
         throws IOException;
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenFilter.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenFilter.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenFilter.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenFilter.java Sun Sep
 4 12:02:21 2016
@@ -46,6 +46,8 @@ public class PythonTokenFilter extends T
     }
 
     public native void pythonDecRef();
+
+    @Override
     public native boolean incrementToken()
         throws IOException;
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenStream.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenStream.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenStream.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenStream.java Sun Sep
 4 12:02:21 2016
@@ -45,12 +45,16 @@ public class PythonTokenStream extends T
 
     public native void pythonDecRef();
 
+    @Override
     public native boolean incrementToken()
         throws IOException;
+    @Override
     public native void end()
         throws IOException;
+    @Override
     public native void reset()
         throws IOException;
+    @Override
     public native void close()
         throws IOException;
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenizer.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenizer.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/analysis/PythonTokenizer.java Sun Sep 
4 12:02:21 2016
@@ -46,6 +46,7 @@ public class PythonTokenizer extends Tok
 
     public native void pythonDecRef();
 
+    @Override
     public native boolean incrementToken()
         throws IOException;
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/index/PythonIndexDeletionPolicy.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/index/PythonIndexDeletionPolicy.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/index/PythonIndexDeletionPolicy.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/index/PythonIndexDeletionPolicy.java Sun
Sep  4 12:02:21 2016
@@ -45,9 +45,11 @@ public class PythonIndexDeletionPolicy e
 
     public native void pythonDecRef();
 
+    @Override
     public native void onInit(List<? extends IndexCommit> commits)
         throws IOException;
 
+    @Override
     public native void onCommit(List<? extends IndexCommit> commits)
         throws IOException;
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/queryparser/classic/PythonMultiFieldQueryParser.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/queryparser/classic/PythonMultiFieldQueryParser.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/queryparser/classic/PythonMultiFieldQueryParser.java
(original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/queryparser/classic/PythonMultiFieldQueryParser.java
Sun Sep  4 12:02:21 2016
@@ -48,15 +48,22 @@ public class PythonMultiFieldQueryParser
     }
 
     public native void pythonDecRef();
-    public native Query getBooleanQuery(List clauses, boolean disableCoord);
 
+    @Override
+    public native Query getBooleanQuery(List clauses);
+
+    @Override
     public native Query getFuzzyQuery(String field, String termText,
                                       float minSimilarity);
+    @Override
     public native Query getPrefixQuery(String field, String termText);
+
+    @Override
     public native Query getRangeQuery(String field,
                                       String part1, String part2,
                                       boolean startInclusive,
                                       boolean endInclusive);
+    @Override
     public native Query getWildcardQuery(String field, String termText);
 
     public native Query getFieldQuery_quoted(String field, String queryText,

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/queryparser/classic/PythonQueryParser.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/queryparser/classic/PythonQueryParser.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/queryparser/classic/PythonQueryParser.java
(original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/queryparser/classic/PythonQueryParser.java
Sun Sep  4 12:02:21 2016
@@ -54,14 +54,24 @@ public class PythonQueryParser extends Q
     }
 
     public native void pythonDecRef();
+
+    @Override
     public native Query getBooleanQuery(List clauses);
+
+    @Override
     public native Query getFuzzyQuery(String field, String termText,
                                       float minSimilarity);
+
+    @Override
     public native Query getPrefixQuery(String field, String termText);
+
+    @Override
     public native Query getRangeQuery(String field,
                                       String part1, String part2,
                                       boolean startInclusive,
                                       boolean endInclusive);
+
+    @Override
     public native Query getWildcardQuery(String field, String termText);
 
     public native Query getFieldQuery_quoted(String field, String queryText,

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/search/PythonSimpleCollector.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/search/PythonSimpleCollector.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/search/PythonSimpleCollector.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/search/PythonSimpleCollector.java Sun Sep
 4 12:02:21 2016
@@ -60,9 +60,14 @@ public class PythonSimpleCollector exten
     }
 
     public native void pythonDecRef();
+
     public native void collect(int doc, float score)
         throws IOException;
+
+    @Override
     public native void doSetNextReader(LeafReaderContext context)
         throws IOException;
+
+    @Override
     public native boolean needsScores();
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/search/highlight/PythonFormatter.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/search/highlight/PythonFormatter.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/search/highlight/PythonFormatter.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/search/highlight/PythonFormatter.java Sun
Sep  4 12:02:21 2016
@@ -43,6 +43,8 @@ public class PythonFormatter implements
     }
 
     public native void pythonDecRef();
+
+    @Override
     public native String highlightTerm(String originalText,
                                        TokenGroup tokenGroup);
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/search/highlight/PythonFragmenter.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/search/highlight/PythonFragmenter.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/search/highlight/PythonFragmenter.java
(original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/search/highlight/PythonFragmenter.java
Sun Sep  4 12:02:21 2016
@@ -42,6 +42,9 @@ public class PythonFragmenter implements
     }
 
     public native void pythonDecRef();
+
+    @Override
     public native boolean isNewFragment();
+    @Override
     public native void start(String originalText, TokenStream tokenStream);
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/search/similarities/PythonClassicSimilarity.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/search/similarities/PythonClassicSimilarity.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/search/similarities/PythonClassicSimilarity.java
(original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/search/similarities/PythonClassicSimilarity.java
Sun Sep  4 12:02:21 2016
@@ -47,13 +47,19 @@ public class PythonClassicSimilarity ext
 
     public native void pythonDecRef();
 
+    @Override
     public native float queryNorm(float sumOfSquaredWeights);
+    @Override
     public native float coord(int overlap, int maxOverlap);
+    @Override
     public native float lengthNorm(FieldInvertState state);
+    @Override
     public native float tf(float freq);
+    @Override
     public native float sloppyFreq(int distance);
+    @Override
     public native float idf(long docFreq, long numDocs);
-
+    @Override
     public native Explanation idfExplain(CollectionStatistics collectionStats,
                                          TermStatistics[] stats);
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/search/spans/PythonSpanCollector.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/search/spans/PythonSpanCollector.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/search/spans/PythonSpanCollector.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/search/spans/PythonSpanCollector.java Sun
Sep  4 12:02:21 2016
@@ -48,9 +48,11 @@ public class PythonSpanCollector impleme
 
     public native void pythonDecRef();
 
+    @Override
     public native void collectLeaf(PostingsEnum postings, int position,
                                    Term term)
         throws IOException;
 
+    @Override
     public native void reset();
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonDirectory.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonDirectory.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonDirectory.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonDirectory.java Sun Sep  4 12:02:21
2016
@@ -49,6 +49,7 @@ public class PythonDirectory extends Dir
         pythonDecRef();
     }
 
+    @Override
     public void sync(Collection<String> names)
         throws IOException
     {
@@ -56,28 +57,39 @@ public class PythonDirectory extends Dir
             sync(name);
     }
 
+    public native void sync(String name)
+        throws IOException;
+
     public native void pythonDecRef();
 
+    @Override
     public native void close()
         throws IOException;
+    @Override
     public native IndexOutput createOutput(String name, IOContext context)
         throws IOException;
+    @Override
     public native IndexOutput createTempOutput(String prefix, String suffix,
                                                IOContext context)
         throws IOException;
+    @Override
     public native void deleteFile(String name)
         throws IOException;
+    @Override
     public native long fileLength(String name)
         throws IOException;
+    @Override
     public native String[] listAll()
         throws IOException;
+    @Override
     public native IndexInput openInput(String name, IOContext context)
         throws IOException;
-    public native void sync(String name)
-        throws IOException;
+    @Override
     public native void rename(String source, String dest)
         throws IOException;
+    @Override
     public native void syncMetaData()
         throws IOException;
+    @Override
     public native Lock obtainLock(String name);
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonIndexInput.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonIndexInput.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonIndexInput.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonIndexInput.java Sun Sep  4
12:02:21 2016
@@ -56,15 +56,21 @@ public class PythonIndexInput extends Bu
 
     public native void pythonDecRef();
 
+    @Override
     public native PythonIndexInput clone();
+    @Override
     public native long length();
+    @Override
     public native void close()
         throws IOException;
-    public native byte[] readInternal(int length, long pos)
-        throws IOException;
+    @Override
     public native void seekInternal(long pos)
         throws IOException;
 
+    public native byte[] readInternal(int length, long pos)
+        throws IOException;
+
+    @Override
     protected void readInternal(byte[] b, int offset, int length)
         throws IOException
     {

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonIndexOutput.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonIndexOutput.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonIndexOutput.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonIndexOutput.java Sun Sep  4
12:02:21 2016
@@ -45,20 +45,22 @@ public class PythonIndexOutput extends I
 
     public native void pythonDecRef();
 
-    public void flush()
-        throws IOException
-    {}
-
+    @Override
     public native long getFilePointer();
+    @Override
     public native long getChecksum()
         throws IOException;
+    @Override
     public native void close()
         throws IOException;
+    @Override
     public native void writeByte(byte b)
         throws IOException;
+
     public native void writeBytes(byte[] bytes)
         throws IOException;
 
+    @Override
     public void writeBytes(byte[] bytes, int offset, int length)
         throws IOException
     {

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonLock.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonLock.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonLock.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonLock.java Sun Sep  4 12:02:21
2016
@@ -44,7 +44,10 @@ public class PythonLock extends Lock {
 
     public native void pythonDecRef();
 
+    @Override
     public native void ensureValid()
         throws IOException;
+
+    @Override
     public native void close();
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonLockFactory.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonLockFactory.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonLockFactory.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/store/PythonLockFactory.java Sun Sep  4
12:02:21 2016
@@ -47,6 +47,7 @@ public class PythonLockFactory extends L
 
     public native void pythonDecRef();
 
+    @Override
     public native Lock obtainLock(Directory dir, String lockName)
         throws IOException;
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttributeImpl.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttributeImpl.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttributeImpl.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttributeImpl.java Sun Sep 
4 12:02:21 2016
@@ -41,10 +41,16 @@ public class PythonAttributeImpl extends
     }
 
     public native void pythonDecRef();
+
+    @Override
     public native void clear();
+    @Override
     public native void copyTo(AttributeImpl target);
+    @Override
     public native void reflectWith(AttributeReflector reflector);
 
+    @Override
     public native boolean equals(Object obj);
+    @Override
     public native int hashCode();
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonComparable.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonComparable.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonComparable.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonComparable.java Sun Sep  4 12:02:21
2016
@@ -40,5 +40,7 @@ public class PythonComparable implements
     }
 
     public native void pythonDecRef();
+
+    @Override
     public native int compareTo(Object o);
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonIterator.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonIterator.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonIterator.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonIterator.java Sun Sep  4 12:02:21
2016
@@ -43,9 +43,12 @@ public class PythonIterator implements I
 
     public native void pythonDecRef();
 
+    @Override
     public native boolean hasNext();
+    @Override
     public native Object next();
     
+    @Override
     public void remove()
     {
         throw new UnsupportedOperationException();

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonList.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonList.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonList.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonList.java Sun Sep  4 12:02:21
2016
@@ -46,28 +46,43 @@ public class PythonList implements List
 
     public native void pythonDecRef();
   
+    @Override
     public native boolean add(Object obj);
+    @Override
     public native void add(int index, Object obj);
+    @Override
     public native boolean addAll(Collection c);
+    @Override
     public native boolean addAll(int index, Collection c);
+    @Override
     public native void clear();
+    @Override
     public native boolean contains(Object obj);
+    @Override
     public native boolean containsAll(Collection c);
+    @Override
     public native boolean equals(Object obj);
+    @Override
     public native Object get(int index);
     // public native int hashCode();
+    @Override
     public native int indexOf(Object obj);
+    @Override
     public native boolean isEmpty();
+    @Override
     public native Iterator iterator();
+    @Override
     public native int lastIndexOf(Object obj);
 
     public native ListIterator listIterator(int index); 
+    @Override
     public ListIterator listIterator()
     {
         return listIterator(0);
     }
 
     private native Object removeAt(int index);
+    @Override
     public Object remove(int index)
         throws IndexOutOfBoundsException
     { 
@@ -78,17 +93,23 @@ public class PythonList implements List
     }
     
     private native boolean removeObject(Object obj);
+    @Override
     public boolean remove(Object obj)
     {
         return removeObject(obj);
     }
     
+    @Override
     public native boolean removeAll(Collection c);
+    @Override
     public native boolean retainAll(Collection c);
+    @Override
     public native Object set(int index, Object obj);
+    @Override
     public native int size();
     
     private native List subListChecked(int fromIndex, int toIndex);     
+    @Override
     public List subList(int fromIndex, int toIndex) 
         throws IndexOutOfBoundsException, IllegalArgumentException
     { 
@@ -100,6 +121,7 @@ public class PythonList implements List
     
     public native Object[] toArray();
 
+    @Override
     public Object[] toArray(Object[] a)
     {
         Object[] array = toArray();

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonListIterator.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonListIterator.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonListIterator.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonListIterator.java Sun Sep  4
12:02:21 2016
@@ -18,13 +18,20 @@ package org.apache.pylucene.util;
 import java.util.ListIterator;
 
 public class PythonListIterator extends PythonIterator implements ListIterator {
+    @Override
     public native boolean hasPrevious();
+    @Override
     public native Object previous();
     
+    @Override
     public native int nextIndex();
+    @Override
     public native int previousIndex();
     
+    @Override
     public native void set(Object obj);    
+    @Override
     public native void add(Object obj);
+    @Override
     public native void remove();
 }

Modified: lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonSet.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonSet.java?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonSet.java (original)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonSet.java Sun Sep  4 12:02:21
2016
@@ -46,21 +46,34 @@ public class PythonSet implements Set {
 
     public native void pythonDecRef();
 
+    @Override
     public native boolean add(Object obj);
+    @Override
     public native boolean addAll(Collection c);
+    @Override
     public native void clear();
+    @Override
     public native boolean contains(Object obj);
+    @Override
     public native boolean containsAll(Collection c);
+    @Override
     public native boolean equals(Object obj);
+    @Override
     public native boolean isEmpty();
+    @Override
     public native Iterator iterator();
+    @Override
     public native boolean remove(Object obj);
+    @Override
     public native boolean removeAll(Collection c);
+    @Override
     public native boolean retainAll(Collection c);
+    @Override
     public native int size();
 
     public native Object[] toArray();
     
+    @Override
     public Object[] toArray(Object[] a)
     {
         Object[] array = toArray();

Modified: lucene/pylucene/trunk/jcc/setup.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/setup.py?rev=1759174&r1=1759173&r2=1759174&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/setup.py (original)
+++ lucene/pylucene/trunk/jcc/setup.py Sun Sep  4 12:02:21 2016
@@ -66,7 +66,7 @@ if 'JCC_JDK' in os.environ:
 
 if not JDK[platform]:
     raise RuntimeError('''
-                       
+
 Can't determine where the Java JDK has been installed on this machine.
 
 Please set the environment variable JCC_JDK to that location before
@@ -75,7 +75,7 @@ running setup.py.
 
 elif not os.path.isdir(JDK[platform]):
     raise RuntimeError('''
-                       
+
 Java JDK directory '%s' does not exist.
 
 Please set the environment variable JCC_JDK to the correct location before



Mime
View raw message