summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormavlonerkinboev <mavlonbek.ibragimov007@gmail.com>2021-10-30 01:23:50 +0500
committermavlonerkinboev <mavlonbek.ibragimov007@gmail.com>2021-10-30 01:23:50 +0500
commitb9484071375afb490b80c7f562e52f5c62da8910 (patch)
treee4800a2e2d900df1459179263a49b04e8f502b25 /src
parentdf3ba3783c3edfc0de8230fb04a6d81411c2e070 (diff)
Added @NotNull annotation to loadProperties method
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/mavlushechka/animarfo/App.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/mavlushechka/animarfo/App.java b/src/main/java/com/mavlushechka/animarfo/App.java
index 272ff99..054b92c 100644
--- a/src/main/java/com/mavlushechka/animarfo/App.java
+++ b/src/main/java/com/mavlushechka/animarfo/App.java
@@ -1,6 +1,7 @@
package com.mavlushechka.animarfo;
import com.mavlushechka.animarfo.telegram.bot.Bot;
+import org.jetbrains.annotations.NotNull;
import java.io.File;
import java.io.FileInputStream;
@@ -31,7 +32,8 @@ public class App {
Bot.start();
}
- public static Properties loadProperties(File file) {
+ @NotNull
+ private static Properties loadProperties(File file) {
Properties properties = new Properties();
try (FileInputStream fis = new FileInputStream(file)) {
properties.load(fis);