Skip to content

Commit 4c7f2f1

Browse files
committed
Merge pull request #8 from mapcode-foundation/dev
Release 2.0.2
2 parents 8c1cf05 + 86540d0 commit 4c7f2f1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>com.mapcode</groupId>
77
<artifactId>mapcode-example</artifactId>
88
<packaging>jar</packaging>
9-
<version>2.0.1.0</version>
9+
<version>2.0.2</version>
1010

1111
<name>Mapcode Java Example</name>
1212
<description>
@@ -26,7 +26,7 @@
2626
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2727
<jdk.version>1.6</jdk.version>
2828

29-
<mapcode.version>2.0.1</mapcode.version>
29+
<mapcode.version>2.0.2</mapcode.version>
3030
<log4j.version>1.2.17</log4j.version>
3131
<slf4j.version>1.7.12</slf4j.version>
3232

src/main/java/com/mapcode/example/Example.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,16 @@ private static void exampleDisambiguateTerritory() throws UnknownTerritoryExcept
218218

219219
// Disambiguation using a correct parent territory context.
220220
System.out.println("ISO code " + isoCode + " in USA context : " +
221-
Territory.fromString(isoCode, ParentTerritory.USA).toString());
221+
Territory.fromString(isoCode, Territory.USA).toString());
222222
System.out.println("ISO code " + isoCode + " in IND context : " +
223-
Territory.fromString(isoCode, ParentTerritory.IND).toString());
223+
Territory.fromString(isoCode, Territory.IND).toString());
224224

225225
// Disambiguation using an incorrect parent territory context, which does not contains the state.
226226
// This call will actually fail and throw an exception because the disambiguation cannot be
227227
// completed.
228228
try {
229229
System.out.println("ISO code " + isoCode + " in RUS context : " + Territory.fromString(isoCode,
230-
ParentTerritory.RUS).toString());
230+
Territory.RUS).toString());
231231
} catch (final UnknownTerritoryException ignored) {
232232
System.out.println("ISO code " + isoCode + " in RUS context : failed (as expected in this example)");
233233
}

0 commit comments

Comments
 (0)