Skip to content

Commit

Permalink
Fix formatting in example
Browse files Browse the repository at this point in the history
  • Loading branch information
bowbahdoe committed Aug 2, 2024
1 parent 42765e4 commit 04b14c2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,20 @@ public record Text(String contents) {}
public static final class CustomRecordComponentGetter
extends DefaultRecordComponentGetter {
@Override
protected Object getIndexedRecordComponent(ResultSet rs, RecordComponent recordComponent, int index) throws SQLException {
protected Object getIndexedRecordComponent(
ResultSet rs,
RecordComponent recordComponent,
int index
) throws SQLException {
return new Text(rs.getString(index));
}

@Override
protected Object getLabeledRecordComponent(ResultSet rs, RecordComponent recordComponent, String label) throws SQLException {
protected Object getLabeledRecordComponent(
ResultSet rs,
RecordComponent recordComponent,
String label
) throws SQLException {
return new Text(rs.getString(label));
}
}
Expand Down

0 comments on commit 04b14c2

Please sign in to comment.