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/util SqlHelper.java
Date Sun, 05 Jan 2003 09:26:07 GMT
brj         2003/01/05 01:26:07

  Modified:    src/java/org/apache/ojb/broker/util SqlHelper.java
  Log:
  consistent handling of null path
  
  Revision  Changes    Path
  1.3       +3 -12     jakarta-ojb/src/java/org/apache/ojb/broker/util/SqlHelper.java
  
  Index: SqlHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/util/SqlHelper.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SqlHelper.java	5 Jan 2003 09:16:22 -0000	1.2
  +++ SqlHelper.java	5 Jan 2003 09:26:07 -0000	1.3
  @@ -83,16 +83,7 @@
        */
       public static String cleanPath(String aPath)
       {
  -        PathInfo p = splitPath(aPath);
  -        
  -        if (p != null)
  -        {
  -            return p.column;
  -        }
  -        else
  -        {
  -            return null;
  -        }
  +        return splitPath(aPath).column;
       }    
       
   
  @@ -115,7 +106,7 @@
   
           if (aPath == null)
           {
  -            return null;
  +            return new PathInfo(null, null);
           }
   
           braceBegin = aPath.indexOf("(");
  
  
  

Mime
View raw message