From c4bedd7305a9cedd14001c89f99721e28179383b Mon Sep 17 00:00:00 2001 From: Rijn Buve Date: Fri, 4 Nov 2016 18:35:30 +0100 Subject: [PATCH 1/8] Updated copyright --- NOTICE | 2 +- README.md | 2 +- src/main/java/com/mapcode/Alphabet.java | 2 +- src/main/java/com/mapcode/Boundary.java | 2 +- src/main/java/com/mapcode/CheckArgs.java | 2 +- src/main/java/com/mapcode/Common.java | 2 +- src/main/java/com/mapcode/Data.java | 2 +- src/main/java/com/mapcode/DataModel.java | 2 +- src/main/java/com/mapcode/Decoder.java | 8 ++++---- src/main/java/com/mapcode/Encoder.java | 2 +- .../java/com/mapcode/IncorrectDataModelException.java | 2 +- src/main/java/com/mapcode/Mapcode.java | 2 +- src/main/java/com/mapcode/MapcodeCodec.java | 2 +- src/main/java/com/mapcode/MapcodeZone.java | 2 +- src/main/java/com/mapcode/Point.java | 2 +- src/main/java/com/mapcode/Territory.java | 2 +- src/main/java/com/mapcode/UnknownAlphabetException.java | 2 +- src/main/java/com/mapcode/UnknownMapcodeException.java | 2 +- .../java/com/mapcode/UnknownPrecisionFormatException.java | 2 +- src/main/java/com/mapcode/UnknownTerritoryException.java | 2 +- src/main/resources/com/mapcode/README.md | 2 +- src/site/site.xml | 2 +- src/test/java/com/mapcode/AlphabetTest.java | 2 +- src/test/java/com/mapcode/CheckArgsTest.java | 2 +- src/test/java/com/mapcode/DataModelTest.java | 2 +- src/test/java/com/mapcode/DecoderTest.java | 2 +- src/test/java/com/mapcode/EncodeDecodeTest.java | 2 +- src/test/java/com/mapcode/EncoderTest.java | 2 +- src/test/java/com/mapcode/MapcodeTest.java | 2 +- src/test/java/com/mapcode/PointTest.java | 2 +- src/test/java/com/mapcode/ReferenceFileTest.java | 2 +- src/test/java/com/mapcode/TerritoryTest.java | 2 +- src/test/resources/log4j.xml | 2 +- src/test/resources/show3d/show3d.pde | 2 +- 34 files changed, 37 insertions(+), 37 deletions(-) diff --git a/NOTICE b/NOTICE index ef7d3db..df9724f 100644 --- a/NOTICE +++ b/NOTICE @@ -5,4 +5,4 @@ MAPCODE JAVA LIBRARY Original C library created by Pieter Geelen. Work on Java version of the Mapcode library by Rijn Buve (original port by Matthew Lowden). -Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) +Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) diff --git a/README.md b/README.md index 6c38b40..be4ec2d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Release](https://img.shields.io/github/release/mapcode-foundation/mapcode-java.svg?maxAge=3600)](https://github.com/mapcode-foundation/mapcode-java/releases) [![Maven Central](https://img.shields.io/maven-central/v/com.mapcode/mapcode.svg?maxAge=3600)](https://maven-badges.herokuapp.com/maven-central/com.mapcode/mapcode) -**Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com)** +**Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com)** This Java project contains a library to encode latitude/longitude pairs to mapcodes and to decode mapcodes back to latitude/longitude pairs. diff --git a/src/main/java/com/mapcode/Alphabet.java b/src/main/java/com/mapcode/Alphabet.java index 509f100..1805ac1 100644 --- a/src/main/java/com/mapcode/Alphabet.java +++ b/src/main/java/com/mapcode/Alphabet.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Boundary.java b/src/main/java/com/mapcode/Boundary.java index 097af57..2691160 100644 --- a/src/main/java/com/mapcode/Boundary.java +++ b/src/main/java/com/mapcode/Boundary.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/CheckArgs.java b/src/main/java/com/mapcode/CheckArgs.java index a8b08cf..9ab0378 100644 --- a/src/main/java/com/mapcode/CheckArgs.java +++ b/src/main/java/com/mapcode/CheckArgs.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Common.java b/src/main/java/com/mapcode/Common.java index 103e773..60a3188 100644 --- a/src/main/java/com/mapcode/Common.java +++ b/src/main/java/com/mapcode/Common.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Data.java b/src/main/java/com/mapcode/Data.java index a74ee9c..d16a844 100644 --- a/src/main/java/com/mapcode/Data.java +++ b/src/main/java/com/mapcode/Data.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/DataModel.java b/src/main/java/com/mapcode/DataModel.java index 45a1ba7..b7600fc 100644 --- a/src/main/java/com/mapcode/DataModel.java +++ b/src/main/java/com/mapcode/DataModel.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Decoder.java b/src/main/java/com/mapcode/Decoder.java index 6ea384c..58fe850 100644 --- a/src/main/java/com/mapcode/Decoder.java +++ b/src/main/java/com/mapcode/Decoder.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -244,7 +244,7 @@ public Unicode2Ascii(final char min, final char max, @Nonnull final String conve /* Gurmukhi */ {'\u0a05', '\u0a15', '\u0a17', '\u0a18', '\u0a0f', '\u0a1a', '\u0a1c', '\u0a1f', MISSCODE, '\u0a20', '\u0a23', '\u0a24', '\u0a26', '\u0a27', MISSCODE, '\u0a28', '\u0a2a', '\u0a2d', '\u0a2e', '\u0a30', '\u0a2b', '\u0a32', '\u0a35', '\u0a38', '\u0a39', '\u0a21', '\u0a66', '\u0a67', '\u0a68', '\u0a69', '\u0a6a', '\u0a6b', '\u0a6c', '\u0a6d', '\u0a6e', '\u0a6f'}, // Gurmukhi /* Tibetan */ {'\u0f58', '\u0f40', '\u0f41', '\u0f42', '\u0f64', '\u0f44', '\u0f45', '\u0f46', MISSCODE, '\u0f47', '\u0f49', '\u0f55', '\u0f50', '\u0f4f', MISSCODE, '\u0f51', '\u0f53', '\u0f54', '\u0f56', '\u0f5e', '\u0f60', '\u0f5f', '\u0f61', '\u0f62', '\u0f63', '\u0f66', '\u0f20', '\u0f21', '\u0f22', '\u0f23', '\u0f24', '\u0f25', '\u0f26', '\u0f27', '\u0f28', '\u0f29'}, // Tibetan /* Arabic */ {'\u0628', '\u062a', '\u062d', '\u062e', '\u062B', '\u062f', '\u0630', '\u0631', '\u0627', '\u0632', '\u0633', '\u0634', '\u0635', '\u0636', '\u0647', '\u0637', '\u0638', '\u0639', '\u063a', '\u0641', '\u0642', '\u062C', '\u0644', '\u0645', '\u0646', '\u0648', '\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035', '\u0036', '\u0037', '\u0038', '\u0039'}, // Arabic - /* Korean */ {'\u1112', '\u1100', '\u1102', '\u1103', '\u1166', '\u1105', '\u1107', '\u1109', '\u1175', '\u1110', '\u1111', '\u1161', '\u1162', '\u1163', '\u110b', '\u1164', '\u1165', '\u1167', '\u1169', '\u1172', '\u1174', '\u110c', '\u110e', '\u110f', '\u116d', '\u116e', '\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035', '\u0036', '\u0037', '\u0038', '\u0039'}, // Korean + /* Korean */ {'\u1112', '\u1100', '\u1102', '\u1103', '\u1166', '\u1105', '\u1107', '\u1109', '\u1175', '\u1110', '\u1111', '\u1161', '\u1162', '\u1163', '\u110b', '\u1164', '\u1165', '\u1167', '\u1169', '\u1172', '\u1174', '\u110c', '\u110e', '\u110f', '\u116d', '\u116e', '\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035', '\u0036', '\u0037', '\u0038', '\u0039'}, // Korean /* Burmese */ {'\u1005', '\u1000', '\u1001', '\u1002', '\u1013', '\u1003', '\u1004', '\u101a', '\u101b', '\u1007', '\u100c', '\u100d', '\u100e', '\u1010', '\u101d', '\u1011', '\u1012', '\u101e', '\u1014', '\u1015', '\u1016', '\u101f', '\u1017', '\u1018', '\u100f', '\u101c', '\u1040', '\u1041', '\u1042', '\u1043', '\u1044', '\u1045', '\u1046', '\u1047', '\u1048', '\u1049'}, // Burmese /* Khmer */ {'\u1789', '\u1780', '\u1781', '\u1782', '\u1785', '\u1783', '\u1784', '\u1787', '\u179a', '\u1788', '\u178a', '\u178c', '\u178d', '\u178e', '\u179c', '\u1791', '\u1792', '\u1793', '\u1794', '\u1795', '\u179f', '\u1796', '\u1798', '\u179b', '\u17a0', '\u17a2', '\u17e0', '\u17e1', '\u17e2', '\u17e3', '\u17e4', '\u17e5', '\u17e6', '\u17e7', '\u17e8', '\u17e9'}, // Khmer /* Sinhalese*/ {'\u0d85', '\u0d9a', '\u0d9c', '\u0d9f', '\u0d89', '\u0da2', '\u0da7', '\u0da9', '\u0dc2', '\u0dac', '\u0dad', '\u0daf', '\u0db1', '\u0db3', '\u0dc5', '\u0db4', '\u0db6', '\u0db8', '\u0db9', '\u0dba', '\u0d8b', '\u0dbb', '\u0dbd', '\u0dc0', '\u0dc3', '\u0dc4', '\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035', '\u0036', '\u0037', '\u0038', '\u0039'}, // Sinhalese @@ -294,8 +294,8 @@ public Unicode2Ascii(final char min, final char max, @Nonnull final String conve /* Thaana */ new Unicode2Ascii('\u0780', '\u07b1', "BCDFGHJKLMNPQRSTVWXYA?OE????U???????I????????????Z"), // Thaana /* Chinese */ new Unicode2Ascii('\u3105', '\u3129', "BDFCGHJKLMNRSTUEPQWYZ????I?O??A????XV"), // Chinese /* Tifinagh */ new Unicode2Ascii('\u2d31', '\u2d63', "B?C???D????FG??H??JKL?M?A???NPI???EOQR??STVW??X?YUZ"), // Tifinagh - /* Tamil */ new Unicode2Ascii('\u0b85', '\u0bb5', "SE?TV????WXY?ZU?B???AC???OD????F???GIH???JKLRMQPN"), // Tamil - /* Amharic */ new Unicode2Ascii('\u1200', '\u1354', "H???????L??????????????????A??E?T?????V?????S???????????????????Q???R???????????????????????????B???C???????????W?????X????????????????????????????M????????????I???????????K???????????????????????????U???????O???????????Z???????????J???????D???????????????????????G???????????????????????????????????????????????Y?????????????????F?????N???P"), // Amharic + /* Tamil */ new Unicode2Ascii('\u0b85', '\u0bb5', "SE?TV????WXY?ZU?B???AC???OD????F???GIH???JKLRMQPN"), // Tamil + /* Amharic */ new Unicode2Ascii('\u1200', '\u1354', "H???????L??????????????????A??E?T?????V?????S???????????????????Q???R???????????????????????????B???C???????????W?????X????????????????????????????M????????????I???????????K???????????????????????????U???????O???????????Z???????????J???????D???????????????????????G???????????????????????????????????????????????Y?????????????????F?????N???P"), // Amharic /* Telugu */ new Unicode2Ascii('\u0c15', '\u0c35', "BOC?DFIG?AHJK?LMNPQR?SETUV?W?XY?Z"), // Telugu /* Odia */ new Unicode2Ascii('\u0b15', '\u0b39', "BCDF?G?HA?JOKLEMNPQR?SIT?VWX??Y????ZU"), // Odia /* Kannada */ new Unicode2Ascii('\u0c85', '\u0cb5', "I?U?O????E???A??BCD?FGHJ???KL?MN?PQR?STVW??X?Y??Z"), // Kannada diff --git a/src/main/java/com/mapcode/Encoder.java b/src/main/java/com/mapcode/Encoder.java index 39f2160..fb2ac2d 100644 --- a/src/main/java/com/mapcode/Encoder.java +++ b/src/main/java/com/mapcode/Encoder.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/IncorrectDataModelException.java b/src/main/java/com/mapcode/IncorrectDataModelException.java index fd8f8bb..b490167 100644 --- a/src/main/java/com/mapcode/IncorrectDataModelException.java +++ b/src/main/java/com/mapcode/IncorrectDataModelException.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Mapcode.java b/src/main/java/com/mapcode/Mapcode.java index 77ee58a..528223e 100644 --- a/src/main/java/com/mapcode/Mapcode.java +++ b/src/main/java/com/mapcode/Mapcode.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/MapcodeCodec.java b/src/main/java/com/mapcode/MapcodeCodec.java index 727eb3c..11f0d90 100644 --- a/src/main/java/com/mapcode/MapcodeCodec.java +++ b/src/main/java/com/mapcode/MapcodeCodec.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/MapcodeZone.java b/src/main/java/com/mapcode/MapcodeZone.java index 954154d..b9b9834 100644 --- a/src/main/java/com/mapcode/MapcodeZone.java +++ b/src/main/java/com/mapcode/MapcodeZone.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Point.java b/src/main/java/com/mapcode/Point.java index 92cebdc..24e4ed1 100644 --- a/src/main/java/com/mapcode/Point.java +++ b/src/main/java/com/mapcode/Point.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Territory.java b/src/main/java/com/mapcode/Territory.java index 8486fb4..c54f1c8 100644 --- a/src/main/java/com/mapcode/Territory.java +++ b/src/main/java/com/mapcode/Territory.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/UnknownAlphabetException.java b/src/main/java/com/mapcode/UnknownAlphabetException.java index 069656c..f2e3da1 100644 --- a/src/main/java/com/mapcode/UnknownAlphabetException.java +++ b/src/main/java/com/mapcode/UnknownAlphabetException.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/UnknownMapcodeException.java b/src/main/java/com/mapcode/UnknownMapcodeException.java index aa7ebbd..31075c2 100644 --- a/src/main/java/com/mapcode/UnknownMapcodeException.java +++ b/src/main/java/com/mapcode/UnknownMapcodeException.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/UnknownPrecisionFormatException.java b/src/main/java/com/mapcode/UnknownPrecisionFormatException.java index bc6764c..585046f 100644 --- a/src/main/java/com/mapcode/UnknownPrecisionFormatException.java +++ b/src/main/java/com/mapcode/UnknownPrecisionFormatException.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/UnknownTerritoryException.java b/src/main/java/com/mapcode/UnknownTerritoryException.java index ba89348..910cb1d 100644 --- a/src/main/java/com/mapcode/UnknownTerritoryException.java +++ b/src/main/java/com/mapcode/UnknownTerritoryException.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/resources/com/mapcode/README.md b/src/main/resources/com/mapcode/README.md index 21035cb..da5ab48 100644 --- a/src/main/resources/com/mapcode/README.md +++ b/src/main/resources/com/mapcode/README.md @@ -1,7 +1,7 @@ The binary file "mminfo.dat" is subject to the following copyright and license statements: -Copyright (C) 2014-2016 Stichting Mapcode Foundation (http://www.mapcode.com) +Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/src/site/site.xml b/src/site/site.xml index 386be50..f0a651b 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -1,6 +1,6 @@ - lq77rzORtJmhhqs4MWED6qPzVi0IEqrf9 - 4.2.0 0.7.7.201606060606 @@ -142,9 +139,6 @@ org.eluder.coveralls coveralls-maven-plugin ${coveralls-maven-plugin.version} - - ${coveralls-maven-plugin.repoToken} - From e7fd6218ab986278e35cf40efc4a601f888605e5 Mon Sep 17 00:00:00 2001 From: Rijn Buve Date: Mon, 21 Nov 2016 10:59:18 +0100 Subject: [PATCH 3/8] Updated release notes --- src/site/markdown/ReleaseNotes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/site/markdown/ReleaseNotes.md b/src/site/markdown/ReleaseNotes.md index 65e952d..12a7f73 100755 --- a/src/site/markdown/ReleaseNotes.md +++ b/src/site/markdown/ReleaseNotes.md @@ -4,6 +4,8 @@ These are the release notes for the Java library for mapcodes. ### 2.4.1 +* Removed secret Coveralls key from POM file. + * Added scripts for Tifinagh (Berber), Tamil, Amharic, Telugu, Odia, Kannada, Gujarati. * Added `getAlphabets()` to `Territory` class, returning the most commonly used languages for the territory. From a745b8f3394f6b75f3680c780a1c403ac5ef5427 Mon Sep 17 00:00:00 2001 From: Rijn Buve Date: Mon, 21 Nov 2016 11:19:28 +0100 Subject: [PATCH 4/8] Updated POM to 2.4.2-SNAPSHOT --- pom.xml | 2 +- src/site/markdown/ReleaseNotes.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 1e616ee..8c1b2d1 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ mapcode jar - 2.4.1 + 2.4.2-SNAPSHOT Mapcode Java Library diff --git a/src/site/markdown/ReleaseNotes.md b/src/site/markdown/ReleaseNotes.md index 12a7f73..28c307a 100755 --- a/src/site/markdown/ReleaseNotes.md +++ b/src/site/markdown/ReleaseNotes.md @@ -2,10 +2,12 @@ These are the release notes for the Java library for mapcodes. -### 2.4.1 +### 2.4.2 * Removed secret Coveralls key from POM file. +### 2.4.1 + * Added scripts for Tifinagh (Berber), Tamil, Amharic, Telugu, Odia, Kannada, Gujarati. * Added `getAlphabets()` to `Territory` class, returning the most commonly used languages for the territory. From c8a402cbb05fe688f8000f5a3f75b1f39e424b5d Mon Sep 17 00:00:00 2001 From: Rijn Buve Date: Mon, 21 Nov 2016 11:31:56 +0100 Subject: [PATCH 5/8] Updated POM --- pom.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pom.xml b/pom.xml index 8c1b2d1..adb817b 100644 --- a/pom.xml +++ b/pom.xml @@ -67,6 +67,8 @@ UTF-8 UTF-8 + + 1.6 From 04229a5fa33897cd913d7d899b2c38cbc681a6f8 Mon Sep 17 00:00:00 2001 From: Rijn Buve Date: Wed, 3 May 2017 13:13:10 +0200 Subject: [PATCH 6/8] Fixed after Codacy review --- src/main/java/com/mapcode/UnknownTerritoryException.java | 6 ++++++ src/test/java/com/mapcode/EncodeDecodeTest.java | 4 ++-- src/test/java/com/mapcode/ReferenceFileTest.java | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/mapcode/UnknownTerritoryException.java b/src/main/java/com/mapcode/UnknownTerritoryException.java index 910cb1d..7235238 100644 --- a/src/main/java/com/mapcode/UnknownTerritoryException.java +++ b/src/main/java/com/mapcode/UnknownTerritoryException.java @@ -17,6 +17,7 @@ package com.mapcode; import javax.annotation.Nonnull; +import javax.annotation.Nullable; /** * This runtime exception is thrown for unknown territory codes. It is specifically a runtime exception, because @@ -37,4 +38,9 @@ public UnknownTerritoryException(final int code) { super(); this.code = code; } + + @Nullable + public Integer getCode() { + return code; + } } diff --git a/src/test/java/com/mapcode/EncodeDecodeTest.java b/src/test/java/com/mapcode/EncodeDecodeTest.java index eff56ce..339960b 100644 --- a/src/test/java/com/mapcode/EncodeDecodeTest.java +++ b/src/test/java/com/mapcode/EncodeDecodeTest.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; +import static junit.framework.TestCase.assertFalse; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; @SuppressWarnings({"OverlyBroadThrowsClause", "ProhibitedExceptionDeclared"}) public class EncodeDecodeTest { @@ -75,7 +75,7 @@ private static void doEncodeDecode(final long seed) throws InterruptedException // Check encodeToShortest and encodeToInternational. final List resultsAll = MapcodeCodec.encode(latDeg, lonDeg); - assertTrue(!resultsAll.isEmpty()); + assertFalse(resultsAll.isEmpty()); assertEquals("encodeToInternational failed, result=" + resultsAll, resultsAll.get(resultsAll.size() - 1), mapcodeInternational); diff --git a/src/test/java/com/mapcode/ReferenceFileTest.java b/src/test/java/com/mapcode/ReferenceFileTest.java index 927344c..0c7b661 100644 --- a/src/test/java/com/mapcode/ReferenceFileTest.java +++ b/src/test/java/com/mapcode/ReferenceFileTest.java @@ -32,6 +32,7 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicLong; +import static junit.framework.TestCase.assertFalse; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -344,7 +345,7 @@ private static ReferenceRec getNextReferenceRecord(@Nonnull final ChunkedFile ch final ArrayList mapcodeRecs = new ArrayList(); for (int i = 0; i < count; ++i) { final String line = chunkedFile.readNonEmptyLine(); - assertTrue("Line should not be empty", !line.isEmpty()); + assertFalse("Line should not be empty", line.isEmpty()); final String[] mapcodeLine = line.split(" "); assertTrue("Expecting 1 or 2 elements, territory and mapcode, got: " + mapcodeLine.length + ", " + line, From 8fe10b623902d972544c251e00d265b4a365d842 Mon Sep 17 00:00:00 2001 From: Rijn Buve Date: Wed, 3 May 2017 13:14:48 +0200 Subject: [PATCH 7/8] Updated README with Codacy badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index be4ec2d..6dfd3ef 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Mapcode Library for Java +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/0c9f11645f504b50bd154a80fb95a5c3)](https://www.codacy.com/app/rijnb/mapcode-java?utm_source=github.com&utm_medium=referral&utm_content=mapcode-foundation/mapcode-java&utm_campaign=Badge_Grade) [![Build Status](https://img.shields.io/travis/mapcode-foundation/mapcode-java.svg?maxAge=3600)](https://travis-ci.org/mapcode-foundation/mapcode-java) [![Coverage Status](https://coveralls.io/repos/github/mapcode-foundation/mapcode-java/badge.svg?branch=master&maxAge=3600)](https://coveralls.io/github/mapcode-foundation/mapcode-java?branch=master) [![License](http://img.shields.io/badge/license-APACHE2-blue.svg)]() From 3861d65f885ec208c056fb4c614632795f03ac48 Mon Sep 17 00:00:00 2001 From: Rijn Buve Date: Wed, 3 May 2017 13:35:56 +0200 Subject: [PATCH 8/8] Updated copyright --- NOTICE | 2 +- README.md | 2 +- src/main/java/com/mapcode/Alphabet.java | 2 +- src/main/java/com/mapcode/Boundary.java | 2 +- src/main/java/com/mapcode/CheckArgs.java | 2 +- src/main/java/com/mapcode/Common.java | 2 +- src/main/java/com/mapcode/Data.java | 2 +- src/main/java/com/mapcode/DataModel.java | 2 +- src/main/java/com/mapcode/Decoder.java | 2 +- src/main/java/com/mapcode/Encoder.java | 2 +- src/main/java/com/mapcode/IncorrectDataModelException.java | 2 +- src/main/java/com/mapcode/Mapcode.java | 2 +- src/main/java/com/mapcode/MapcodeCodec.java | 2 +- src/main/java/com/mapcode/MapcodeZone.java | 2 +- src/main/java/com/mapcode/Point.java | 2 +- src/main/java/com/mapcode/Territory.java | 2 +- src/main/java/com/mapcode/UnknownAlphabetException.java | 2 +- src/main/java/com/mapcode/UnknownMapcodeException.java | 2 +- src/main/java/com/mapcode/UnknownPrecisionFormatException.java | 2 +- src/main/java/com/mapcode/UnknownTerritoryException.java | 2 +- src/main/resources/com/mapcode/README.md | 2 +- src/site/site.xml | 2 +- src/test/java/com/mapcode/AlphabetTest.java | 2 +- src/test/java/com/mapcode/CheckArgsTest.java | 2 +- src/test/java/com/mapcode/DataModelTest.java | 2 +- src/test/java/com/mapcode/DecoderTest.java | 2 +- src/test/java/com/mapcode/EncodeDecodeTest.java | 2 +- src/test/java/com/mapcode/EncoderTest.java | 2 +- src/test/java/com/mapcode/MapcodeTest.java | 2 +- src/test/java/com/mapcode/PointTest.java | 2 +- src/test/java/com/mapcode/ReferenceFileTest.java | 2 +- src/test/java/com/mapcode/TerritoryTest.java | 2 +- src/test/resources/log4j.xml | 2 +- src/test/resources/show3d/show3d.pde | 2 +- 34 files changed, 34 insertions(+), 34 deletions(-) diff --git a/NOTICE b/NOTICE index df9724f..238ceb3 100644 --- a/NOTICE +++ b/NOTICE @@ -5,4 +5,4 @@ MAPCODE JAVA LIBRARY Original C library created by Pieter Geelen. Work on Java version of the Mapcode library by Rijn Buve (original port by Matthew Lowden). -Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) +Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) diff --git a/README.md b/README.md index 6dfd3ef..d98f0fc 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![Release](https://img.shields.io/github/release/mapcode-foundation/mapcode-java.svg?maxAge=3600)](https://github.com/mapcode-foundation/mapcode-java/releases) [![Maven Central](https://img.shields.io/maven-central/v/com.mapcode/mapcode.svg?maxAge=3600)](https://maven-badges.herokuapp.com/maven-central/com.mapcode/mapcode) -**Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com)** +**Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com)** This Java project contains a library to encode latitude/longitude pairs to mapcodes and to decode mapcodes back to latitude/longitude pairs. diff --git a/src/main/java/com/mapcode/Alphabet.java b/src/main/java/com/mapcode/Alphabet.java index 1805ac1..cfd18fb 100644 --- a/src/main/java/com/mapcode/Alphabet.java +++ b/src/main/java/com/mapcode/Alphabet.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Boundary.java b/src/main/java/com/mapcode/Boundary.java index 2691160..73a1367 100644 --- a/src/main/java/com/mapcode/Boundary.java +++ b/src/main/java/com/mapcode/Boundary.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/CheckArgs.java b/src/main/java/com/mapcode/CheckArgs.java index 9ab0378..755bf0d 100644 --- a/src/main/java/com/mapcode/CheckArgs.java +++ b/src/main/java/com/mapcode/CheckArgs.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Common.java b/src/main/java/com/mapcode/Common.java index 60a3188..3485dec 100644 --- a/src/main/java/com/mapcode/Common.java +++ b/src/main/java/com/mapcode/Common.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Data.java b/src/main/java/com/mapcode/Data.java index d16a844..66c3c20 100644 --- a/src/main/java/com/mapcode/Data.java +++ b/src/main/java/com/mapcode/Data.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/DataModel.java b/src/main/java/com/mapcode/DataModel.java index b7600fc..a571657 100644 --- a/src/main/java/com/mapcode/DataModel.java +++ b/src/main/java/com/mapcode/DataModel.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Decoder.java b/src/main/java/com/mapcode/Decoder.java index 58fe850..e957487 100644 --- a/src/main/java/com/mapcode/Decoder.java +++ b/src/main/java/com/mapcode/Decoder.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Encoder.java b/src/main/java/com/mapcode/Encoder.java index fb2ac2d..e3522be 100644 --- a/src/main/java/com/mapcode/Encoder.java +++ b/src/main/java/com/mapcode/Encoder.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/IncorrectDataModelException.java b/src/main/java/com/mapcode/IncorrectDataModelException.java index b490167..2872204 100644 --- a/src/main/java/com/mapcode/IncorrectDataModelException.java +++ b/src/main/java/com/mapcode/IncorrectDataModelException.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Mapcode.java b/src/main/java/com/mapcode/Mapcode.java index 528223e..c7adfcb 100644 --- a/src/main/java/com/mapcode/Mapcode.java +++ b/src/main/java/com/mapcode/Mapcode.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/MapcodeCodec.java b/src/main/java/com/mapcode/MapcodeCodec.java index 11f0d90..b3a57d7 100644 --- a/src/main/java/com/mapcode/MapcodeCodec.java +++ b/src/main/java/com/mapcode/MapcodeCodec.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/MapcodeZone.java b/src/main/java/com/mapcode/MapcodeZone.java index b9b9834..cf13ed1 100644 --- a/src/main/java/com/mapcode/MapcodeZone.java +++ b/src/main/java/com/mapcode/MapcodeZone.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Point.java b/src/main/java/com/mapcode/Point.java index 24e4ed1..7de9ccb 100644 --- a/src/main/java/com/mapcode/Point.java +++ b/src/main/java/com/mapcode/Point.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/Territory.java b/src/main/java/com/mapcode/Territory.java index c54f1c8..043a06e 100644 --- a/src/main/java/com/mapcode/Territory.java +++ b/src/main/java/com/mapcode/Territory.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/UnknownAlphabetException.java b/src/main/java/com/mapcode/UnknownAlphabetException.java index f2e3da1..fcf332e 100644 --- a/src/main/java/com/mapcode/UnknownAlphabetException.java +++ b/src/main/java/com/mapcode/UnknownAlphabetException.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/UnknownMapcodeException.java b/src/main/java/com/mapcode/UnknownMapcodeException.java index 31075c2..792cd48 100644 --- a/src/main/java/com/mapcode/UnknownMapcodeException.java +++ b/src/main/java/com/mapcode/UnknownMapcodeException.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/UnknownPrecisionFormatException.java b/src/main/java/com/mapcode/UnknownPrecisionFormatException.java index 585046f..01d86a4 100644 --- a/src/main/java/com/mapcode/UnknownPrecisionFormatException.java +++ b/src/main/java/com/mapcode/UnknownPrecisionFormatException.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/mapcode/UnknownTerritoryException.java b/src/main/java/com/mapcode/UnknownTerritoryException.java index 7235238..22d02ba 100644 --- a/src/main/java/com/mapcode/UnknownTerritoryException.java +++ b/src/main/java/com/mapcode/UnknownTerritoryException.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) + * Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/resources/com/mapcode/README.md b/src/main/resources/com/mapcode/README.md index da5ab48..e00fac4 100644 --- a/src/main/resources/com/mapcode/README.md +++ b/src/main/resources/com/mapcode/README.md @@ -1,7 +1,7 @@ The binary file "mminfo.dat" is subject to the following copyright and license statements: -Copyright (C) 2014-2016, Stichting Mapcode Foundation (http://www.mapcode.com) +Copyright (C) 2014-2017, Stichting Mapcode Foundation (http://www.mapcode.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/src/site/site.xml b/src/site/site.xml index f0a651b..4d9b53c 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -1,6 +1,6 @@