Fix PT-153072942
Ignore `$$EnhancerBySpringCGLIB$$` in determining whether a live bean corresponds to a bean defined in source-code.
This commit is contained in:
@@ -93,6 +93,17 @@ public class LiveBean {
|
||||
return type;
|
||||
}
|
||||
|
||||
public String getType(boolean stripCGLib) {
|
||||
String type = this.type;
|
||||
if (stripCGLib) {
|
||||
int chop = type.indexOf("$$EnhancerBySpringCGLIB$$");
|
||||
if (chop>=0) {
|
||||
type = type.substring(0, chop);
|
||||
}
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
public String getResource() {
|
||||
return resource;
|
||||
}
|
||||
|
||||
@@ -11,9 +11,7 @@
|
||||
package org.springframework.ide.vscode.commons.boot.app.cli.livebean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
@@ -21,9 +19,6 @@ import org.springframework.ide.vscode.commons.util.Log;
|
||||
import org.springframework.ide.vscode.commons.util.StringUtil;
|
||||
|
||||
import com.google.common.collect.ImmutableListMultimap;
|
||||
import com.google.common.collect.ImmutableMultimap;
|
||||
import com.google.common.collect.Multimap;
|
||||
import com.google.common.collect.MultimapBuilder;
|
||||
|
||||
/**
|
||||
* @author Martin Lippert
|
||||
|
||||
Reference in New Issue
Block a user