LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Tue Oct 31 18:20:40 CET 2006
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/06/10 31:18:20

    Modified: jop/java/target/src/jdk11/java/util Hashtable.java
    Log:
    fixed toString


    Revision Changes Path
    1.2 jop/java/target/src/jdk11/java/util/Hashtable.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk11/java/util/Hashtable.java.diff?r1=1.1&r2=1.2

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: Hashtable.java
    ===================================================================
    RCS file: /cvsroot/nelkamp/jop/java/target/src/jdk11/java/util/Hashtable.java,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- Hashtable.java 26 Oct 2006 00:48:58 -0000 1.1
    +++ Hashtable.java 31 Oct 2006 17:20:40 -0000 1.2
    @@ -473,15 +473,13 @@
    // Since we are already synchronized, and entrySet().iterator()
    // would repeatedly re-lock/release the monitor, we directly use the
    // unsynchronized EntryIterator instead.
    + //Iterator entries = new EntryIterator();
    Iterator entries = new EntryIterator();
    - StringBuffer r = new StringBuffer("{\r\n");
    + StringBuffer r = new StringBuffer("{");
    for (int pos = size; pos > 0; pos--) {
    -
    - Object obj = new Object();
    - r.append(obj);
    + r.append(entries.next());
    if (pos > 1)
    r.append(", ");
    - r.append("\r\n");
    }
    r.append("}");
    return r.toString();



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.