diff options
author | Marko Zajc <marko@zajc.eu.org> | 2023-08-09 00:34:49 +0200 |
---|---|---|
committer | Marko Zajc <marko@zajc.eu.org> | 2023-08-09 00:34:49 +0200 |
commit | 8264c3c39c2b656593c73ed07436df6033e26a99 (patch) | |
tree | 735ee7c5c3412389072195cd1b798e2e8a22315c | |
parent | 9a7cab4b8e908f825a3ff0c0d5978c5c53f50bf0 (diff) | |
parent | 97e7433b9ead04752ec0e82131ecde915f67605e (diff) |
Merge branch 'development'v1.6.1
-rw-r--r-- | .github/workflows/test.yml | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | LICENSE | 8 | ||||
-rw-r--r-- | README.md | 17 | ||||
-rwxr-xr-x | example/pom.xml | 6 | ||||
-rw-r--r-- | example/src/main/java/org/eu/zajc/akiwrapper/example/AkinatorExample.java (renamed from example/src/main/java/zajc/akiwrapper/AkinatorExample.java) | 16 | ||||
-rw-r--r-- | pom.xml | 28 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/Akiwrapper.java (renamed from src/main/java/com/github/markozajc/akiwrapper/Akiwrapper.java) | 16 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/AkiwrapperBuilder.java (renamed from src/main/java/com/github/markozajc/akiwrapper/AkiwrapperBuilder.java) | 27 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/entities/Guess.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/entities/Guess.java) | 14 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/entities/Identifiable.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/entities/Identifiable.java) | 10 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/entities/Question.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/entities/Question.java) | 14 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/entities/Server.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/entities/Server.java) | 12 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/entities/Status.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/entities/Status.java) | 12 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/entities/impl/GuessImpl.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/entities/impl/GuessImpl.java) | 16 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/entities/impl/QuestionImpl.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/entities/impl/QuestionImpl.java) | 15 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/entities/impl/ServerImpl.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/entities/impl/ServerImpl.java) | 13 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/entities/impl/StatusImpl.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/entities/impl/StatusImpl.java) | 15 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/exceptions/AkinatorException.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/exceptions/AkinatorException.java) | 10 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/exceptions/QuestionsExhaustedException.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/exceptions/QuestionsExhaustedException.java) | 10 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/exceptions/ServerNotFoundException.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/exceptions/ServerNotFoundException.java) | 14 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/exceptions/ServerStatusException.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/exceptions/ServerStatusException.java) | 14 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/exceptions/UndoOutOfBoundsException.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/exceptions/UndoOutOfBoundsException.java) | 12 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/impl/AkiwrapperImpl.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/impl/AkiwrapperImpl.java) | 25 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/utils/ApiKey.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/utils/ApiKey.java) | 12 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/utils/JSONUtils.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/utils/JSONUtils.java) | 10 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/utils/Servers.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/utils/Servers.java) | 17 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/utils/UnirestUtils.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/utils/UnirestUtils.java) | 14 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/utils/Utilities.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/utils/Utilities.java) | 10 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/utils/WorkaroundUtils.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/utils/WorkaroundUtils.java) | 10 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/utils/route/Request.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/utils/route/Request.java) | 21 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/utils/route/Response.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/utils/route/Response.java) | 13 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/utils/route/Route.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/utils/route/Route.java) | 14 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/utils/route/RouteBuilder.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/utils/route/RouteBuilder.java) | 16 | ||||
-rw-r--r-- | src/main/java/org/eu/zajc/akiwrapper/core/utils/route/Routes.java (renamed from src/main/java/com/github/markozajc/akiwrapper/core/utils/route/Routes.java) | 12 | ||||
-rw-r--r-- | src/test/java/org/eu/zajc/akiwrapper/IntegrationTest.java (renamed from src/test/java/com/github/markozajc/akiwrapper/IntegrationTest.java) | 21 | ||||
-rw-r--r-- | src/test/java/org/eu/zajc/akiwrapper/core/entities/IdentifiableTest.java (renamed from src/test/java/com/github/markozajc/akiwrapper/core/entities/IdentifiableTest.java) | 10 | ||||
-rw-r--r-- | src/test/java/org/eu/zajc/akiwrapper/core/entities/impl/immutable/StatusImplTest.java (renamed from src/test/java/com/github/markozajc/akiwrapper/core/entities/impl/immutable/StatusImplTest.java) | 17 | ||||
-rw-r--r-- | src/test/java/org/eu/zajc/akiwrapper/core/utils/JSONUtilsTest.java (renamed from src/test/java/com/github/markozajc/akiwrapper/core/utils/JSONUtilsTest.java) | 12 | ||||
-rw-r--r-- | versions-ruleset.xml | 2 |
39 files changed, 236 insertions, 301 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 258601a..9285790 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml | |||
@@ -28,6 +28,6 @@ jobs: | |||
28 | uses: nick-fields/retry@v2 | 28 | uses: nick-fields/retry@v2 |
29 | with: | 29 | with: |
30 | timeout_minutes: 60 | 30 | timeout_minutes: 60 |
31 | max_attempts: 3 | 31 | max_attempts: 1 |
32 | command: mvn --batch-mode verify -Dmaven.javadoc.skip=true | 32 | command: mvn --batch-mode verify -Dmaven.javadoc.skip=true |
33 | on_retry_command: mvn --batch-mode clean | 33 | on_retry_command: mvn --batch-mode clean |
@@ -1,7 +1,7 @@ | |||
1 | GNU GENERAL PUBLIC LICENSE | 1 | GNU GENERAL PUBLIC LICENSE |
2 | Version 3, 29 June 2007 | 2 | Version 3, 29 June 2007 |
3 | 3 | ||
4 | Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | 4 | Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> |
5 | Everyone is permitted to copy and distribute verbatim copies | 5 | Everyone is permitted to copy and distribute verbatim copies |
6 | of this license document, but changing it is not allowed. | 6 | of this license document, but changing it is not allowed. |
7 | 7 | ||
@@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found. | |||
645 | GNU General Public License for more details. | 645 | GNU General Public License for more details. |
646 | 646 | ||
647 | You should have received a copy of the GNU General Public License | 647 | You should have received a copy of the GNU General Public License |
648 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 648 | along with this program. If not, see <https://www.gnu.org/licenses/>. |
649 | 649 | ||
650 | Also add information on how to contact you by electronic and paper mail. | 650 | Also add information on how to contact you by electronic and paper mail. |
651 | 651 | ||
@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box". | |||
664 | You should also get your employer (if you work as a programmer) or school, | 664 | You should also get your employer (if you work as a programmer) or school, |
665 | if any, to sign a "copyright disclaimer" for the program, if necessary. | 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. |
666 | For more information on this, and how to apply and follow the GNU GPL, see | 666 | For more information on this, and how to apply and follow the GNU GPL, see |
667 | <http://www.gnu.org/licenses/>. | 667 | <https://www.gnu.org/licenses/>. |
668 | 668 | ||
669 | The GNU General Public License does not permit incorporating your program | 669 | The GNU General Public License does not permit incorporating your program |
670 | into proprietary programs. If your program is a subroutine library, you | 670 | into proprietary programs. If your program is a subroutine library, you |
671 | may consider it more useful to permit linking proprietary applications with | 671 | may consider it more useful to permit linking proprietary applications with |
672 | the library. If this is what you want to do, use the GNU Lesser General | 672 | the library. If this is what you want to do, use the GNU Lesser General |
673 | Public License instead of this License. But first, please read | 673 | Public License instead of this License. But first, please read |
674 | <http://www.gnu.org/philosophy/why-not-lgpl.html>. | 674 | <https://www.gnu.org/licenses/why-not-lgpl.html>. |
@@ -1,9 +1,16 @@ | |||
1 | [maven-img]: https://img.shields.io/maven-central/v/com.github.markozajc/akiwrapper.svg?label=Maven%20Central | 1 | [maven-img]: https://img.shields.io/maven-central/v/org.eu.zajc/akiwrapper.svg?label=Maven%20Central |
2 | [maven]: https://mvnrepository.com/artifact/com.github.markozajc/akiwrapper | 2 | [maven]: https://mvnrepository.com/artifact/org.eu.zajc/akiwrapper |
3 | 3 | ||
4 | [build-img]: https://github.com/markozajc/Akiwrapper/actions/workflows/test.yml/badge.svg?branch=master | 4 | [build-img]: https://github.com/markozajc/Akiwrapper/actions/workflows/test.yml/badge.svg?branch=master |
5 | [build]: https://github.com/markozajc/Akiwrapper/actions/workflows/test.yml?query=branch%3Amaster | 5 | [build]: https://github.com/markozajc/Akiwrapper/actions/workflows/test.yml?query=branch%3Amaster |
6 | 6 | ||
7 | > **Warning**\ | ||
8 | > **Relocation notice for 1.6.1 and above:**\ | ||
9 | > Akiwrapper's artifact has relocated from `com.github.markozajc:akiwrapper` to `org.eu.zajc:akiwrapper`. Additionally, | ||
10 | > the same change has been made on the base package name. You will need to change Akiwrapper's dependency's `groupId` | ||
11 | > in your pom.xml or build.gradle (as shown in the installation section) and you will need to replace | ||
12 | > `com.github.markozajc.akiwrapper` with `org.eu.zajc.akiwrapper` in your imports. | ||
13 | |||
7 | # Akiwrapper [![Maven central emblem][maven-img]][maven] [![Build status][build-img]][build] | 14 | # Akiwrapper [![Maven central emblem][maven-img]][maven] [![Build status][build-img]][build] |
8 | Akiwrapper is a Java API wrapper for [Akinator](https://en.akinator.com/), the popular online | 15 | Akiwrapper is a Java API wrapper for [Akinator](https://en.akinator.com/), the popular online |
9 | [20Q-type](https://en.wikipedia.org/wiki/Twenty_questions) game. | 16 | [20Q-type](https://en.wikipedia.org/wiki/Twenty_questions) game. |
@@ -13,15 +20,15 @@ Akiwrapper is a Java API wrapper for [Akinator](https://en.akinator.com/), the p | |||
13 | Add the following dependency to your pom.xml: | 20 | Add the following dependency to your pom.xml: |
14 | ```xml | 21 | ```xml |
15 | <dependency> | 22 | <dependency> |
16 | <groupId>com.github.markozajc</groupId> | 23 | <groupId>org.eu.zajc</groupId> |
17 | <artifactId>akiwrapper</artifactId> | 24 | <artifactId>akiwrapper</artifactId> |
18 | <version>1.6</version> | 25 | <version>1.6.1</version> |
19 | </dependency> | 26 | </dependency> |
20 | ``` | 27 | ``` |
21 | #### Gradle | 28 | #### Gradle |
22 | Add the following dependency to your build.gradle: | 29 | Add the following dependency to your build.gradle: |
23 | ```gradle | 30 | ```gradle |
24 | implementation group: 'com.github.markozajc', name: 'akiwrapper', version: '1.6' | 31 | implementation group: 'org.eu.zajc', name: 'akiwrapper', version: '1.6.1' |
25 | ``` | 32 | ``` |
26 | 33 | ||
27 | ## Usage | 34 | ## Usage |
diff --git a/example/pom.xml b/example/pom.xml index 700a0dd..0699db4 100755 --- a/example/pom.xml +++ b/example/pom.xml | |||
@@ -57,7 +57,7 @@ | |||
57 | <configuration> | 57 | <configuration> |
58 | <transformers> | 58 | <transformers> |
59 | <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | 59 | <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
60 | <mainClass>zajc.akiwrapper.AkinatorExample</mainClass> | 60 | <mainClass>org.eu.zajc.akiwrapper.example.AkinatorExample</mainClass> |
61 | </transformer> | 61 | </transformer> |
62 | </transformers> | 62 | </transformers> |
63 | <createDependencyReducedPom>false</createDependencyReducedPom> | 63 | <createDependencyReducedPom>false</createDependencyReducedPom> |
@@ -72,9 +72,9 @@ | |||
72 | 72 | ||
73 | <dependencies> | 73 | <dependencies> |
74 | <dependency> | 74 | <dependency> |
75 | <groupId>com.github.markozajc</groupId> | 75 | <groupId>org.eu.zajc</groupId> |
76 | <artifactId>akiwrapper</artifactId> | 76 | <artifactId>akiwrapper</artifactId> |
77 | <version>1.6</version> | 77 | <version>1.6.1</version> |
78 | </dependency> | 78 | </dependency> |
79 | </dependencies> | 79 | </dependencies> |
80 | 80 | ||
diff --git a/example/src/main/java/zajc/akiwrapper/AkinatorExample.java b/example/src/main/java/org/eu/zajc/akiwrapper/example/AkinatorExample.java index 0a903e6..569e439 100644 --- a/example/src/main/java/zajc/akiwrapper/AkinatorExample.java +++ b/example/src/main/java/org/eu/zajc/akiwrapper/example/AkinatorExample.java | |||
@@ -1,20 +1,20 @@ | |||
1 | package zajc.akiwrapper; | 1 | package org.eu.zajc.akiwrapper.example; |
2 | 2 | ||
3 | import static com.github.markozajc.akiwrapper.Akiwrapper.Answer.*; | ||
4 | import static com.github.markozajc.akiwrapper.core.entities.Server.GuessType.CHARACTER; | ||
5 | import static com.github.markozajc.akiwrapper.core.entities.Server.Language.ENGLISH; | ||
6 | import static java.lang.Character.toLowerCase; | 3 | import static java.lang.Character.toLowerCase; |
7 | import static java.lang.System.*; | 4 | import static java.lang.System.*; |
8 | import static java.util.stream.Collectors.joining; | 5 | import static java.util.stream.Collectors.joining; |
6 | import static org.eu.zajc.akiwrapper.Akiwrapper.Answer.*; | ||
7 | import static org.eu.zajc.akiwrapper.core.entities.Server.GuessType.CHARACTER; | ||
8 | import static org.eu.zajc.akiwrapper.core.entities.Server.Language.ENGLISH; | ||
9 | 9 | ||
10 | import java.util.*; | 10 | import java.util.*; |
11 | 11 | ||
12 | import javax.annotation.Nonnull; | 12 | import javax.annotation.Nonnull; |
13 | 13 | ||
14 | import com.github.markozajc.akiwrapper.*; | 14 | import org.eu.zajc.akiwrapper.*; |
15 | import com.github.markozajc.akiwrapper.core.entities.*; | 15 | import org.eu.zajc.akiwrapper.core.entities.*; |
16 | import com.github.markozajc.akiwrapper.core.entities.Server.*; | 16 | import org.eu.zajc.akiwrapper.core.entities.Server.*; |
17 | import com.github.markozajc.akiwrapper.core.exceptions.ServerNotFoundException; | 17 | import org.eu.zajc.akiwrapper.core.exceptions.ServerNotFoundException; |
18 | 18 | ||
19 | @SuppressWarnings("javadoc") | 19 | @SuppressWarnings("javadoc") |
20 | public class AkinatorExample { | 20 | public class AkinatorExample { |
@@ -3,9 +3,9 @@ | |||
3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | <modelVersion>4.0.0</modelVersion> | 4 | <modelVersion>4.0.0</modelVersion> |
5 | 5 | ||
6 | <groupId>com.github.markozajc</groupId> | 6 | <groupId>org.eu.zajc</groupId> |
7 | <artifactId>akiwrapper</artifactId> | 7 | <artifactId>akiwrapper</artifactId> |
8 | <version>1.6.0-1</version> | 8 | <version>1.6.1</version> |
9 | 9 | ||
10 | <name>Akiwrapper</name> | 10 | <name>Akiwrapper</name> |
11 | <description>A Java API wrapper for Akinator</description> | 11 | <description>A Java API wrapper for Akinator</description> |
@@ -132,10 +132,9 @@ | |||
132 | <plugin> | 132 | <plugin> |
133 | <groupId>org.apache.maven.plugins</groupId> | 133 | <groupId>org.apache.maven.plugins</groupId> |
134 | <artifactId>maven-enforcer-plugin</artifactId> | 134 | <artifactId>maven-enforcer-plugin</artifactId> |
135 | <version>3.1.0</version> | 135 | <version>3.3.0</version> |
136 | <executions> | 136 | <executions> |
137 | <execution> | 137 | <execution> |
138 | <id>enforce-maven</id> | ||
139 | <goals> | 138 | <goals> |
140 | <goal>enforce</goal> | 139 | <goal>enforce</goal> |
141 | </goals> | 140 | </goals> |
@@ -152,11 +151,12 @@ | |||
152 | 151 | ||
153 | <!-- Javadoc --> | 152 | <!-- Javadoc --> |
154 | <plugin> | 153 | <plugin> |
154 | <groupId>org.apache.maven.plugins</groupId> | ||
155 | <artifactId>maven-javadoc-plugin</artifactId> | 155 | <artifactId>maven-javadoc-plugin</artifactId> |
156 | <version>3.4.0</version> | 156 | <version>3.5.0</version> |
157 | <executions> | 157 | <executions> |
158 | <execution> | 158 | <execution> |
159 | <id>attach-javadocs</id> | 159 | <phase>verify</phase> |
160 | <goals> | 160 | <goals> |
161 | <goal>jar</goal> | 161 | <goal>jar</goal> |
162 | </goals> | 162 | </goals> |
@@ -170,10 +170,10 @@ | |||
170 | <!-- Unit tests --> | 170 | <!-- Unit tests --> |
171 | <plugin> | 171 | <plugin> |
172 | <artifactId>maven-surefire-plugin</artifactId> | 172 | <artifactId>maven-surefire-plugin</artifactId> |
173 | <version>2.22.2</version> | 173 | <version>3.1.2</version> |
174 | <executions> | 174 | <executions> |
175 | <execution> | 175 | <execution> |
176 | <id>test</id> | 176 | <phase>test</phase> |
177 | <goals> | 177 | <goals> |
178 | <goal>test</goal> | 178 | <goal>test</goal> |
179 | </goals> | 179 | </goals> |
@@ -185,7 +185,7 @@ | |||
185 | <plugin> | 185 | <plugin> |
186 | <groupId>org.codehaus.mojo</groupId> | 186 | <groupId>org.codehaus.mojo</groupId> |
187 | <artifactId>versions-maven-plugin</artifactId> | 187 | <artifactId>versions-maven-plugin</artifactId> |
188 | <version>2.11.0</version> | 188 | <version>2.16.0</version> |
189 | <configuration> | 189 | <configuration> |
190 | <rulesUri>file://${project.basedir}/versions-ruleset.xml</rulesUri> | 190 | <rulesUri>file://${project.basedir}/versions-ruleset.xml</rulesUri> |
191 | </configuration> | 191 | </configuration> |
@@ -204,10 +204,9 @@ | |||
204 | <plugin> | 204 | <plugin> |
205 | <groupId>org.apache.maven.plugins</groupId> | 205 | <groupId>org.apache.maven.plugins</groupId> |
206 | <artifactId>maven-source-plugin</artifactId> | 206 | <artifactId>maven-source-plugin</artifactId> |
207 | <version>3.2.1</version> | 207 | <version>3.3.0</version> |
208 | <executions> | 208 | <executions> |
209 | <execution> | 209 | <execution> |
210 | <id>attach-sources</id> | ||
211 | <goals> | 210 | <goals> |
212 | <goal>jar</goal> | 211 | <goal>jar</goal> |
213 | </goals> | 212 | </goals> |
@@ -219,10 +218,9 @@ | |||
219 | <plugin> | 218 | <plugin> |
220 | <groupId>org.apache.maven.plugins</groupId> | 219 | <groupId>org.apache.maven.plugins</groupId> |
221 | <artifactId>maven-gpg-plugin</artifactId> | 220 | <artifactId>maven-gpg-plugin</artifactId> |
222 | <version>3.0.1</version> | 221 | <version>3.1.0</version> |
223 | <executions> | 222 | <executions> |
224 | <execution> | 223 | <execution> |
225 | <id>sign-artifacts</id> | ||
226 | <phase>verify</phase> | 224 | <phase>verify</phase> |
227 | <goals> | 225 | <goals> |
228 | <goal>sign</goal> | 226 | <goal>sign</goal> |
@@ -238,8 +236,8 @@ | |||
238 | <version>1.6.13</version> | 236 | <version>1.6.13</version> |
239 | <extensions>true</extensions> | 237 | <extensions>true</extensions> |
240 | <configuration> | 238 | <configuration> |
241 | <serverId>ossrh</serverId> | 239 | <serverId>${nexus.serverid}</serverId> |
242 | <nexusUrl>https://oss.sonatype.org/</nexusUrl> | 240 | <nexusUrl>${nexus.url}</nexusUrl> |
243 | <autoReleaseAfterClose>false</autoReleaseAfterClose> | 241 | <autoReleaseAfterClose>false</autoReleaseAfterClose> |
244 | </configuration> | 242 | </configuration> |
245 | </plugin> | 243 | </plugin> |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/Akiwrapper.java b/src/main/java/org/eu/zajc/akiwrapper/Akiwrapper.java index d924cc8..c2e9a8b 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/Akiwrapper.java +++ b/src/main/java/org/eu/zajc/akiwrapper/Akiwrapper.java | |||
@@ -3,20 +3,18 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper; | 17 | package org.eu.zajc.akiwrapper; |
20 | 18 | ||
21 | import static java.util.stream.Collectors.toList; | 19 | import static java.util.stream.Collectors.toList; |
22 | 20 | ||
@@ -25,9 +23,9 @@ import java.util.List; | |||
25 | 23 | ||
26 | import javax.annotation.*; | 24 | import javax.annotation.*; |
27 | 25 | ||
28 | import com.github.markozajc.akiwrapper.core.entities.*; | 26 | import org.eu.zajc.akiwrapper.core.entities.*; |
29 | import com.github.markozajc.akiwrapper.core.entities.Server.*; | 27 | import org.eu.zajc.akiwrapper.core.entities.Server.*; |
30 | import com.github.markozajc.akiwrapper.core.exceptions.*; | 28 | import org.eu.zajc.akiwrapper.core.exceptions.*; |
31 | 29 | ||
32 | /** | 30 | /** |
33 | * The "core" of interaction with the Akinator's API.<br> | 31 | * The "core" of interaction with the Akinator's API.<br> |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/AkiwrapperBuilder.java b/src/main/java/org/eu/zajc/akiwrapper/AkiwrapperBuilder.java index 8bb5ed4..e738b59 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/AkiwrapperBuilder.java +++ b/src/main/java/org/eu/zajc/akiwrapper/AkiwrapperBuilder.java | |||
@@ -3,36 +3,33 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper; | 17 | package org.eu.zajc.akiwrapper; |
20 | 18 | ||
21 | import static com.github.markozajc.akiwrapper.core.entities.Server.GuessType.CHARACTER; | ||
22 | import static com.github.markozajc.akiwrapper.core.entities.Server.Language.ENGLISH; | ||
23 | import static com.github.markozajc.akiwrapper.core.utils.Servers.findServers; | ||
24 | import static java.lang.String.format; | 19 | import static java.lang.String.format; |
20 | import static org.eu.zajc.akiwrapper.core.entities.Server.GuessType.CHARACTER; | ||
21 | import static org.eu.zajc.akiwrapper.core.entities.Server.Language.ENGLISH; | ||
22 | import static org.eu.zajc.akiwrapper.core.utils.Servers.findServers; | ||
25 | 23 | ||
26 | import javax.annotation.*; | 24 | import javax.annotation.*; |
27 | 25 | ||
26 | import org.eu.zajc.akiwrapper.core.entities.*; | ||
27 | import org.eu.zajc.akiwrapper.core.entities.Server.*; | ||
28 | import org.eu.zajc.akiwrapper.core.exceptions.*; | ||
29 | import org.eu.zajc.akiwrapper.core.impl.AkiwrapperImpl; | ||
30 | import org.eu.zajc.akiwrapper.core.utils.UnirestUtils; | ||
28 | import org.slf4j.*; | 31 | import org.slf4j.*; |
29 | 32 | ||
30 | import com.github.markozajc.akiwrapper.core.entities.*; | ||
31 | import com.github.markozajc.akiwrapper.core.entities.Server.*; | ||
32 | import com.github.markozajc.akiwrapper.core.exceptions.*; | ||
33 | import com.github.markozajc.akiwrapper.core.impl.AkiwrapperImpl; | ||
34 | import com.github.markozajc.akiwrapper.core.utils.UnirestUtils; | ||
35 | |||
36 | import kong.unirest.UnirestInstance; | 33 | import kong.unirest.UnirestInstance; |
37 | 34 | ||
38 | /** | 35 | /** |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/entities/Guess.java b/src/main/java/org/eu/zajc/akiwrapper/core/entities/Guess.java index fb420d4..730dfbf 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/entities/Guess.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/entities/Guess.java | |||
@@ -3,27 +3,25 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.entities; | 17 | package org.eu.zajc.akiwrapper.core.entities; |
20 | 18 | ||
21 | import java.net.URL; | 19 | import java.net.URL; |
22 | 20 | ||
23 | import javax.annotation.*; | 21 | import javax.annotation.*; |
24 | 22 | ||
25 | import com.github.markozajc.akiwrapper.*; | 23 | import org.eu.zajc.akiwrapper.*; |
26 | import com.github.markozajc.akiwrapper.core.entities.Server.GuessType; | 24 | import org.eu.zajc.akiwrapper.core.entities.Server.GuessType; |
27 | 25 | ||
28 | /** | 26 | /** |
29 | * A representation of Akinator's guess. A guess may span different types of subject, | 27 | * A representation of Akinator's guess. A guess may span different types of subject, |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/entities/Identifiable.java b/src/main/java/org/eu/zajc/akiwrapper/core/entities/Identifiable.java index 995950a..273ac83 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/entities/Identifiable.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/entities/Identifiable.java | |||
@@ -3,20 +3,18 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.entities; | 17 | package org.eu.zajc.akiwrapper.core.entities; |
20 | 18 | ||
21 | import javax.annotation.Nonnull; | 19 | import javax.annotation.Nonnull; |
22 | 20 | ||
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/entities/Question.java b/src/main/java/org/eu/zajc/akiwrapper/core/entities/Question.java index 7a36857..44160c6 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/entities/Question.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/entities/Question.java | |||
@@ -3,25 +3,23 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.entities; | 17 | package org.eu.zajc.akiwrapper.core.entities; |
20 | 18 | ||
21 | import javax.annotation.Nonnull; | 19 | import javax.annotation.Nonnull; |
22 | 20 | ||
23 | import com.github.markozajc.akiwrapper.Akiwrapper.Answer; | 21 | import org.eu.zajc.akiwrapper.Akiwrapper.Answer; |
24 | import com.github.markozajc.akiwrapper.AkiwrapperBuilder; | 22 | import org.eu.zajc.akiwrapper.AkiwrapperBuilder; |
25 | 23 | ||
26 | /** | 24 | /** |
27 | * A representation of Akinator's question that is to be answered with an | 25 | * A representation of Akinator's question that is to be answered with an |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/entities/Server.java b/src/main/java/org/eu/zajc/akiwrapper/core/entities/Server.java index 1a4081b..168ad43 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/entities/Server.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/entities/Server.java | |||
@@ -3,24 +3,22 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.entities; | 17 | package org.eu.zajc.akiwrapper.core.entities; |
20 | 18 | ||
21 | import javax.annotation.*; | 19 | import javax.annotation.*; |
22 | 20 | ||
23 | import com.github.markozajc.akiwrapper.core.utils.Servers; | 21 | import org.eu.zajc.akiwrapper.core.utils.Servers; |
24 | 22 | ||
25 | import kong.unirest.UnirestInstance; | 23 | import kong.unirest.UnirestInstance; |
26 | 24 | ||
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/entities/Status.java b/src/main/java/org/eu/zajc/akiwrapper/core/entities/Status.java index 724dc17..28820c5 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/entities/Status.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/entities/Status.java | |||
@@ -3,26 +3,24 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.entities; | 17 | package org.eu.zajc.akiwrapper.core.entities; |
20 | 18 | ||
21 | import java.io.Serializable; | 19 | import java.io.Serializable; |
22 | 20 | ||
23 | import javax.annotation.*; | 21 | import javax.annotation.*; |
24 | 22 | ||
25 | import com.github.markozajc.akiwrapper.core.exceptions.ServerStatusException; | 23 | import org.eu.zajc.akiwrapper.core.exceptions.ServerStatusException; |
26 | 24 | ||
27 | /** | 25 | /** |
28 | * An interface used to represent API call's completion status. | 26 | * An interface used to represent API call's completion status. |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/entities/impl/GuessImpl.java b/src/main/java/org/eu/zajc/akiwrapper/core/entities/impl/GuessImpl.java index 7f416ed..a5ec4c1 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/entities/impl/GuessImpl.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/entities/impl/GuessImpl.java | |||
@@ -3,32 +3,30 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.entities.impl; | ||
20 | 17 | ||
21 | import static com.github.markozajc.akiwrapper.core.utils.JSONUtils.*; | 18 | package org.eu.zajc.akiwrapper.core.entities.impl; |
19 | |||
22 | import static java.lang.Double.compare; | 20 | import static java.lang.Double.compare; |
21 | import static org.eu.zajc.akiwrapper.core.utils.JSONUtils.*; | ||
23 | 22 | ||
24 | import java.net.*; | 23 | import java.net.*; |
25 | 24 | ||
26 | import javax.annotation.*; | 25 | import javax.annotation.*; |
27 | 26 | ||
27 | import org.eu.zajc.akiwrapper.core.entities.Guess; | ||
28 | import org.json.JSONObject; | 28 | import org.json.JSONObject; |
29 | 29 | ||
30 | import com.github.markozajc.akiwrapper.core.entities.Guess; | ||
31 | |||
32 | /** | 30 | /** |
33 | * <b>Note:</b> This is an internal class and its internals are subject to change | 31 | * <b>Note:</b> This is an internal class and its internals are subject to change |
34 | * without prior deprecation. Use with caution.<br> | 32 | * without prior deprecation. Use with caution.<br> |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/entities/impl/QuestionImpl.java b/src/main/java/org/eu/zajc/akiwrapper/core/entities/impl/QuestionImpl.java index bb85a28..5a8bd02 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/entities/impl/QuestionImpl.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/entities/impl/QuestionImpl.java | |||
@@ -3,29 +3,26 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.entities.impl; | 17 | package org.eu.zajc.akiwrapper.core.entities.impl; |
20 | 18 | ||
21 | import static com.github.markozajc.akiwrapper.core.utils.JSONUtils.*; | 19 | import static org.eu.zajc.akiwrapper.core.utils.JSONUtils.*; |
22 | 20 | ||
23 | import javax.annotation.*; | 21 | import javax.annotation.*; |
24 | 22 | ||
23 | import org.eu.zajc.akiwrapper.core.entities.Question; | ||
25 | import org.json.JSONObject; | 24 | import org.json.JSONObject; |
26 | 25 | ||
27 | import com.github.markozajc.akiwrapper.core.entities.Question; | ||
28 | |||
29 | /** | 26 | /** |
30 | * <b>Note:</b> This is an internal class and its internals are subject to change | 27 | * <b>Note:</b> This is an internal class and its internals are subject to change |
31 | * without prior deprecation. Use with caution.<br> | 28 | * without prior deprecation. Use with caution.<br> |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/entities/impl/ServerImpl.java b/src/main/java/org/eu/zajc/akiwrapper/core/entities/impl/ServerImpl.java index c376bec..aedd43f 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/entities/impl/ServerImpl.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/entities/impl/ServerImpl.java | |||
@@ -3,20 +3,18 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.entities.impl; | 17 | package org.eu.zajc.akiwrapper.core.entities.impl; |
20 | 18 | ||
21 | import static java.nio.charset.StandardCharsets.UTF_8; | 19 | import static java.nio.charset.StandardCharsets.UTF_8; |
22 | 20 | ||
@@ -26,7 +24,8 @@ import java.util.stream.Collectors; | |||
26 | 24 | ||
27 | import javax.annotation.Nonnull; | 25 | import javax.annotation.Nonnull; |
28 | 26 | ||
29 | import com.github.markozajc.akiwrapper.core.entities.Server; | 27 | import org.eu.zajc.akiwrapper.core.entities.Server; |
28 | |||
30 | import com.jcabi.xml.XML; | 29 | import com.jcabi.xml.XML; |
31 | 30 | ||
32 | /** | 31 | /** |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/entities/impl/StatusImpl.java b/src/main/java/org/eu/zajc/akiwrapper/core/entities/impl/StatusImpl.java index 0aaf6fa..4c05285 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/entities/impl/StatusImpl.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/entities/impl/StatusImpl.java | |||
@@ -3,29 +3,26 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.entities.impl; | 17 | package org.eu.zajc.akiwrapper.core.entities.impl; |
20 | 18 | ||
21 | import static com.github.markozajc.akiwrapper.core.entities.Status.Reason.UNKNOWN; | 19 | import static org.eu.zajc.akiwrapper.core.entities.Status.Reason.UNKNOWN; |
22 | 20 | ||
23 | import javax.annotation.*; | 21 | import javax.annotation.*; |
24 | 22 | ||
23 | import org.eu.zajc.akiwrapper.core.entities.Status; | ||
25 | import org.json.JSONObject; | 24 | import org.json.JSONObject; |
26 | 25 | ||
27 | import com.github.markozajc.akiwrapper.core.entities.Status; | ||
28 | |||
29 | /** | 26 | /** |
30 | * <b>Note:</b> This is an internal class and its internals are subject to change | 27 | * <b>Note:</b> This is an internal class and its internals are subject to change |
31 | * without prior deprecation. Use with caution.<br> | 28 | * without prior deprecation. Use with caution.<br> |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/exceptions/AkinatorException.java b/src/main/java/org/eu/zajc/akiwrapper/core/exceptions/AkinatorException.java index 52f3dc3..d776678 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/exceptions/AkinatorException.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/exceptions/AkinatorException.java | |||
@@ -3,20 +3,18 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.exceptions; | 17 | package org.eu.zajc.akiwrapper.core.exceptions; |
20 | 18 | ||
21 | import javax.annotation.*; | 19 | import javax.annotation.*; |
22 | 20 | ||
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/exceptions/QuestionsExhaustedException.java b/src/main/java/org/eu/zajc/akiwrapper/core/exceptions/QuestionsExhaustedException.java index a592932..7b9a342 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/exceptions/QuestionsExhaustedException.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/exceptions/QuestionsExhaustedException.java | |||
@@ -3,20 +3,18 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.exceptions; | 17 | package org.eu.zajc.akiwrapper.core.exceptions; |
20 | 18 | ||
21 | /** | 19 | /** |
22 | * An exception indicating that there is no question left to answer or fetch. | 20 | * An exception indicating that there is no question left to answer or fetch. |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/exceptions/ServerNotFoundException.java b/src/main/java/org/eu/zajc/akiwrapper/core/exceptions/ServerNotFoundException.java index cfb3733..516e95e 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/exceptions/ServerNotFoundException.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/exceptions/ServerNotFoundException.java | |||
@@ -3,25 +3,23 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.exceptions; | 17 | package org.eu.zajc.akiwrapper.core.exceptions; |
20 | 18 | ||
21 | import javax.annotation.Nonnull; | 19 | import javax.annotation.Nonnull; |
22 | 20 | ||
23 | import com.github.markozajc.akiwrapper.core.entities.Server; | 21 | import org.eu.zajc.akiwrapper.core.entities.Server; |
24 | import com.github.markozajc.akiwrapper.core.entities.Server.*; | 22 | import org.eu.zajc.akiwrapper.core.entities.Server.*; |
25 | 23 | ||
26 | /** | 24 | /** |
27 | * An exception indicating that no {@link Server} could be found for the given | 25 | * An exception indicating that no {@link Server} could be found for the given |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/exceptions/ServerStatusException.java b/src/main/java/org/eu/zajc/akiwrapper/core/exceptions/ServerStatusException.java index 7dcdd28..790f247 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/exceptions/ServerStatusException.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/exceptions/ServerStatusException.java | |||
@@ -3,23 +3,21 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.exceptions; | 17 | package org.eu.zajc.akiwrapper.core.exceptions; |
20 | 18 | ||
21 | import com.github.markozajc.akiwrapper.core.entities.Status; | 19 | import org.eu.zajc.akiwrapper.core.entities.Status; |
22 | import com.github.markozajc.akiwrapper.core.entities.Status.Level; | 20 | import org.eu.zajc.akiwrapper.core.entities.Status.Level; |
23 | 21 | ||
24 | import kong.unirest.HttpResponse; | 22 | import kong.unirest.HttpResponse; |
25 | 23 | ||
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/exceptions/UndoOutOfBoundsException.java b/src/main/java/org/eu/zajc/akiwrapper/core/exceptions/UndoOutOfBoundsException.java index da4c108..e3e706e 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/exceptions/UndoOutOfBoundsException.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/exceptions/UndoOutOfBoundsException.java | |||
@@ -3,22 +3,20 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.exceptions; | 17 | package org.eu.zajc.akiwrapper.core.exceptions; |
20 | 18 | ||
21 | import com.github.markozajc.akiwrapper.Akiwrapper; | 19 | import org.eu.zajc.akiwrapper.Akiwrapper; |
22 | 20 | ||
23 | /** | 21 | /** |
24 | * An exception indicating that {@link Akiwrapper#undoAnswer()} has been called on | 22 | * An exception indicating that {@link Akiwrapper#undoAnswer()} has been called on |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/impl/AkiwrapperImpl.java b/src/main/java/org/eu/zajc/akiwrapper/core/impl/AkiwrapperImpl.java index a3059ec..32b47c6 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/impl/AkiwrapperImpl.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/impl/AkiwrapperImpl.java | |||
@@ -3,28 +3,26 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.impl; | 17 | package org.eu.zajc.akiwrapper.core.impl; |
20 | 18 | ||
21 | import static com.github.markozajc.akiwrapper.core.entities.Status.Reason.QUESTIONS_EXHAUSTED; | ||
22 | import static com.github.markozajc.akiwrapper.core.utils.route.Routes.*; | ||
23 | import static java.lang.Integer.parseInt; | 19 | import static java.lang.Integer.parseInt; |
24 | import static java.lang.Long.parseLong; | 20 | import static java.lang.Long.parseLong; |
25 | import static java.lang.String.format; | 21 | import static java.lang.String.format; |
26 | import static java.util.stream.Collectors.toUnmodifiableList; | 22 | import static java.util.stream.Collectors.toUnmodifiableList; |
27 | import static java.util.stream.StreamSupport.stream; | 23 | import static java.util.stream.StreamSupport.stream; |
24 | import static org.eu.zajc.akiwrapper.core.entities.Status.Reason.QUESTIONS_EXHAUSTED; | ||
25 | import static org.eu.zajc.akiwrapper.core.utils.route.Routes.*; | ||
28 | 26 | ||
29 | import java.util.List; | 27 | import java.util.List; |
30 | 28 | ||
@@ -32,15 +30,14 @@ import javax.annotation.Nonnull; | |||
32 | 30 | ||
33 | import org.eclipse.collections.api.factory.primitive.LongSets; | 31 | import org.eclipse.collections.api.factory.primitive.LongSets; |
34 | import org.eclipse.collections.api.set.primitive.MutableLongSet; | 32 | import org.eclipse.collections.api.set.primitive.MutableLongSet; |
33 | import org.eu.zajc.akiwrapper.Akiwrapper; | ||
34 | import org.eu.zajc.akiwrapper.core.entities.*; | ||
35 | import org.eu.zajc.akiwrapper.core.entities.impl.*; | ||
36 | import org.eu.zajc.akiwrapper.core.exceptions.*; | ||
37 | import org.eu.zajc.akiwrapper.core.utils.ApiKey; | ||
35 | import org.json.JSONObject; | 38 | import org.json.JSONObject; |
36 | import org.slf4j.*; | 39 | import org.slf4j.*; |
37 | 40 | ||
38 | import com.github.markozajc.akiwrapper.Akiwrapper; | ||
39 | import com.github.markozajc.akiwrapper.core.entities.*; | ||
40 | import com.github.markozajc.akiwrapper.core.entities.impl.*; | ||
41 | import com.github.markozajc.akiwrapper.core.exceptions.*; | ||
42 | import com.github.markozajc.akiwrapper.core.utils.ApiKey; | ||
43 | |||
44 | import kong.unirest.UnirestInstance; | 41 | import kong.unirest.UnirestInstance; |
45 | 42 | ||
46 | /** | 43 | /** |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/utils/ApiKey.java b/src/main/java/org/eu/zajc/akiwrapper/core/utils/ApiKey.java index 002a309..c070cb4 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/utils/ApiKey.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/utils/ApiKey.java | |||
@@ -3,20 +3,18 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.utils; | 17 | package org.eu.zajc.akiwrapper.core.utils; |
20 | 18 | ||
21 | import static java.lang.String.format; | 19 | import static java.lang.String.format; |
22 | import static java.nio.charset.StandardCharsets.UTF_8; | 20 | import static java.nio.charset.StandardCharsets.UTF_8; |
@@ -27,7 +25,7 @@ import java.util.regex.Pattern; | |||
27 | 25 | ||
28 | import javax.annotation.Nonnull; | 26 | import javax.annotation.Nonnull; |
29 | 27 | ||
30 | import com.github.markozajc.akiwrapper.core.utils.route.Route; | 28 | import org.eu.zajc.akiwrapper.core.utils.route.Route; |
31 | 29 | ||
32 | import kong.unirest.UnirestInstance; | 30 | import kong.unirest.UnirestInstance; |
33 | 31 | ||
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/utils/JSONUtils.java b/src/main/java/org/eu/zajc/akiwrapper/core/utils/JSONUtils.java index fb1a649..57fa1a3 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/utils/JSONUtils.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/utils/JSONUtils.java | |||
@@ -3,20 +3,18 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.utils; | 17 | package org.eu.zajc.akiwrapper.core.utils; |
20 | 18 | ||
21 | import static java.lang.Double.parseDouble; | 19 | import static java.lang.Double.parseDouble; |
22 | import static java.lang.Integer.parseInt; | 20 | import static java.lang.Integer.parseInt; |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/utils/Servers.java b/src/main/java/org/eu/zajc/akiwrapper/core/utils/Servers.java index 68d4f77..0694f5c 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/utils/Servers.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/utils/Servers.java | |||
@@ -3,20 +3,18 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.utils; | 17 | package org.eu.zajc.akiwrapper.core.utils; |
20 | 18 | ||
21 | import static java.util.stream.Collectors.toList; | 19 | import static java.util.stream.Collectors.toList; |
22 | 20 | ||
@@ -25,9 +23,10 @@ import java.util.stream.Stream; | |||
25 | 23 | ||
26 | import javax.annotation.Nonnull; | 24 | import javax.annotation.Nonnull; |
27 | 25 | ||
28 | import com.github.markozajc.akiwrapper.core.entities.Server; | 26 | import org.eu.zajc.akiwrapper.core.entities.Server; |
29 | import com.github.markozajc.akiwrapper.core.entities.Server.*; | 27 | import org.eu.zajc.akiwrapper.core.entities.Server.*; |
30 | import com.github.markozajc.akiwrapper.core.entities.impl.ServerImpl; | 28 | import org.eu.zajc.akiwrapper.core.entities.impl.ServerImpl; |
29 | |||
31 | import com.jcabi.xml.XMLDocument; | 30 | import com.jcabi.xml.XMLDocument; |
32 | 31 | ||
33 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | 32 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/utils/UnirestUtils.java b/src/main/java/org/eu/zajc/akiwrapper/core/utils/UnirestUtils.java index fef9350..0afcee1 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/utils/UnirestUtils.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/utils/UnirestUtils.java | |||
@@ -3,27 +3,25 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.utils; | 17 | package org.eu.zajc.akiwrapper.core.utils; |
20 | 18 | ||
21 | import static com.github.markozajc.akiwrapper.core.utils.WorkaroundUtils.workaroundIncompleteChain; | ||
22 | import static kong.unirest.Unirest.spawnInstance; | 19 | import static kong.unirest.Unirest.spawnInstance; |
20 | import static org.eu.zajc.akiwrapper.core.utils.WorkaroundUtils.workaroundIncompleteChain; | ||
23 | 21 | ||
24 | import javax.annotation.Nonnull; | 22 | import javax.annotation.Nonnull; |
25 | 23 | ||
26 | import com.github.markozajc.akiwrapper.AkiwrapperBuilder; | 24 | import org.eu.zajc.akiwrapper.AkiwrapperBuilder; |
27 | 25 | ||
28 | import kong.unirest.UnirestInstance; | 26 | import kong.unirest.UnirestInstance; |
29 | 27 | ||
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/utils/Utilities.java b/src/main/java/org/eu/zajc/akiwrapper/core/utils/Utilities.java index 8c7e29e..09ac511 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/utils/Utilities.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/utils/Utilities.java | |||
@@ -3,20 +3,18 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.utils; | 17 | package org.eu.zajc.akiwrapper.core.utils; |
20 | 18 | ||
21 | import static java.lang.Thread.*; | 19 | import static java.lang.Thread.*; |
22 | 20 | ||
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/utils/WorkaroundUtils.java b/src/main/java/org/eu/zajc/akiwrapper/core/utils/WorkaroundUtils.java index 04b033a..6222ef9 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/utils/WorkaroundUtils.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/utils/WorkaroundUtils.java | |||
@@ -3,20 +3,18 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.utils; | 17 | package org.eu.zajc.akiwrapper.core.utils; |
20 | 18 | ||
21 | import static java.util.Arrays.stream; | 19 | import static java.util.Arrays.stream; |
22 | 20 | ||
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/utils/route/Request.java b/src/main/java/org/eu/zajc/akiwrapper/core/utils/route/Request.java index 6d95a3b..6c6753f 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/utils/route/Request.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/utils/route/Request.java | |||
@@ -3,39 +3,36 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.utils.route; | 17 | package org.eu.zajc.akiwrapper.core.utils.route; |
20 | 18 | ||
21 | import static com.github.markozajc.akiwrapper.core.entities.Status.Level.ERROR; | ||
22 | import static com.github.markozajc.akiwrapper.core.utils.Utilities.sleepUnchecked; | ||
23 | import static com.github.markozajc.akiwrapper.core.utils.route.Route.*; | ||
24 | import static java.lang.String.format; | 19 | import static java.lang.String.format; |
25 | import static java.time.Duration.ofSeconds; | 20 | import static java.time.Duration.ofSeconds; |
26 | import static java.util.stream.Collectors.joining; | 21 | import static java.util.stream.Collectors.joining; |
22 | import static org.eu.zajc.akiwrapper.core.entities.Status.Level.ERROR; | ||
23 | import static org.eu.zajc.akiwrapper.core.utils.Utilities.sleepUnchecked; | ||
24 | import static org.eu.zajc.akiwrapper.core.utils.route.Route.*; | ||
27 | import static org.slf4j.LoggerFactory.getLogger; | 25 | import static org.slf4j.LoggerFactory.getLogger; |
28 | 26 | ||
29 | import java.util.*; | 27 | import java.util.*; |
30 | 28 | ||
31 | import javax.annotation.*; | 29 | import javax.annotation.*; |
32 | 30 | ||
31 | import org.eu.zajc.akiwrapper.core.entities.impl.StatusImpl; | ||
32 | import org.eu.zajc.akiwrapper.core.exceptions.*; | ||
33 | import org.json.*; | 33 | import org.json.*; |
34 | import org.slf4j.Logger; | 34 | import org.slf4j.Logger; |
35 | 35 | ||
36 | import com.github.markozajc.akiwrapper.core.entities.impl.StatusImpl; | ||
37 | import com.github.markozajc.akiwrapper.core.exceptions.*; | ||
38 | |||
39 | import kong.unirest.*; | 36 | import kong.unirest.*; |
40 | 37 | ||
41 | @SuppressWarnings("javadoc") // internal util | 38 | @SuppressWarnings("javadoc") // internal util |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/utils/route/Response.java b/src/main/java/org/eu/zajc/akiwrapper/core/utils/route/Response.java index e6aa7ec..2d3a10a 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/utils/route/Response.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/utils/route/Response.java | |||
@@ -3,27 +3,24 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.utils.route; | 17 | package org.eu.zajc.akiwrapper.core.utils.route; |
20 | 18 | ||
21 | import javax.annotation.Nonnull; | 19 | import javax.annotation.Nonnull; |
22 | 20 | ||
21 | import org.eu.zajc.akiwrapper.core.entities.Status; | ||
23 | import org.json.JSONObject; | 22 | import org.json.JSONObject; |
24 | 23 | ||
25 | import com.github.markozajc.akiwrapper.core.entities.Status; | ||
26 | |||
27 | @SuppressWarnings("javadoc") // internal util | 24 | @SuppressWarnings("javadoc") // internal util |
28 | public class Response { | 25 | public class Response { |
29 | 26 | ||
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/utils/route/Route.java b/src/main/java/org/eu/zajc/akiwrapper/core/utils/route/Route.java index 69029cb..eb12dd6 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/utils/route/Route.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/utils/route/Route.java | |||
@@ -3,25 +3,23 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.utils.route; | 17 | package org.eu.zajc.akiwrapper.core.utils.route; |
20 | 18 | ||
21 | import static com.github.markozajc.akiwrapper.core.utils.route.Route.Endpoint.GAME_SERVER; | ||
22 | import static java.lang.String.format; | 19 | import static java.lang.String.format; |
23 | import static java.nio.charset.StandardCharsets.UTF_8; | 20 | import static java.nio.charset.StandardCharsets.UTF_8; |
24 | import static java.util.stream.Collectors.joining; | 21 | import static java.util.stream.Collectors.joining; |
22 | import static org.eu.zajc.akiwrapper.core.utils.route.Route.Endpoint.GAME_SERVER; | ||
25 | 23 | ||
26 | import java.net.URLEncoder; | 24 | import java.net.URLEncoder; |
27 | import java.util.*; | 25 | import java.util.*; |
@@ -29,7 +27,7 @@ import java.util.function.Supplier; | |||
29 | 27 | ||
30 | import javax.annotation.*; | 28 | import javax.annotation.*; |
31 | 29 | ||
32 | import com.github.markozajc.akiwrapper.core.impl.AkiwrapperImpl; | 30 | import org.eu.zajc.akiwrapper.core.impl.AkiwrapperImpl; |
33 | 31 | ||
34 | @SuppressWarnings("javadoc") // internal util | 32 | @SuppressWarnings("javadoc") // internal util |
35 | public final class Route { | 33 | public final class Route { |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/utils/route/RouteBuilder.java b/src/main/java/org/eu/zajc/akiwrapper/core/utils/route/RouteBuilder.java index 5ed37a2..c15103d 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/utils/route/RouteBuilder.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/utils/route/RouteBuilder.java | |||
@@ -3,31 +3,29 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.utils.route; | 17 | package org.eu.zajc.akiwrapper.core.utils.route; |
20 | 18 | ||
21 | import static com.github.markozajc.akiwrapper.core.utils.route.Route.formatParameters; | ||
22 | import static com.github.markozajc.akiwrapper.core.utils.route.Route.Endpoint.GAME_SERVER; | ||
23 | import static java.lang.System.currentTimeMillis; | 19 | import static java.lang.System.currentTimeMillis; |
20 | import static org.eu.zajc.akiwrapper.core.utils.route.Route.formatParameters; | ||
21 | import static org.eu.zajc.akiwrapper.core.utils.route.Route.Endpoint.GAME_SERVER; | ||
24 | 22 | ||
25 | import java.util.*; | 23 | import java.util.*; |
26 | import java.util.function.Supplier; | 24 | import java.util.function.Supplier; |
27 | 25 | ||
28 | import javax.annotation.*; | 26 | import javax.annotation.*; |
29 | 27 | ||
30 | import com.github.markozajc.akiwrapper.core.utils.route.Route.Endpoint; | 28 | import org.eu.zajc.akiwrapper.core.utils.route.Route.Endpoint; |
31 | 29 | ||
32 | @SuppressWarnings("javadoc") // internal util | 30 | @SuppressWarnings("javadoc") // internal util |
33 | public class RouteBuilder { | 31 | public class RouteBuilder { |
diff --git a/src/main/java/com/github/markozajc/akiwrapper/core/utils/route/Routes.java b/src/main/java/org/eu/zajc/akiwrapper/core/utils/route/Routes.java index 4f1fd19..5ddd0e5 100644 --- a/src/main/java/com/github/markozajc/akiwrapper/core/utils/route/Routes.java +++ b/src/main/java/org/eu/zajc/akiwrapper/core/utils/route/Routes.java | |||
@@ -3,22 +3,20 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.utils.route; | 17 | package org.eu.zajc.akiwrapper.core.utils.route; |
20 | 18 | ||
21 | import static com.github.markozajc.akiwrapper.core.utils.route.Route.Endpoint.*; | 19 | import static org.eu.zajc.akiwrapper.core.utils.route.Route.Endpoint.*; |
22 | 20 | ||
23 | @SuppressWarnings("javadoc") // internal util | 21 | @SuppressWarnings("javadoc") // internal util |
24 | public final class Routes { | 22 | public final class Routes { |
diff --git a/src/test/java/com/github/markozajc/akiwrapper/IntegrationTest.java b/src/test/java/org/eu/zajc/akiwrapper/IntegrationTest.java index 86bdfa0..f9abb14 100644 --- a/src/test/java/com/github/markozajc/akiwrapper/IntegrationTest.java +++ b/src/test/java/org/eu/zajc/akiwrapper/IntegrationTest.java | |||
@@ -3,23 +3,21 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper; | 17 | package org.eu.zajc.akiwrapper; |
20 | 18 | ||
21 | import static com.github.markozajc.akiwrapper.Akiwrapper.Answer.YES; | ||
22 | import static java.lang.String.format; | 19 | import static java.lang.String.format; |
20 | import static org.eu.zajc.akiwrapper.Akiwrapper.Answer.YES; | ||
23 | import static org.junit.jupiter.api.Assumptions.abort; | 21 | import static org.junit.jupiter.api.Assumptions.abort; |
24 | import static org.slf4j.LoggerFactory.getLogger; | 22 | import static org.slf4j.LoggerFactory.getLogger; |
25 | 23 | ||
@@ -28,16 +26,15 @@ import java.util.stream.Stream; | |||
28 | 26 | ||
29 | import javax.annotation.*; | 27 | import javax.annotation.*; |
30 | 28 | ||
29 | import org.eu.zajc.akiwrapper.Akiwrapper.Answer; | ||
30 | import org.eu.zajc.akiwrapper.core.entities.*; | ||
31 | import org.eu.zajc.akiwrapper.core.entities.Server.*; | ||
32 | import org.eu.zajc.akiwrapper.core.exceptions.*; | ||
31 | import org.junit.jupiter.params.ParameterizedTest; | 33 | import org.junit.jupiter.params.ParameterizedTest; |
32 | import org.junit.jupiter.params.provider.*; | 34 | import org.junit.jupiter.params.provider.*; |
33 | import org.opentest4j.TestAbortedException; | 35 | import org.opentest4j.TestAbortedException; |
34 | import org.slf4j.Logger; | 36 | import org.slf4j.Logger; |
35 | 37 | ||
36 | import com.github.markozajc.akiwrapper.Akiwrapper.Answer; | ||
37 | import com.github.markozajc.akiwrapper.core.entities.*; | ||
38 | import com.github.markozajc.akiwrapper.core.entities.Server.*; | ||
39 | import com.github.markozajc.akiwrapper.core.exceptions.*; | ||
40 | |||
41 | import static org.junit.jupiter.api.Assertions.*; | 38 | import static org.junit.jupiter.api.Assertions.*; |
42 | 39 | ||
43 | class IntegrationTest { | 40 | class IntegrationTest { |
diff --git a/src/test/java/com/github/markozajc/akiwrapper/core/entities/IdentifiableTest.java b/src/test/java/org/eu/zajc/akiwrapper/core/entities/IdentifiableTest.java index 986365e..5189ccd 100644 --- a/src/test/java/com/github/markozajc/akiwrapper/core/entities/IdentifiableTest.java +++ b/src/test/java/org/eu/zajc/akiwrapper/core/entities/IdentifiableTest.java | |||
@@ -3,20 +3,18 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.entities; | 17 | package org.eu.zajc.akiwrapper.core.entities; |
20 | 18 | ||
21 | import org.junit.jupiter.api.Test; | 19 | import org.junit.jupiter.api.Test; |
22 | 20 | ||
diff --git a/src/test/java/com/github/markozajc/akiwrapper/core/entities/impl/immutable/StatusImplTest.java b/src/test/java/org/eu/zajc/akiwrapper/core/entities/impl/immutable/StatusImplTest.java index c2f06cb..bfb2ad6 100644 --- a/src/test/java/com/github/markozajc/akiwrapper/core/entities/impl/immutable/StatusImplTest.java +++ b/src/test/java/org/eu/zajc/akiwrapper/core/entities/impl/immutable/StatusImplTest.java | |||
@@ -3,35 +3,32 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.entities.impl.immutable; | 17 | package org.eu.zajc.akiwrapper.core.entities.impl.immutable; |
20 | 18 | ||
21 | import static com.github.markozajc.akiwrapper.core.entities.Status.Reason.*; | 19 | import static org.eu.zajc.akiwrapper.core.entities.Status.Reason.*; |
22 | import static org.junit.jupiter.params.provider.EnumSource.Mode.EXCLUDE; | 20 | import static org.junit.jupiter.params.provider.EnumSource.Mode.EXCLUDE; |
23 | 21 | ||
24 | import java.util.stream.Stream; | 22 | import java.util.stream.Stream; |
25 | 23 | ||
26 | import javax.annotation.Nonnull; | 24 | import javax.annotation.Nonnull; |
27 | 25 | ||
26 | import org.eu.zajc.akiwrapper.core.entities.Status.Level; | ||
27 | import org.eu.zajc.akiwrapper.core.entities.impl.StatusImpl; | ||
28 | import org.junit.jupiter.api.Test; | 28 | import org.junit.jupiter.api.Test; |
29 | import org.junit.jupiter.params.ParameterizedTest; | 29 | import org.junit.jupiter.params.ParameterizedTest; |
30 | import org.junit.jupiter.params.provider.*; | 30 | import org.junit.jupiter.params.provider.*; |
31 | 31 | ||
32 | import com.github.markozajc.akiwrapper.core.entities.Status.Level; | ||
33 | import com.github.markozajc.akiwrapper.core.entities.impl.StatusImpl; | ||
34 | |||
35 | import static org.junit.jupiter.api.Assertions.*; | 32 | import static org.junit.jupiter.api.Assertions.*; |
36 | 33 | ||
37 | class StatusImplTest { | 34 | class StatusImplTest { |
diff --git a/src/test/java/com/github/markozajc/akiwrapper/core/utils/JSONUtilsTest.java b/src/test/java/org/eu/zajc/akiwrapper/core/utils/JSONUtilsTest.java index 93e3388..f7e07f6 100644 --- a/src/test/java/com/github/markozajc/akiwrapper/core/utils/JSONUtilsTest.java +++ b/src/test/java/org/eu/zajc/akiwrapper/core/utils/JSONUtilsTest.java | |||
@@ -3,22 +3,20 @@ | |||
3 | * Akiwrapper, the Java API wrapper for Akinator | 3 | * Akiwrapper, the Java API wrapper for Akinator |
4 | * Copyright (C) 2017-2023 Marko Zajc | 4 | * Copyright (C) 2017-2023 Marko Zajc |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it under the | 6 | * This program is free software: you can redistribute it and/or modify it under the |
7 | * terms of the GNU General Public License as published by the Free Software | 7 | * terms of the GNU General Public License as published by the Free Software |
8 | * Foundation; either version 3 of the License, or (at your option) any later | 8 | * Foundation, version 3. |
9 | * version. | ||
10 | * | 9 | * |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 | * | 13 | * |
15 | * You should have received a copy of the GNU General Public License along with this | 14 | * You should have received a copy of the GNU General Public License along with this |
16 | * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, | 15 | * program. If not, see <https://www.gnu.org/licenses/>. |
17 | * Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 16 | */ |
19 | package com.github.markozajc.akiwrapper.core.utils; | 17 | package org.eu.zajc.akiwrapper.core.utils; |
20 | 18 | ||
21 | import static com.github.markozajc.akiwrapper.core.utils.JSONUtils.*; | 19 | import static org.eu.zajc.akiwrapper.core.utils.JSONUtils.*; |
22 | 20 | ||
23 | import org.json.JSONObject; | 21 | import org.json.JSONObject; |
24 | import org.junit.jupiter.api.Test; | 22 | import org.junit.jupiter.api.Test; |
diff --git a/versions-ruleset.xml b/versions-ruleset.xml index 193c626..4d59c85 100644 --- a/versions-ruleset.xml +++ b/versions-ruleset.xml | |||
@@ -8,7 +8,7 @@ | |||
8 | <ignoreVersions> | 8 | <ignoreVersions> |
9 | <ignoreVersion type="regex">.*-alpha\d$</ignoreVersion> | 9 | <ignoreVersion type="regex">.*-alpha\d$</ignoreVersion> |
10 | <ignoreVersion type="regex">.*-beta\d$</ignoreVersion> | 10 | <ignoreVersion type="regex">.*-beta\d$</ignoreVersion> |
11 | <ignoreVersion type="regex">.*-M\d$</ignoreVersion> | 11 | <ignoreVersion type="regex">.*[-\.]M\d$</ignoreVersion> |
12 | <ignoreVersion type="regex">.*-RC\d$</ignoreVersion> | 12 | <ignoreVersion type="regex">.*-RC\d$</ignoreVersion> |
13 | </ignoreVersions> | 13 | </ignoreVersions> |
14 | </rule> | 14 | </rule> |