You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by br...@apache.org on 2004/02/27 21:38:08 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/odmg/collections DListEntry_2.java
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