Object cannot be changed to NUMBER because the static function. Do you
prefer an instance function ?


On Mon, May 6, 2013 at 8:58 PM, Joel Costigliola
<notifications@github.com>wrote:

> In src/main/java/org/assertj/core/internal/Numbers.java:
>
> > +    if (checkLowerBoundaryRange && checkUpperBoundaryRange) return;
> > +    throw failures.failure(info, shouldBeBetween(actual, start, end, inclusiveStart, inclusiveEnd, comparisonStrategy));
> > +  }
> > +
> > +  /**
> > +   * used to check that the start of range date to compare actual date to is not null, in that case throws a
> > +   * {@link NullPointerException} with an explicit message
> > +   * @param start the start date to check
> > +   * @throws a {@link NullPointerException} with an explicit message if the given start value is null
> > +   */
> > +  private static void startParameterIsNotNull(Object start) {
> > +    if (start == null) throw new NullPointerException("The start range to compare actual with should not be null");
> > +  }
> > +
> > +  /**
> > +   * used to check that the end of range to compare actual date to is not null, in that case throws a
>
> change date to number and parameter type from Object to NUMBER
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/joel-costigliola/assertj-core/pull/53/files#r4099170>
> .
>