You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by qu...@apache.org on 2003/01/25 17:24:36 UTC

cvs commit: jakarta-turbine-torque/src/java/org/apache/torque Torque.java

quintonm    2003/01/25 08:24:36

  Modified:    src/java/org/apache/torque Torque.java
  Log:
  getConnection() declares more excepion in the throws clause than it will really throw.
  
  Revision  Changes    Path
  1.78      +2 -5      jakarta-turbine-torque/src/java/org/apache/torque/Torque.java
  
  Index: Torque.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/Torque.java,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- Torque.java	9 Jan 2003 17:46:19 -0000	1.77
  +++ Torque.java	25 Jan 2003 16:24:36 -0000	1.78
  @@ -861,12 +861,9 @@
        * @return The requested connection.
        * @throws TorqueException Any exceptions caught during processing will be
        *         rethrown wrapped into a TorqueException.
  -     * @throws java.sql.SQLException never thrown
  -     * @throws javax.naming.NamingException never thrown
        */
       public static Connection getConnection()
  -        throws TorqueException, java.sql.SQLException,
  -               javax.naming.NamingException
  +        throws TorqueException
       {
           return getConnection(getDefaultDB());
       }