Skip to content

Release 2.0.2 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>com.mapcode</groupId>
<artifactId>mapcode-example</artifactId>
<packaging>jar</packaging>
<version>2.0.1.0</version>
<version>2.0.2</version>

<name>Mapcode Java Example</name>
<description>
Expand All @@ -26,7 +26,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<jdk.version>1.6</jdk.version>

<mapcode.version>2.0.1</mapcode.version>
<mapcode.version>2.0.2</mapcode.version>
<log4j.version>1.2.17</log4j.version>
<slf4j.version>1.7.12</slf4j.version>

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/mapcode/example/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,16 @@ private static void exampleDisambiguateTerritory() throws UnknownTerritoryExcept

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

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