src/share/classes/com/sun/tools/javac/util/List.java

changeset 816
7c537f4298fb
parent 798
4868a36f6fd8
child 1347
1408af4cd8b0
     1.1 --- a/src/share/classes/com/sun/tools/javac/util/List.java	Mon Jan 10 14:57:59 2011 -0800
     1.2 +++ b/src/share/classes/com/sun/tools/javac/util/List.java	Mon Jan 10 15:08:31 2011 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -184,7 +184,7 @@
    1.11          // return this.prependList(xs.tail).prepend(xs.head);
    1.12          List<A> result = this;
    1.13          List<A> rev = xs.reverse();
    1.14 -        assert rev != xs;
    1.15 +        Assert.check(rev != xs);
    1.16          // since xs.reverse() returned a new list, we can reuse the
    1.17          // individual List objects, instead of allocating new ones.
    1.18          while (rev.nonEmpty()) {

mercurial