Use JDBCUtil.close() rather than closing the statement directly because it
could conceivably be null. git-svn-id: https://samskivert.googlecode.com/svn/trunk@150 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: UserRepository.java,v 1.10 2001/06/01 07:27:59 mdb Exp $
|
// $Id: UserRepository.java,v 1.11 2001/06/07 08:38:47 mdb Exp $
|
||||||
|
|
||||||
package com.samskivert.servlet.user;
|
package com.samskivert.servlet.user;
|
||||||
|
|
||||||
@@ -332,7 +332,7 @@ public class UserRepository extends MySQLRepository
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
stmt.close();
|
JDBCUtil.close(stmt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user