doc: 调整Javadoc文档

Signed-off-by: 502647092 <admin@yumc.pw>
merge/1/MERGE
502647092 2016-11-16 20:25:56 +08:00
parent 05c1a2b4f1
commit aa6577db3b
5 changed files with 24 additions and 13 deletions

View File

@ -42,6 +42,8 @@ public class P {
} }
/** /**
* @param <FC>
*
* @return * @return
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -78,6 +80,8 @@ public class P {
} }
/** /**
* @param <PI>
*
* @return * @return
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")

View File

@ -270,6 +270,7 @@ public class CommandManager implements TabExecutor {
* *
* @param clazzs * @param clazzs
* *
* @return {@link CommandManager}
*/ */
public CommandManager register(Executor... clazzs) { public CommandManager register(Executor... clazzs) {
for (Executor clazz : clazzs) { for (Executor clazz : clazzs) {
@ -343,6 +344,7 @@ public class CommandManager implements TabExecutor {
* *
* @param commandErrorHanlder * @param commandErrorHanlder
* *
* @return {@link CommandManager}
*/ */
public CommandManager setCommandErrorHanlder(ErrorHanlder commandErrorHanlder) { public CommandManager setCommandErrorHanlder(ErrorHanlder commandErrorHanlder) {
this.commandErrorHanlder = commandErrorHanlder; this.commandErrorHanlder = commandErrorHanlder;
@ -354,6 +356,7 @@ public class CommandManager implements TabExecutor {
* *
* @param helpGenerator * @param helpGenerator
* *
* @return {@link CommandManager}
*/ */
public CommandManager setHelpGenerator(HelpGenerator helpGenerator) { public CommandManager setHelpGenerator(HelpGenerator helpGenerator) {
help.setHelpGenerator(helpGenerator); help.setHelpGenerator(helpGenerator);
@ -365,6 +368,7 @@ public class CommandManager implements TabExecutor {
* *
* @param helpParse * @param helpParse
* *
* @return {@link CommandManager}
*/ */
public CommandManager setHelpParse(HelpParse helpParse) { public CommandManager setHelpParse(HelpParse helpParse) {
if (help.getHelpGenerator() instanceof CommandHelp.DefaultHelpGenerator) { if (help.getHelpGenerator() instanceof CommandHelp.DefaultHelpGenerator) {

View File

@ -67,16 +67,18 @@ public class LogKit implements Runnable {
* *
*/ */
public void console(final String s) { public void console(final String s) {
sender(Bukkit.getConsoleSender(), s); send(Bukkit.getConsoleSender(), s);
} }
/** /**
* *
* *
* @param sender
*
* @param s * @param s
* *
*/ */
public void sender(final CommandSender sender, final String s) { public void send(final CommandSender sender, final String s) {
Log.toSender(sender, s); Log.toSender(sender, s);
log(ChatColor.stripColor(s)); log(ChatColor.stripColor(s));
} }

View File

@ -8,8 +8,8 @@ import java.util.Map;
/** /**
* A wrapper for an {@link Object} or {@link Class} upon which reflective calls can be made. * A wrapper for an {@link Object} or {@link Class} upon which reflective calls can be made.
* <p> * <p>
* An example of using <code>Reflect</code> is <code> * An example of using <code>Reflect</code> is
* *
* <pre> * <pre>
* // Static import all reflection methods to decrease verbosity * // Static import all reflection methods to decrease verbosity
* import static org.joor.Reflect.*; * import static org.joor.Reflect.*;
@ -21,7 +21,8 @@ import java.util.Map;
* // Invoke methods using the call() method: * // Invoke methods using the call() method:
* .call("toString") * .call("toString")
* // Retrieve the wrapped object * // Retrieve the wrapped object
* * </pre>
*
* @author Lukas Eder * @author Lukas Eder
*/ */
public class Reflect { public class Reflect {
@ -274,6 +275,8 @@ public class Reflect {
/** /**
* Create a proxy for the wrapped object allowing to typesafely invoke methods on it using a custom interface * Create a proxy for the wrapped object allowing to typesafely invoke methods on it using a custom interface
* *
* @param <P>
*
* @param proxyType * @param proxyType
* The interface type that is implemented by the proxy * The interface type that is implemented by the proxy
* @return A proxy for the wrapped object * @return A proxy for the wrapped object
@ -557,7 +560,9 @@ public class Reflect {
* value from an instance member field. * value from an instance member field.
* <p> * <p>
* If you want to "navigate" to a wrapped version of the field, use {@link #field(String)} instead. * If you want to "navigate" to a wrapped version of the field, use {@link #field(String)} instead.
* *
* @param <T>
* A convenience generic parameter for automatic unsafe casting
* @param name * @param name
* The field name * The field name
* @return The field value * @return The field value
@ -615,9 +620,6 @@ public class Reflect {
} }
} }
/**
* {@inheritDoc}
*/
@Override @Override
public String toString() { public String toString() {
return object.toString(); return object.toString();
@ -625,7 +627,8 @@ public class Reflect {
/** /**
* Get the type of the wrapped object. * Get the type of the wrapped object.
* *
* @return
* @see Object#getClass() * @see Object#getClass()
*/ */
public Class<?> type() { public Class<?> type() {

View File

@ -318,10 +318,8 @@ public class Tellraw {
* <li>.</li> * <li>.</li>
* </ol> * </ol>
* *
* </p>
* <p> * <p>
* {@link ChatColor#stripColor(String)}. * {@link ChatColor#stripColor(String)}.
* </p>
* *
* @return * @return
*/ */