db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer/conversions StringVector2VarcharFieldConversion.java
Date Sun, 19 Jan 2003 12:05:29 GMT
brj         2003/01/19 04:05:29

  Modified:    src/java/org/apache/ojb/broker/accesslayer/conversions
                        StringVector2VarcharFieldConversion.java
  Log:
  access static fields in a static way
  
  Revision  Changes    Path
  1.2       +5 -5      jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer/conversions/StringVector2VarcharFieldConversion.java
  
  Index: StringVector2VarcharFieldConversion.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer/conversions/StringVector2VarcharFieldConversion.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StringVector2VarcharFieldConversion.java	18 Dec 2002 20:56:20 -0000	1.1
  +++ StringVector2VarcharFieldConversion.java	19 Jan 2003 12:05:29 -0000	1.2
  @@ -84,7 +84,7 @@
   
           if (obj == null)
           {
  -            return this.NULLVALUE;
  +            return NULLVALUE;
           }
   
           if (!(obj instanceof Vector))
  @@ -96,14 +96,14 @@
           Vector v = (Vector) obj;
           if (v.size() == 0)
           {
  -            return this.NULLVALUE;
  +            return NULLVALUE;
           }
   
           StringBuffer result = new StringBuffer();
           for (int i = 0; i < v.size(); i++)
           {
               String newSt = v.get(i).toString();
  -            if (newSt.indexOf(this.SEPARATOR) >= 0)
  +            if (newSt.indexOf(SEPARATOR) >= 0)
               {
                   throw new ConversionException(
                       "An entry in the Vector contains the forbidden "
  @@ -124,11 +124,11 @@
           {
               return null;
           }
  -        if (obj.toString().equals(this.NULLVALUE))
  +        if (obj.toString().equals(NULLVALUE))
           {
               return null;
           }
  -        if (obj.toString().equals(this.EMPTYCOLLEC))
  +        if (obj.toString().equals(EMPTYCOLLEC))
           {
               return new Vector();
           }
  
  
  

Mime
View raw message