File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/main/java/com/mapcode/example Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 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 >
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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments