Skip to content

Commit 9a91654

Browse files
authored
fix: Add secondary_school and drugstore as AdressType to silence SafeEnumAdapter warnings (#660)
1 parent 93f870e commit 9a91654

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/com/google/maps/model/AddressType.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ public enum AddressType implements UrlValue {
176176
/** The location of a primary school. */
177177
PRIMARY_SCHOOL("primary_school"),
178178

179+
/** The location of a secondary school. */
180+
SECONDARY_SCHOOL("secondary_school"),
181+
179182
/** The location of a finance institute. */
180183
FINANCE("finance"),
181184

@@ -203,6 +206,9 @@ public enum AddressType implements UrlValue {
203206
/** Currently not a documented return type. */
204207
STORE("store"),
205208

209+
/** The location of a drugstore. */
210+
DRUGSTORE("drugstore"),
211+
206212
/** Currently not a documented return type. */
207213
LAWYER("lawyer"),
208214

src/test/java/com/google/maps/model/EnumsTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ public void testCanonicalLiteralsForAddressType() {
8282
m.put(AddressType.TRANSIT_STATION, "transit_station");
8383
m.put(AddressType.CHURCH, "church");
8484
m.put(AddressType.PRIMARY_SCHOOL, "primary_school");
85+
m.put(AddressType.SECONDARY_SCHOOL, "secondary_school");
8586
m.put(AddressType.FINANCE, "finance");
8687
m.put(AddressType.ESTABLISHMENT, "establishment");
8788
m.put(AddressType.POSTAL_TOWN, "postal_town");
@@ -98,6 +99,7 @@ public void testCanonicalLiteralsForAddressType() {
9899
m.put(AddressType.FOOD, "food");
99100
m.put(AddressType.GROCERY_OR_SUPERMARKET, "grocery_or_supermarket");
100101
m.put(AddressType.STORE, "store");
102+
m.put(AddressType.DRUGSTORE, "drugstore");
101103
m.put(AddressType.LAWYER, "lawyer");
102104
m.put(AddressType.HEALTH, "health");
103105
m.put(AddressType.INSURANCE_AGENCY, "insurance_agency");

0 commit comments

Comments
 (0)