-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup: fix a few typos and formatting issues
- Loading branch information
Showing
2 changed files
with
19 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ public abstract class TextualComponent implements Cloneable { | |
ConfigurationSerialization.registerClass(TextualComponent.ComplexTextTypeComponent.class); | ||
} | ||
|
||
@Override | ||
@Override | ||
public String toString() { | ||
return getReadableString(); | ||
} | ||
|
@@ -103,7 +103,6 @@ public void setValue(String value) { | |
private String _value; | ||
|
||
@Override | ||
@SuppressWarnings("CloneDoesntCallSuperClone") | ||
public TextualComponent clone() throws CloneNotSupportedException { | ||
// Since this is a private and final class, we can just reinstantiate this class instead of casting super.clone | ||
return new ArbitraryTextTypeComponent(getKey(), getValue()); | ||
|
@@ -126,10 +125,10 @@ public static ArbitraryTextTypeComponent deserialize(Map<String, Object> map){ | |
return new ArbitraryTextTypeComponent(map.get("key").toString(), map.get("value").toString()); | ||
} | ||
|
||
@Override | ||
public String getReadableString() { | ||
return getValue(); | ||
} | ||
@Override | ||
public String getReadableString() { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
killje
Contributor
|
||
return getValue(); | ||
} | ||
} | ||
|
||
/** | ||
|
@@ -166,7 +165,6 @@ public void setValue(Map<String, String> value) { | |
private Map<String, String> _value; | ||
|
||
@Override | ||
@SuppressWarnings("CloneDoesntCallSuperClone") | ||
public TextualComponent clone() throws CloneNotSupportedException { | ||
// Since this is a private and final class, we can just reinstantiate this class instead of casting super.clone | ||
return new ComplexTextTypeComponent(getKey(), getValue()); | ||
|
@@ -204,11 +202,11 @@ public static ComplexTextTypeComponent deserialize(Map<String, Object> map){ | |
} | ||
return new ComplexTextTypeComponent(key, value); | ||
} | ||
@Override | ||
public String getReadableString() { | ||
return getKey(); | ||
} | ||
@Override | ||
public String getReadableString() { | ||
return getKey(); | ||
} | ||
} | ||
|
||
/** | ||
|
Doesn't this has to be indented?