mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup — don't implement deprecated method
This commit is contained in:
+1
-1
@@ -74,7 +74,7 @@ public abstract class XLineBreakpointType<P extends XBreakpointProperties> exten
|
||||
return fileLineDisplayText(breakpoint.getPresentableFilePath(), breakpoint.getLine());
|
||||
}
|
||||
|
||||
private String fileLineDisplayText(String path, int line) {
|
||||
private static String fileLineDisplayText(String path, int line) {
|
||||
return XDebuggerBundle.message("xbreakpoint.default.display.text", line + 1, path);
|
||||
}
|
||||
|
||||
|
||||
+3
-7
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2011 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -19,12 +19,8 @@ import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.xdebugger.XDebuggerBundle;
|
||||
import com.intellij.xdebugger.XDebuggerUtil;
|
||||
import com.intellij.xdebugger.breakpoints.XBreakpointProperties;
|
||||
|
||||
/**
|
||||
* @author nik
|
||||
*/
|
||||
class RemoveBreakpointGutterIconAction<P extends XBreakpointProperties> extends AnAction {
|
||||
class RemoveBreakpointGutterIconAction extends AnAction {
|
||||
private XBreakpointBase<?,?,?> myBreakpoint;
|
||||
|
||||
RemoveBreakpointGutterIconAction(XBreakpointBase<?, ?, ?> breakpoint) {
|
||||
@@ -35,4 +31,4 @@ class RemoveBreakpointGutterIconAction<P extends XBreakpointProperties> extends
|
||||
public void actionPerformed(final AnActionEvent e) {
|
||||
XDebuggerUtil.getInstance().removeBreakpoint(myBreakpoint.getProject(), myBreakpoint);
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -345,7 +345,7 @@ public class XBreakpointBase<Self extends XBreakpoint<P>, P extends XBreakpointP
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(Self self) {
|
||||
public int compareTo(@NotNull Self self) {
|
||||
return myType.getBreakpointComparator().compare((Self)this, self);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user