jdk/src/share/classes/com/sun/java/util/jar/pack/ConstantPool.java
changeset 7803 56bc97d69d93
parent 7795 98021fc612af
child 10115 eb08d08c7ef7
equal deleted inserted replaced
7802:74f2ee2b62ba 7803:56bc97d69d93
  1135      */
  1135      */
  1136     public static
  1136     public static
  1137     void completeReferencesIn(Set<Entry> cpRefs, boolean flattenSigs) {
  1137     void completeReferencesIn(Set<Entry> cpRefs, boolean flattenSigs) {
  1138         cpRefs.remove(null);
  1138         cpRefs.remove(null);
  1139         for (ListIterator<Entry> work =
  1139         for (ListIterator<Entry> work =
  1140                  new ArrayList<Entry>(cpRefs).listIterator(cpRefs.size());
  1140                  new ArrayList<>(cpRefs).listIterator(cpRefs.size());
  1141              work.hasPrevious(); ) {
  1141              work.hasPrevious(); ) {
  1142             Entry e = work.previous();
  1142             Entry e = work.previous();
  1143             work.remove();          // pop stack
  1143             work.remove();          // pop stack
  1144             assert(e != null);
  1144             assert(e != null);
  1145             if (flattenSigs && e.tag == CONSTANT_Signature) {
  1145             if (flattenSigs && e.tag == CONSTANT_Signature) {