Shortening the lines to fit into 80 chars code snippets
authorJaroslav Tulach <jtulach@netbeans.org>
Tue, 01 Mar 2011 21:32:09 +0100
changeset 3695171d544edeb
parent 368 e1089d423881
child 370 b93eec0e207a
Shortening the lines to fit into 80 chars code snippets
samples/cloneproblem/src/org/apidesign/cloneproblem/Interval.java
     1.1 --- a/samples/cloneproblem/src/org/apidesign/cloneproblem/Interval.java	Tue Mar 01 21:28:39 2011 +0100
     1.2 +++ b/samples/cloneproblem/src/org/apidesign/cloneproblem/Interval.java	Tue Mar 01 21:32:09 2011 +0100
     1.3 @@ -16,7 +16,8 @@
     1.4       * 
     1.5       * @param from the 'sooner' date
     1.6       * @param to the 'later' date
     1.7 -     * @throws IllegalArgumentException if <code>from</code> is not less then <code>to</code>
     1.8 +     * @throws IllegalArgumentException 
     1.9 +     *      if <code>from</code> is not less then <code>to</code>
    1.10       */
    1.11      public Interval(Date from, Date to) {
    1.12          if (from == null) {
    1.13 @@ -29,7 +30,9 @@
    1.14          this.from = (Date) from.clone();
    1.15          this.to = (Date)to.clone();
    1.16          if (from.compareTo(to) >= 0) {
    1.17 -            throw new IllegalArgumentException("'from' must be lower than 'to'!");
    1.18 +            throw new IllegalArgumentException(
    1.19 +                "'from' must be lower than 'to'!"
    1.20 +            );
    1.21          }
    1.22      }
    1.23