* Expired entries may be counted by {@link com.google.common.cache.Cache#size Cache.size()}, but will never be
* visible to read or write operations. Expired entries are currently cleaned up during write operations, or during
- * occasional read operations in the absense of writes; though this behavior may change in the future.
+ * occasional read operations in the absence of writes; though this behavior may change in the future.
*
* @param duration the length of time after an entry is last accessed that it should be automatically removed
* @param unit the unit that {@code duration} is expressed in
@@ -102,7 +102,7 @@ public class CompatibleCacheBuilder
* Expired entries may be counted by {@link com.google.common.cache.Cache#size Cache.size()}, but will never be
* visible to read or write operations. Expired entries are currently cleaned up during write operations, or during
- * occasional read operations in the absense of writes; though this behavior may change in the future.
+ * occasional read operations in the absence of writes; though this behavior may change in the future.
*
* @param duration the length of time after an entry is created that it should be automatically removed
* @param unit the unit that {@code duration} is expressed in
@@ -284,7 +284,7 @@ public class CompatibleCacheBuilder {
String getRandomPassword(P player);
diff --git a/core/src/main/java/com/github/games647/fastlogin/core/shared/FastLoginCore.java b/core/src/main/java/com/github/games647/fastlogin/core/shared/FastLoginCore.java
index 63cc5599..9ebd5ecb 100644
--- a/core/src/main/java/com/github/games647/fastlogin/core/shared/FastLoginCore.java
+++ b/core/src/main/java/com/github/games647/fastlogin/core/shared/FastLoginCore.java
@@ -21,6 +21,7 @@ import java.nio.file.Path;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
+import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
@@ -60,10 +61,10 @@ public class FastLoginCore > {
}
return UUID.fromString(withoutDashes.substring(0, 8)
- + "-" + withoutDashes.substring(8, 12)
- + "-" + withoutDashes.substring(12, 16)
- + "-" + withoutDashes.substring(16, 20)
- + "-" + withoutDashes.substring(20, 32));
+ + '-' + withoutDashes.substring(8, 12)
+ + '-' + withoutDashes.substring(12, 16)
+ + '-' + withoutDashes.substring(16, 20)
+ + '-' + withoutDashes.substring(20, 32));
}
protected final Map > {
} else {
Class.forName("com.mysql.jdbc.Driver");
- String jdbcUrl = "jdbc:mysql://" + host + "/" + database;
+ String jdbcUrl = "jdbc:mysql://" + host + '/' + database;
Connection con = DriverManager.getConnection(jdbcUrl, username, pass);
importer.importData(con, storage.getDataSource(), storage);
return true;
@@ -228,7 +229,7 @@ public class FastLoginCore > {
return pendingLogins;
}
- public Set