Fix javadocs for java 8 doclint

This commit is contained in:
Jonas Konrad 2014-06-28 00:39:27 +02:00 committed by md_5
parent a53b63720b
commit afa37505c5
8 changed files with 12 additions and 24 deletions

View File

@ -315,8 +315,6 @@ public abstract class BaseComponent
/**
* Returns whether the component has any formatting or events applied to it
*
* @return
*/
public boolean hasFormatting()
{

View File

@ -4,6 +4,7 @@ import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import net.md_5.bungee.api.chat.ClickEvent.Action;
@Getter
@AllArgsConstructor
@ -17,7 +18,7 @@ final public class ClickEvent
/**
* Depends on action
*
* @see net.md_5.bungee.api.chat.ClickEvent.Action
* @see Action
*/
private final String value;
@ -26,22 +27,22 @@ final public class ClickEvent
/**
* Open a url at the path given by
* {@link net.md_5.bungee.api.chat.ClickEvent#getValue()}
* {@link net.md_5.bungee.api.chat.ClickEvent#value}
*/
OPEN_URL,
/**
* Open a file at the path given by
* {@link net.md_5.bungee.api.chat.ClickEvent#getValue()}
* {@link net.md_5.bungee.api.chat.ClickEvent#value}
*/
OPEN_FILE,
/**
* Run the command given by
* {@link net.md_5.bungee.api.chat.ClickEvent#getValue()}
* {@link net.md_5.bungee.api.chat.ClickEvent#value}
*/
RUN_COMMAND,
/**
* Inserts the string given by
* {@link net.md_5.bungee.api.chat.ClickEvent#getValue()} into the
* {@link net.md_5.bungee.api.chat.ClickEvent#value} into the
* players text box
*/
SUGGEST_COMMAND

View File

@ -7,21 +7,22 @@ import java.util.ArrayList;
import java.util.List;
/**
* <p>
* ComponentBuilder simplifies creating basic messages by allowing the use of a
* chainable builder.
* <p/>
* <
* pre>
* </p>
* <pre>
* new ComponentBuilder("Hello ").color(ChatColor.RED).
* append("World").color(ChatColor.BLUE). append("!").bold(true).create();
* </pre>
* <p/>
* <p>
* All methods (excluding {@link #append(String)} and {@link #create()} work on
* the last part appended to the builder, so in the example above "Hello " would
* be {@link net.md_5.bungee.api.ChatColor#RED} and "World" would be
* {@link net.md_5.bungee.api.ChatColor#BLUE} but "!" would be bold and
* {@link net.md_5.bungee.api.ChatColor#BLUE} because append copies the previous
* part's formatting
* </p>
*/
public class ComponentBuilder
{

View File

@ -34,7 +34,7 @@ public class TranslatableComponent extends BaseComponent
/**
* Creates a translatable component with the passed substitutions
*
* @see #setTranslate(String)
* @see #translate
* @see #setWith(java.util.List)
* @param translate the translation key
* @param with the {@link java.lang.String}s and

View File

@ -63,8 +63,6 @@ public interface PendingConnection extends Connection
/**
* Set this connection's online mode.
*
* @param onlineMode
*/
void setOnlineMode(boolean onlineMode);
}

View File

@ -397,8 +397,6 @@ public class PluginManager
/**
* Unregister all of a Plugin's listener.
*
* @param plugin
*/
public void unregisterListeners(Plugin plugin)
{

View File

@ -25,8 +25,6 @@ public interface TabListHandler
/**
* Called when a player first connects to the proxy.
*
* @param player the connecting player
*/
void onServerChange();
@ -34,22 +32,18 @@ public interface TabListHandler
* Called when a players ping changes. The new ping will have not updated in
* the player instance until this method returns.
*
* @param player the player who's ping changed
* @param ping the player's new ping.
*/
void onPingChange(int ping);
/**
* Called when a player disconnects.
*
* @param player the disconnected player
*/
void onDisconnect();
/**
* Called when a list update packet is sent from server to client.
*
* @param player receiving this packet
* @param name the player which this packet is relevant to
* @param online whether the subject player is online
* @param ping ping of the subject player

View File

@ -31,8 +31,6 @@ public class Team extends DefinedPacket
/**
* Packet to destroy a team.
*
* @param name
*/
public Team(String name)
{