mirror of
https://github.com/bytedream/untisbot-discord.git
synced 2025-06-27 16:30:32 +02:00
Removed unused imports
This commit is contained in:
@ -126,7 +126,7 @@ public class Main {
|
||||
logger.info("Set custom language file");
|
||||
}
|
||||
} catch (ArrayIndexOutOfBoundsException ignore) {
|
||||
if (arg.trim().toLowerCase().equals("mariadb")) {
|
||||
if (arg.trim().equalsIgnoreCase("mariadb")) {
|
||||
storeType = StoreType.MARIADB;
|
||||
logger.info("Using mariadb for data storage");
|
||||
}
|
||||
|
@ -16,10 +16,11 @@ public class Utils {
|
||||
* @since 1.0
|
||||
*/
|
||||
public static String advancedFormat(String stringToFormat, Map<String, Object> args) {
|
||||
String formattedString = stringToFormat;
|
||||
for (Map.Entry<String, Object> entry : args.entrySet()) {
|
||||
stringToFormat = stringToFormat.replace("{" + entry.getKey() + "}", entry.getValue().toString());
|
||||
formattedString = formattedString.replace("{" + entry.getKey() + "}", entry.getValue().toString());
|
||||
}
|
||||
return stringToFormat;
|
||||
return formattedString;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -4,8 +4,8 @@ import org.bytedream.untisbot.Crypt;
|
||||
import org.bytedream.untisbot.Main;
|
||||
|
||||
import java.security.GeneralSecurityException;
|
||||
import java.sql.*;
|
||||
import java.sql.Date;
|
||||
import java.sql.*;
|
||||
import java.time.LocalDate;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.*;
|
||||
|
@ -33,7 +33,6 @@ import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.*;
|
||||
|
@ -2,7 +2,6 @@ package org.bytedream.untisbot.untis;
|
||||
|
||||
import org.bytedream.untis4j.responseObjects.Timetable;
|
||||
|
||||
import java.sql.Time;
|
||||
import java.time.LocalDate;
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
@ -1,11 +1,8 @@
|
||||
package org.bytedream.untisbot.untis;
|
||||
|
||||
import org.bytedream.untis4j.LoginException;
|
||||
import org.bytedream.untis4j.RequestManager;
|
||||
import org.bytedream.untis4j.Session;
|
||||
import org.bytedream.untis4j.UntisUtils;
|
||||
import org.bytedream.untis4j.responseObjects.Timetable;
|
||||
import org.bytedream.untisbot.Main;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.time.LocalDate;
|
||||
@ -113,6 +110,8 @@ public class TimetableChecker {
|
||||
cancelledLesson.add(lesson);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// this isn't implemented yet
|
||||
}
|
||||
} else if (lesson.getCode() == UntisUtils.LessonCode.IRREGULAR && timetable.searchByStartTime(lesson.getStartTime()).size() == 1 && !allIgnoredLessons.contains(lesson)) {
|
||||
// lesson is maybe moved
|
||||
|
Reference in New Issue
Block a user