Skip to content

Commit

Permalink
Fix javadocs for java 8 doclint
Browse files Browse the repository at this point in the history
  • Loading branch information
yawkat authored and md-5 committed Jun 27, 2014
1 parent a53b637 commit afa3750
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 24 deletions.
2 changes: 0 additions & 2 deletions api/src/main/java/net/md_5/bungee/api/chat/BaseComponent.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@ public void addExtra(BaseComponent component)

/**
* Returns whether the component has any formatting or events applied to it
*
* @return
*/
public boolean hasFormatting()
{
Expand Down
11 changes: 6 additions & 5 deletions api/src/main/java/net/md_5/bungee/api/chat/ClickEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import net.md_5.bungee.api.chat.ClickEvent.Action;

@Getter
@AllArgsConstructor
Expand All @@ -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;

Expand All @@ -26,22 +27,22 @@ public enum Action

/**
* 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@
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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ public interface PendingConnection extends Connection

/**
* Set this connection's online mode.
*
* @param onlineMode
*/
void setOnlineMode(boolean onlineMode);
}
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,6 @@ public void unregisterListener(Listener listener)

/**
* Unregister all of a Plugin's listener.
*
* @param plugin
*/
public void unregisterListeners(Plugin plugin)
{
Expand Down
6 changes: 0 additions & 6 deletions api/src/main/java/net/md_5/bungee/api/tab/TabListHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,25 @@ public interface TabListHandler

/**
* Called when a player first connects to the proxy.
*
* @param player the connecting player
*/
void onServerChange();

/**
* 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ public class Team extends DefinedPacket

/**
* Packet to destroy a team.
*
* @param name
*/
public Team(String name)
{
Expand Down

0 comments on commit afa3750

Please sign in to comment.