[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ojb-dev
Subject:    cvs commit: db-ojb/src/java/org/apache/ojb/odmg/collections DListEntry_2.java
From:       brj () apache ! org
Date:       2004-02-27 20:38:08
Message-ID: 20040227203808.32439.qmail () minotaur ! apache ! org
[Download RAW message or body]

brj         2004/02/27 12:38:08

  Modified:    src/java/org/apache/ojb/odmg/collections DListEntry_2.java
  Log:
  fixed minor problems detected by findbugs
  
  Revision  Changes    Path
  1.6       +9 -6      db-ojb/src/java/org/apache/ojb/odmg/collections/DListEntry_2.java
  
  Index: DListEntry_2.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/collections/DListEntry_2.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DListEntry_2.java	7 Jan 2004 19:11:11 -0000	1.5
  +++ DListEntry_2.java	27 Feb 2004 20:38:08 -0000	1.6
  @@ -120,12 +120,15 @@
       /**
        * Standard way to instantiate new entries
        */
  -    public DListEntry_2(DListImpl_2 dList, Object theObject)
  +    public DListEntry_2(DListImpl_2 theDList, Object theObject)
       {
  -        this.dList = dList;
  -        this.pbKey = dList != null ? dList.getPBKey() : null;
  -        this.dlistId = dList.getId();
  -        this.position = dList.size();
  +        this.dList = theDList;
  +        if (dList != null)
  +        {
  +            this.pbKey = dList.getPBKey();
  +            this.dlistId = dList.getId();
  +            this.position = dList.size();           
  +        }
           this.realSubject = theObject;
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic