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
*/
@SuppressWarnings("unchecked")
@ -78,6 +80,8 @@ public class P {
}
/**
* @param <PI>
*
* @return
*/
@SuppressWarnings("unchecked")

View File

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

View File

@ -67,16 +67,18 @@ public class LogKit implements Runnable {
*
*/
public void console(final String s) {
sender(Bukkit.getConsoleSender(), s);
send(Bukkit.getConsoleSender(), s);
}
/**
*
*
*
* @param sender
*
* @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(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.
* <p>
* An example of using <code>Reflect</code> is <code>
*
* An example of using <code>Reflect</code> is
*
* <pre>
* // Static import all reflection methods to decrease verbosity
* import static org.joor.Reflect.*;
@ -21,7 +21,8 @@ import java.util.Map;
* // Invoke methods using the call() method:
* .call("toString")
* // Retrieve the wrapped object
*
* </pre>
*
* @author Lukas Eder
*/
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
*
* @param <P>
*
* @param proxyType
* The interface type that is implemented by the proxy
* @return A proxy for the wrapped object
@ -557,7 +560,9 @@ public class Reflect {
* value from an instance member field.
* <p>
* 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
* The field name
* @return The field value
@ -615,9 +620,6 @@ public class Reflect {
}
}
/**
* {@inheritDoc}
*/
@Override
public String toString() {
return object.toString();
@ -625,7 +627,8 @@ public class Reflect {
/**
* Get the type of the wrapped object.
*
*
* @return
* @see Object#getClass()
*/
public Class<?> type() {

View File

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