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 2003/06/07 11:59:45 UTC

cvs commit: db-ojb/src/java/org/apache/ojb/broker PBStateEvent.java

brj         2003/06/07 02:59:45

  Modified:    src/java/org/apache/ojb/broker PBStateEvent.java
  Log:
  some style fixes
  
  Revision  Changes    Path
  1.2       +11 -11    db-ojb/src/java/org/apache/ojb/broker/PBStateEvent.java
  
  Index: PBStateEvent.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/PBStateEvent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PBStateEvent.java	12 Apr 2003 23:24:41 -0000	1.1
  +++ PBStateEvent.java	7 Jun 2003 09:59:45 -0000	1.2
  @@ -112,27 +112,27 @@
               return this.getClass().getName() + " [type= " + typeAsName(type) + "]";
           }
   
  -        private String typeAsName(int type)
  +        private String typeAsName(int aType)
           {
  -            if (type == KEY_AFTER_BEGIN)
  +            if (aType == KEY_AFTER_BEGIN)
                   return "AFTER_BEGIN";
  -            else if (type == KEY_AFTER_COMMIT)
  +            else if (aType == KEY_AFTER_COMMIT)
                   return "AFTER_COMMIT";
  -            else if (type == KEY_AFTER_OPEN)
  +            else if (aType == KEY_AFTER_OPEN)
                   return "AFTER_OPEN";
  -            else if (type == KEY_AFTER_ROLLBACK)
  +            else if (aType == KEY_AFTER_ROLLBACK)
                   return "AFTER_ROLLBACK";
  -            else if (type == KEY_BEFORE_BEGIN)
  +            else if (aType == KEY_BEFORE_BEGIN)
                   return "BEFORE_BEGIN";
  -            else if (type == KEY_BEFORE_CLOSE)
  +            else if (aType == KEY_BEFORE_CLOSE)
                   return "BEFORE_CLOSE";
  -            else if (type == KEY_BEFORE_COMMIT)
  +            else if (aType == KEY_BEFORE_COMMIT)
                   return "BEFORE_COMMIT";
  -            else if (type == KEY_BEFORE_ROLLBACK)
  +            else if (aType == KEY_BEFORE_ROLLBACK)
                   return "BEFORE_ROLLBACK";
               else
               {
  -                throw new OJBRuntimeException("Could not find type " + type);
  +                throw new OJBRuntimeException("Could not find type " + aType);
               }
           }
       }