Skip to content

Commit b5fa75c

Browse files
author
Sagar Agarwal
committed
provide default implementation for interval methods in AbstractStructReader
1 parent 07012c1 commit b5fa75c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/AbstractStructReader.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ protected String getPgJsonbInternal(int columnIndex) {
6767

6868
protected abstract Date getDateInternal(int columnIndex);
6969

70-
protected abstract Interval getIntervalInternal(int columnIndex);
70+
protected Interval getIntervalInternal(int columnIndex) {
71+
throw new UnsupportedOperationException("Not implemented");
72+
}
7173

7274
protected <T extends AbstractMessage> T getProtoMessageInternal(int columnIndex, T message) {
7375
throw new UnsupportedOperationException("Not implemented");
@@ -130,7 +132,9 @@ protected List<String> getPgJsonbListInternal(int columnIndex) {
130132

131133
protected abstract List<Date> getDateListInternal(int columnIndex);
132134

133-
protected abstract List<Interval> getIntervalListInternal(int columnIndex);
135+
protected List<Interval> getIntervalListInternal(int columnIndex) {
136+
throw new UnsupportedOperationException("Not implemented");
137+
}
134138

135139
protected abstract List<Struct> getStructListInternal(int columnIndex);
136140

@@ -677,7 +681,7 @@ private void checkArrayElementType(
677681
}
678682

679683
private void checkNonNullOfTypes(
680-
int columnIndex,
684+
int columnIndex,
681685
List<Type> expectedTypes,
682686
Object columnNameForError,
683687
String expectedTypeNames) {

0 commit comments

Comments
 (0)