mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 04:59:05 +00:00
Added <> to type param hover info so its <T>
This commit is contained in:
1 parent
7615eda083
commit
54ba686380
1 file changed
+2
@@ -731,6 +731,7 @@ public class TokenHoverInfo {
|
||||
String paramName = typeInfo.getTypeParameterName();
|
||||
|
||||
addSegment("type parameter ", TokenType.MODIFIER.getHexColor());
|
||||
addSegment("<", TokenType.DEFAULT.getHexColor());
|
||||
addSegment(paramName, TokenType.GENERIC_TYPE_PARAM.getHexColor());
|
||||
|
||||
TypeInfo bound = typeInfo.getBoundType();
|
||||
@@ -738,6 +739,7 @@ public class TokenHoverInfo {
|
||||
addSegment(" extends ", TokenType.MODIFIER.getHexColor());
|
||||
addSegment(bound.getSimpleName(), getColorForTypeInfo(bound));
|
||||
}
|
||||
addSegment(">", TokenType.DEFAULT.getHexColor());
|
||||
}
|
||||
|
||||
private void extractMethodCallInfo(Token token) {
|
||||
|
||||
Reference in new issue
Block a user