From 0a43069c74b1a416d0f6b1762df81afae674663f Mon Sep 17 00:00:00 2001 From: Tony Rasa Date: Tue, 23 Jan 2018 10:44:50 -0800 Subject: [PATCH] Added country code ZZ https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#ZZ --- .../com/neovisionaries/i18n/CountryCode.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/java/com/neovisionaries/i18n/CountryCode.java b/src/main/java/com/neovisionaries/i18n/CountryCode.java index 75e3c0b..bcc522d 100644 --- a/src/main/java/com/neovisionaries/i18n/CountryCode.java +++ b/src/main/java/com/neovisionaries/i18n/CountryCode.java @@ -2161,6 +2161,22 @@ public Locale toLocale() * Officially assigned] */ ZW("Zimbabwe", "ZWE", 716, Assignment.OFFICIALLY_ASSIGNED), + + + /** + * Unknown or Invalid Territory + * [ZZ, + * User-assigned] + * + *

This is not an official ISO 3166-1 code.

+ * It is set aside by ISO and won't be used in an update of the standard. + */ + ZZ("Unknown or Invalid Territory", "ZZZ", 999, Assignment.USER_ASSIGNED) { + @Override + public Locale toLocale() { + return LocaleCode.undefined.toLocale(); + } + }, ;