enable live hovers for inner classes

This commit is contained in:
Martin Lippert
2017-12-07 21:33:41 +01:00
parent f6739ad44a
commit c102efa838
8 changed files with 258 additions and 29 deletions

View File

@@ -95,12 +95,19 @@ public class LiveBean {
public String getType(boolean stripCGLib) {
String type = this.type;
if (stripCGLib) {
int chop = type.indexOf("$$EnhancerBySpringCGLIB$$");
if (chop>=0) {
type = type.substring(0, chop);
if (type != null) {
if (stripCGLib) {
int chop = type.indexOf("$$EnhancerBySpringCGLIB$$");
if (chop >= 0) {
type = type.substring(0, chop);
}
}
// convert inner classes from $ to . notation
type = type.replace('$', '.');
}
return type;
}