Changeset 4109


Ignore:
Timestamp:
Jan 30, 2008, 1:01:06 PM (15 years ago)
Author:
Martin Svensson
Message:

References #894 Allow 0 as a block number in BlockInfo?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/BlockInfo.java

    r3679 r4109  
    7070 
    7171  /**
    72     Create anew block info using meta coordinates.
    73     @param block The block number which must be greater than 0
     72    Create a new block info using meta coordinates.
     73    @param block The block number which must be greater or equal than 0
    7474    @param metaGridX The row or x meta coordinate, use 0 if unknown
    7575    @param metaGridY The column or y meta coordinate, use 0 if unknown
     
    7979    throws InvalidDataException
    8080  {
    81     if (block <= 0) throw new NumberOutOfRangeException("block", block, 1, false);
     81    if (block < 0) throw new NumberOutOfRangeException("block", block, 0, false);
    8282    this.block = block;
    8383    this.metaGridX = metaGridX;
Note: See TracChangeset for help on using the changeset viewer.