review request 8006139, add missing methods to javax.sql.rowset.serial.SQLInput/OutputImpl (original) (raw)
Ulf Zibis Ulf.Zibis at CoSoCo.de
Sun Jan 13 11:13:42 UTC 2013
- Previous message: review request 8006139, add missing methods to javax.sql.rowset.serial.SQLInput/OutputImpl
- Next message: review request 8006139, add missing methods to javax.sql.rowset.serial.SQLInput/OutputImpl
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Oops, missing spaces by Thunderbird failure, correction: 811 public String readNString() throws SQLException { 812 String attrib = (String)getNextAttribute(); 813 lastValueWasNull = attrib == null; 814 return attrib; 815 }
Additionally I'm wondering, whether getNextAttribute() could be generified.
... and again more general: xxx private T readNext() throws SQLException { xxx T attrib = (T)getNextAttribute(); xxx lastValueWasNull = attrib == null; xxx return attrib; xxx }
811 public String readNString() throws SQLException { 812 return readNext(); 813 }
-Ulf
Am 13.01.2013 11:56, schrieb Ulf Zibis:
Am 12.01.2013 22:56, schrieb Lance Andersen - Oracle:
Hi This is a review request for 8006139 which adds missing methods to SQLInput/Output
The webrev can be found at http://cr.openjdk.java.net/~lancea/8006139/webrev.00/ Hi, are you paid by code lines ;-) Additionally you have left out one opportunity ... or is it new code style, having 2 wrong indented closing braces in one line? I would code: 811 public String readNString() throws SQLException { 812 String attrib = (String)getNextAttribute(); 813 lastValueWasNull =attrib == null; 814return attrib; 815 } Additionally I'm wondering, whether getNextAttribute() could be generified. -Ulf
- Previous message: review request 8006139, add missing methods to javax.sql.rowset.serial.SQLInput/OutputImpl
- Next message: review request 8006139, add missing methods to javax.sql.rowset.serial.SQLInput/OutputImpl
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]