Fix broken usage of LogEntry#getActed

This commit is contained in:
Luck
2017-11-09 21:05:06 +00:00
Unverified
parent 14005563a3
commit 22fba0c172
13 changed files with 37 additions and 29 deletions
@@ -33,6 +33,8 @@ import javax.annotation.Nullable;
/**
* Represents a logged action.
*
* @see LuckPermsApi#newLogEntryBuilder() for creating an instance
*/
public interface LogEntry extends Comparable<LogEntry> {
@@ -50,6 +52,7 @@ public interface LogEntry extends Comparable<LogEntry> {
*
* @return the actor id
*/
@Nonnull
UUID getActor();
/**
@@ -57,6 +60,7 @@ public interface LogEntry extends Comparable<LogEntry> {
*
* @return the name of the actor
*/
@Nonnull
String getActorName();
/**
@@ -64,6 +68,7 @@ public interface LogEntry extends Comparable<LogEntry> {
*
* @return the action type
*/
@Nonnull
Type getType();
/**
@@ -73,6 +78,7 @@ public interface LogEntry extends Comparable<LogEntry> {
*
* @return the uuid of acted object
*/
@Nonnull
Optional<UUID> getActed();
/**
@@ -80,6 +86,7 @@ public interface LogEntry extends Comparable<LogEntry> {
*
* @return the name of the acted object
*/
@Nonnull
String getActedName();
/**
@@ -90,6 +97,7 @@ public interface LogEntry extends Comparable<LogEntry> {
*
* @return the action
*/
@Nonnull
String getAction();
/**
@@ -112,6 +120,7 @@ public interface LogEntry extends Comparable<LogEntry> {
return this.code;
}
@Nonnull
public static Type valueOf(char code) {
switch (code) {
case 'U':
@@ -349,6 +349,7 @@ public interface LuckPermsApi {
* @return a new builder
* @since 4.0
*/
@Nonnull
LogEntry.Builder newLogEntryBuilder();
/**