Fix minor checkstyle issues

- Add JavaDoc where checkstyle expects it
- Fix line too long issues
- ...
This commit is contained in:
ljacqu
2017-05-07 11:59:01 +02:00
parent 1a48348824
commit 1f8307c8f6
43 changed files with 605 additions and 134 deletions
@@ -32,6 +32,12 @@ public class AsyncAddEmail implements AsynchronousProcess {
AsyncAddEmail() { }
/**
* Handles the request to add the given email to the player's account.
*
* @param player the player to add the email to
* @param email the email to add
*/
public void addEmail(Player player, String email) {
String playerName = player.getName().toLowerCase();
@@ -30,6 +30,13 @@ public class AsyncChangeEmail implements AsynchronousProcess {
AsyncChangeEmail() { }
/**
* Handles the request to change the player's email address.
*
* @param player the player to change the email for
* @param oldEmail provided old email
* @param newEmail provided new email
*/
public void changeEmail(Player player, String oldEmail, String newEmail) {
String playerName = player.getName().toLowerCase();
if (playerCache.isAuthenticated(playerName)) {
@@ -269,6 +269,12 @@ public class AsynchronousLogin implements AsynchronousProcess {
);
}
/**
* Sends info about the other accounts owned by the given player to the configured users.
*
* @param auths the names of the accounts also owned by the player
* @param player the player
*/
private void displayOtherAccounts(List<String> auths, Player player) {
if (!service.getProperty(RestrictionSettings.DISPLAY_OTHER_ACCOUNTS) || auths.size() <= 1) {
return;
@@ -12,6 +12,9 @@ import org.bukkit.entity.Player;
import javax.inject.Inject;
/**
* Async task when a player wants to log out.
*/
public class AsynchronousLogout implements AsynchronousProcess {
@Inject
@@ -29,7 +32,12 @@ public class AsynchronousLogout implements AsynchronousProcess {
AsynchronousLogout() {
}
public void logout(final Player player) {
/**
* Handles a player's request to log out.
*
* @param player the player wanting to log out
*/
public void logout(Player player) {
final String name = player.getName().toLowerCase();
if (!playerCache.isAuthenticated(name)) {
service.send(player, MessageKey.NOT_LOGGED_IN);