Skip to content

Commit 2b88eb8

Browse files
committed
fix: make it binary compatible while adding implementation for UUID methods in AbstractStructReader
1 parent 71f2175 commit 2b88eb8

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

google-cloud-spanner/clirr-ignored-differences.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -567,16 +567,6 @@
567567
</difference>
568568

569569
<!-- UUID -->
570-
<difference>
571-
<differenceType>7013</differenceType>
572-
<className>com/google/cloud/spanner/AbstractStructReader</className>
573-
<method>java.util.UUID getUuidInternal(int)</method>
574-
</difference>
575-
<difference>
576-
<differenceType>7013</differenceType>
577-
<className>com/google/cloud/spanner/AbstractStructReader</className>
578-
<method>java.util.List getUuidListInternal(int)</method>
579-
</difference>
580570
<difference>
581571
<differenceType>7012</differenceType>
582572
<className>com/google/cloud/spanner/StructReader</className>

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ protected String getPgJsonbInternal(int columnIndex) {
6868

6969
protected abstract Date getDateInternal(int columnIndex);
7070

71-
protected abstract UUID getUuidInternal(int columnIndex);
71+
protected UUID getUuidInternal(int columnIndex) {
72+
throw new UnsupportedOperationException("Not implemented");
73+
}
7274

7375
protected <T extends AbstractMessage> T getProtoMessageInternal(int columnIndex, T message) {
7476
throw new UnsupportedOperationException("Not implemented");
@@ -131,7 +133,9 @@ protected List<String> getPgJsonbListInternal(int columnIndex) {
131133

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

134-
protected abstract List<UUID> getUuidListInternal(int columnIndex);
136+
protected List<UUID> getUuidListInternal(int columnIndex) {
137+
throw new UnsupportedOperationException("Not implemented");
138+
}
135139

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

0 commit comments

Comments
 (0)