mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Cleanup: make execute methods final; refine generic types
GitOrigin-RevId: 233b6084d227e4c5c84997058a9a6f5ddf47ec2d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ad08f4c5a2
commit
b1e1776977
@@ -134,7 +134,7 @@ public abstract class AbstractCommand<T> {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void execute() throws PyDebuggerException {
|
||||
public final void execute() throws PyDebuggerException {
|
||||
final int sequence = myDebugger.getNextSequence();
|
||||
|
||||
final ResponseProcessor<T> processor = getResponseProcessor();
|
||||
@@ -167,7 +167,7 @@ public abstract class AbstractCommand<T> {
|
||||
}
|
||||
}
|
||||
|
||||
public void execute(final PyDebugCallback<T> callback) {
|
||||
public final void execute(final PyDebugCallback<? super T> callback) {
|
||||
final int sequence = myDebugger.getNextSequence();
|
||||
|
||||
final ResponseProcessor<T> processor = getResponseProcessor();
|
||||
@@ -304,7 +304,7 @@ public abstract class AbstractCommand<T> {
|
||||
}
|
||||
|
||||
private Payload doAdd(String text) {
|
||||
if (myBuilder.length() > 0) {
|
||||
if (!myBuilder.isEmpty()) {
|
||||
return separator().append(text);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user