mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
jad complete method name (#667)
This commit is contained in:
@@ -180,8 +180,20 @@ public class JadCommand extends AnnotatedCommand {
|
||||
|
||||
@Override
|
||||
public void complete(Completion completion) {
|
||||
if (!CompletionUtils.completeClassName(completion)) {
|
||||
super.complete(completion);
|
||||
int argumentIndex = CompletionUtils.detectArgumentIndex(completion);
|
||||
|
||||
if (argumentIndex == 1) {
|
||||
if (!CompletionUtils.completeClassName(completion)) {
|
||||
super.complete(completion);
|
||||
}
|
||||
return;
|
||||
} else if (argumentIndex == 2) {
|
||||
if (!CompletionUtils.completeMethodName(completion)) {
|
||||
super.complete(completion);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
super.complete(completion);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user