hg: jdk8/tl/langtools: 8004504: ListBuffer could reuse List.nil() as the sentinel element

jonathan.gibbons at oracle.com jonathan.gibbons at oracle.com
Wed Dec 12 14:42:06 PST 2012


Changeset: 170e486632d9
Author:    jlahoda
Date:      2012-12-12 20:26 +0100
URL:       http://hg.openjdk.java.net/jdk8/tl/langtools/rev/170e486632d9

8004504: ListBuffer could reuse List.nil() as the sentinel element
Summary: ListBuffer.last now points to the last elements with client data, or null if none.
Reviewed-by: jjg, mcimadamore

! src/share/classes/com/sun/tools/javac/jvm/Code.java
! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
! src/share/classes/com/sun/tools/javac/util/ListBuffer.java
+ test/tools/javac/util/list/ListBufferTest.java



More information about the security-dev mailing list