diff --git a/pom.xml b/pom.xml
index 0895980..b6802bc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,9 +30,6 @@
JPushover
Minimalist convenient class for sending messages to Pushover in Java project
https://github.com/svenkubiak/JPushover
-
- 3.0
-
@@ -59,6 +56,59 @@
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ 3.0.0-M2
+
+
+
+ false
+
+
+
+
+
+ enforce
+
+ enforce
+
+ validate
+
+
+ enforce-maven
+
+ enforce
+
+
+
+
+ 3.0.5
+
+
+
+
+
+ enforce-ban-circular-dependencies
+
+ enforce
+
+
+
+
+
+ true
+
+
+
+
+
+ org.codehaus.mojo
+ extra-enforcer-rules
+ 1.0-beta-9
+
+
+
org.apache.maven.plugins
maven-javadoc-plugin
diff --git a/src/main/java/de/svenkubiak/jpushover/JPushover.java b/src/main/java/de/svenkubiak/jpushover/JPushover.java
index ccf39f6..b301f32 100644
--- a/src/main/java/de/svenkubiak/jpushover/JPushover.java
+++ b/src/main/java/de/svenkubiak/jpushover/JPushover.java
@@ -247,6 +247,9 @@ public class JPushover {
* Optional device parameter to check specific device
*
* @return true if token and user are valid and at least on device is on the account, false otherwise
+ *
+ * @throws IOException if validation fails
+ * @throws InterruptedException if validation fails
*/
public boolean validate() throws IOException, InterruptedException {
Objects.requireNonNull(this.pushoverToken, "Token is required for validation");
@@ -274,6 +277,9 @@ public class JPushover {
* Sends a message to pushover
*
* @return JPushoverResponse instance
+ *
+ * @throws IOException if validation fails
+ * @throws InterruptedException if validation fails
*/
public final JPushoverResponse push() throws IOException, InterruptedException {
Objects.requireNonNull(this.pushoverToken, "Token is required for a message");
diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java
deleted file mode 100644
index 68316b9..0000000
--- a/src/main/java/module-info.java
+++ /dev/null
@@ -1,6 +0,0 @@
-module jpushover {
- requires java.net.http;
- requires minimal.json;
- requires org.apache.commons.lang3;
- exports de.svenkubiak.jpushover;
-}
\ No newline at end of file