You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2011/03/31 15:51:34 UTC

svn commit: r1087299 - in /maven/indexer/trunk/indexer-core/src/main/java/org/apache/maven/index: AbstractSearchRequest.java IteratorSearchResponse.java

Author: cstamas
Date: Thu Mar 31 13:51:33 2011
New Revision: 1087299

URL: http://svn.apache.org/viewvc?rev=1087299&view=rev
Log:
Returning mutilated method signatures.

Modified:
    maven/indexer/trunk/indexer-core/src/main/java/org/apache/maven/index/AbstractSearchRequest.java
    maven/indexer/trunk/indexer-core/src/main/java/org/apache/maven/index/IteratorSearchResponse.java

Modified: maven/indexer/trunk/indexer-core/src/main/java/org/apache/maven/index/AbstractSearchRequest.java
URL: http://svn.apache.org/viewvc/maven/indexer/trunk/indexer-core/src/main/java/org/apache/maven/index/AbstractSearchRequest.java?rev=1087299&r1=1087298&r2=1087299&view=diff
==============================================================================
--- maven/indexer/trunk/indexer-core/src/main/java/org/apache/maven/index/AbstractSearchRequest.java (original)
+++ maven/indexer/trunk/indexer-core/src/main/java/org/apache/maven/index/AbstractSearchRequest.java Thu Mar 31 13:51:33 2011
@@ -99,19 +99,19 @@ public class AbstractSearchRequest
      * @deprecated always returns false, since 4.1.0 there is no notion of hit limit
      * @see http://jira.codehaus.org/browse/MINDEXER-14
      */
-    public boolean _isHitLimited()
+    public boolean isHitLimited()
     {
         return false;
     }
 
     /**
-     * Gets the hit limit. Since 4.1.0 does nothing, always returns 0.
+     * Gets the hit limit. Since 4.1.0 does nothing, always returns -1 (was "no hit limit").
      * 
      * @return
-     * @deprecated always returns false, since 4.1.0 there is no notion of hit limit
+     * @deprecated always returns -1 (no hit limit), since 4.1.0 there is no notion of hit limit
      * @see http://jira.codehaus.org/browse/MINDEXER-14
      */
-    public int _getResultHitLimit()
+    public int getResultHitLimit()
     {
         return -1;
     }
@@ -120,10 +120,10 @@ public class AbstractSearchRequest
      * Sets the hit limit. Since 4.1.0 does nothing.
      * 
      * @param resultHitLimit
-     * @deprecated always returns false, since 4.1.0 there is no notion of hit limit
+     * @deprecated does nothing, since 4.1.0 there is no notion of hit limit
      * @see http://jira.codehaus.org/browse/MINDEXER-14
      */
-    public void _setResultHitLimit( int resultHitLimit )
+    public void setResultHitLimit( int resultHitLimit )
     {
         // noop
     }

Modified: maven/indexer/trunk/indexer-core/src/main/java/org/apache/maven/index/IteratorSearchResponse.java
URL: http://svn.apache.org/viewvc/maven/indexer/trunk/indexer-core/src/main/java/org/apache/maven/index/IteratorSearchResponse.java?rev=1087299&r1=1087298&r2=1087299&view=diff
==============================================================================
--- maven/indexer/trunk/indexer-core/src/main/java/org/apache/maven/index/IteratorSearchResponse.java (original)
+++ maven/indexer/trunk/indexer-core/src/main/java/org/apache/maven/index/IteratorSearchResponse.java Thu Mar 31 13:51:33 2011
@@ -110,4 +110,11 @@ public class IteratorSearchResponse
     {
         return new IteratorSearchResponse( q, 0, EMPTY_ITERATOR_RESULT_SET );
     }
+
+    /**
+     * Empty search response.
+     * 
+     * @deprecated Use {@link #empty(Query)} instead.
+     */
+    public static final IteratorSearchResponse EMPTY_ITERATOR_SEARCH_RESPONSE = empty( null );
 }