Skip to content
This repository was archived by the owner on Aug 6, 2024. It is now read-only.

Commit 8bda940

Browse files
committed
Add jetbrains annotations
1 parent d44983f commit 8bda940

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
</repository>
2525
</repositories>
2626
<dependencies>
27+
<dependency>
28+
<groupId>org.jetbrains</groupId>
29+
<artifactId>annotations</artifactId>
30+
<version>24.1.0</version>
31+
</dependency>
2732
</dependencies>
2833
<build>
2934
<pluginManagement>

src/main/java/ir/xenoncommunity/utils/CommandLineParser.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
package ir.xenoncommunity.utils;
22

3+
import org.jetbrains.annotations.Nullable;
4+
35
public class CommandLineParser {
6+
47
private final String[] args;
58

69
public CommandLineParser(String[] args) {
710
this.args = args;
811
}
912

13+
@Nullable
1014
public <T> T get(String arg, Class<T> type) {
1115
for (int i = 0; i < args.length - 1; i++) {
1216
if (args[i].equals(arg)) {

0 commit comments

Comments
 (0)