Codestyle cleanup (codeclimate)

This commit is contained in:
Gabriele C 2020-06-27 03:52:54 +02:00
parent 5271e76b75
commit 5a37643562
8 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,5 @@
package fr.xephi.authme.command.executable.authme;
import com.google.common.primitives.Ints;
import fr.xephi.authme.command.ExecutableCommand;
import fr.xephi.authme.task.purge.PurgeService;
import org.bukkit.ChatColor;

View File

@ -73,6 +73,11 @@ public class PlayerAuth {
return groupId;
}
/**
* Sets the player's auth quit location.
*
* @param location the quit location
*/
public void setQuitLocation(Location location) {
Objects.requireNonNull(location.getWorld(), "world not loaded!");
x = location.getBlockX();

View File

@ -1,6 +1,5 @@
package fr.xephi.authme.security.crypts;
import com.google.common.primitives.Ints;
import de.rtner.misc.BinTools;
import de.rtner.security.auth.spi.PBKDF2Engine;
import de.rtner.security.auth.spi.PBKDF2Parameters;

View File

@ -1,6 +1,5 @@
package fr.xephi.authme.security.crypts;
import com.google.common.primitives.Ints;
import de.rtner.security.auth.spi.PBKDF2Engine;
import de.rtner.security.auth.spi.PBKDF2Parameters;
import fr.xephi.authme.ConsoleLogger;

View File

@ -8,7 +8,6 @@ import fr.xephi.authme.util.RandomStringUtils;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

View File

@ -2,7 +2,6 @@ package fr.xephi.authme.security.totp;
import com.google.common.collect.HashBasedTable;
import com.google.common.collect.Table;
import com.google.common.primitives.Ints;
import com.warrenstrange.googleauth.GoogleAuthenticator;
import com.warrenstrange.googleauth.GoogleAuthenticatorKey;
import com.warrenstrange.googleauth.GoogleAuthenticatorQRGenerator;

View File

@ -55,7 +55,8 @@ public class HelpTranslationGenerator {
Map<String, Object> helpEntries = generateHelpMessageEntries();
String helpEntriesYaml = exportToYaml(helpEntries);
Files.write(helpFile.toPath(), helpEntriesYaml.getBytes(StandardCharsets.UTF_8), StandardOpenOption.TRUNCATE_EXISTING);
Files.write(helpFile.toPath(), helpEntriesYaml.getBytes(StandardCharsets.UTF_8),
StandardOpenOption.TRUNCATE_EXISTING);
return helpFile;
}

View File

@ -22,7 +22,7 @@ public class DependentTag<A> implements Tag<A> {
* @param name the tag (placeholder) that will be replaced
* @param replacementFunction the function producing the replacement
*/
public DependentTag(@NotNull String name,@NotNull Function<A, String> replacementFunction) {
public DependentTag(@NotNull String name, @NotNull Function<A, String> replacementFunction) {
this.name = name;
this.replacementFunction = replacementFunction;
}