Reformatted code with new code style

This commit is contained in:
Tim Visée
2015-11-23 21:46:34 +01:00
parent b2db25d16c
commit 36c50c4507
92 changed files with 2458 additions and 2080 deletions
@@ -71,6 +71,7 @@ public class GeoLiteAPI {
* Get the country code of the given IP address.
*
* @param ip Ip address
*
* @return String
*/
public static String getCountryCode(String ip) {
@@ -84,6 +85,7 @@ public class GeoLiteAPI {
* Get the country name of the given IP address.
*
* @param ip Ip address
*
* @return String
*/
public static String getCountryName(String ip) {
@@ -19,6 +19,7 @@ public class StringUtils {
*
* @param first First string
* @param second Second string
*
* @return The difference value
*/
public static double getDifference(String first, String second) {
@@ -38,6 +39,7 @@ public class StringUtils {
*
* @param str the string to analyze
* @param pieces the items to check the string for
*
* @return true if the string contains at least one of the items
*/
public static boolean containsAny(String str, String... pieces) {
@@ -57,6 +59,7 @@ public class StringUtils {
* is trimmed, so this method also considers a string with whitespace as empty.
*
* @param str the string to verify
*
* @return true if the string is empty, false otherwise
*/
public static boolean isEmpty(String str) {
@@ -68,6 +71,7 @@ public class StringUtils {
*
* @param delimiter the delimiter to use
* @param elements the elements to join
*
* @return a new String that is composed of the elements separated by the delimiter
*/
public static String join(String delimiter, Iterable<String> elements) {
@@ -89,6 +93,7 @@ public class StringUtils {
* Get a full stack trace of an exception as a string.
*
* @param exception The exception.
*
* @return Stack trace as a string.
*/
public static String getStackTrace(Exception exception) {
@@ -100,6 +100,7 @@ public final class Utils {
*
* @param player The player.
* @param group The group type.
*
* @return True if succeed, false otherwise. False is also returned if groups aren't supported
* with the current permissions system.
*/
@@ -159,6 +160,7 @@ public final class Utils {
*
* @param player The player.
* @param group The normal group.
*
* @return True on success, false on failure.
*/
public static boolean addNormal(Player player, String group) {
@@ -277,6 +279,7 @@ public final class Utils {
* Bukkit#getOnlinePlayers()} directly.
*
* @return collection of online players
*
* @see <a href="https://www.spigotmc.org/threads/solved-cant-use-new-getonlineplayers.33061/">SpigotMC
* forum</a>
* @see <a href="http://stackoverflow.com/questions/32130851/player-changed-from-array-to-collection">StackOverflow</a>