mirror of https://github.com/apache/lucene.git
- Corrected the exception message.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a82881ed4d
commit
c769f13a2c
|
@ -122,7 +122,7 @@ public final class Token {
|
|||
public void setPositionIncrement(int positionIncrement) {
|
||||
if (positionIncrement < 0)
|
||||
throw new IllegalArgumentException
|
||||
("Increment must be positive: " + positionIncrement);
|
||||
("Increment must be zero or greater: " + positionIncrement);
|
||||
this.positionIncrement = positionIncrement;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue