LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Sponsors
  • Mirrors
  • Logos
  • Contact us
  •  
    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: Mon Jul 30 23:58:11 CEST 2007
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/07/07 30:23:58

    Modified: jop/java/target/src/common/com/jopdesign/io
    IOMinFactory.java
    Log:
    use static initializer for singleton generation


    Revision Changes Path
    1.2 jop/java/target/src/common/com/jopdesign/io/IOMinFactory.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/common/com/jopdesign/io/IOMinFactory.java.diff?r1=1.1&r2=1.2

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

    Index: IOMinFactory.java
    ===================================================================
    RCS file: /cvsroot/martin/jop/java/target/src/common/com/jopdesign/io/IOMinFactory.java,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- IOMinFactory.java 25 Jul 2007 15:23:39 -0000 1.1
    +++ IOMinFactory.java 30 Jul 2007 21:58:11 -0000 1.2
    @@ -6,14 +6,10 @@
    mypp = (ParallelPort) PPmagic(PP_ADDRESS);
    };

    - static IOMinFactory single;
    + static IOMinFactory single = new IOMinFactory();;

    public static IOMinFactory getIOMinFactory() {

    - // TODO: get the shit clinit with new done!!!!
    - if (single==null) {
    - single = new IOMinFactory();
    - }
    return single;
    }




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