Skip to content

Commit 6de8f82

Browse files
Addressed comments
1 parent 7964273 commit 6de8f82

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/com/google/cloud/spanner/jdbc/JdbcDataType.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public Type getSpannerType() {
188188
}
189189

190190
@Override
191-
public Set<String> getAliases() {
191+
public Set<String> getPostgreSQLAliases() {
192192
return aliases;
193193
}
194194
},
@@ -256,7 +256,7 @@ public Type getSpannerType() {
256256
}
257257

258258
@Override
259-
public Set<String> getAliases() {
259+
public Set<String> getPostgreSQLAliases() {
260260
return aliases;
261261
}
262262
},
@@ -315,7 +315,7 @@ public Type getSpannerType() {
315315
}
316316

317317
@Override
318-
public Set<String> getAliases() {
318+
public Set<String> getPostgreSQLAliases() {
319319
return aliases;
320320
}
321321
},
@@ -520,7 +520,7 @@ public Type getSpannerType() {
520520

521521
public abstract Type getSpannerType();
522522

523-
public Set<String> getAliases() {
523+
public Set<String> getPostgreSQLAliases() {
524524
return Collections.emptySet();
525525
}
526526

@@ -529,9 +529,9 @@ public Set<String> getAliases() {
529529
* @return true if type name matches current type name or matches with one of postgres aliases
530530
* or if it matches equivalent postgres type.
531531
*/
532-
public boolean matches(String typeName) {
532+
boolean matches(String typeName) {
533533
return getTypeName().equalsIgnoreCase(typeName)
534-
|| getAliases().contains(typeName.toLowerCase())
534+
|| getPostgreSQLAliases().contains(typeName.toLowerCase())
535535
|| getSpannerType().getSpannerTypeName(Dialect.POSTGRESQL).equalsIgnoreCase(typeName);
536536
}
537537

0 commit comments

Comments
 (0)