mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove redundant modifiers
This commit is contained in:
@@ -14,7 +14,7 @@ import java.io.*;
|
||||
*/
|
||||
public class IOUtilTest extends TestCase {
|
||||
|
||||
private static interface IO {
|
||||
private interface IO {
|
||||
void save(String str, DataOutput out) throws IOException;
|
||||
String load(DataInput in) throws IOException;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public abstract class PsiActionSupportFactory {
|
||||
return ServiceManager.getService(PsiActionSupportFactory.class);
|
||||
}
|
||||
|
||||
public static interface PsiElementSelector {
|
||||
public interface PsiElementSelector {
|
||||
@NotNull
|
||||
PsiElement[] getSelectedElements();
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ public class AppIconScheme {
|
||||
|
||||
public interface Progress {
|
||||
|
||||
static final Progress TESTS = new Progress() {
|
||||
Progress TESTS = new Progress() {
|
||||
@Override
|
||||
public Color getOkColor() {
|
||||
return TESTS_OK_COLOR;
|
||||
@@ -38,7 +38,7 @@ public class AppIconScheme {
|
||||
}
|
||||
};
|
||||
|
||||
static final Progress BUILD = new Progress() {
|
||||
Progress BUILD = new Progress() {
|
||||
@Override
|
||||
public Color getOkColor() {
|
||||
return BUILD_OK_COLOR;
|
||||
@@ -50,7 +50,7 @@ public class AppIconScheme {
|
||||
}
|
||||
};
|
||||
|
||||
static final Progress INDEXING = new Progress() {
|
||||
Progress INDEXING = new Progress() {
|
||||
@Override
|
||||
public Color getOkColor() {
|
||||
return INDEXING_OK_COLOR;
|
||||
|
||||
@@ -335,7 +335,7 @@ public class ListUtil {
|
||||
return listener;
|
||||
}
|
||||
|
||||
public static interface RemoveNotification<ItemType> {
|
||||
public interface RemoveNotification<ItemType> {
|
||||
void itemsRemoved(List<ItemType> items);
|
||||
}
|
||||
|
||||
@@ -350,7 +350,7 @@ public class ListUtil {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static interface ListModelExtension<ModelType extends ListModel> {
|
||||
private interface ListModelExtension<ModelType extends ListModel> {
|
||||
Object get(ModelType model, int index);
|
||||
void remove(ModelType model, int index);
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ public abstract class ReorderableListController <T> {
|
||||
}
|
||||
}
|
||||
|
||||
static interface ActionBehaviour<T> {
|
||||
interface ActionBehaviour<T> {
|
||||
T performAction(@NotNull AnActionEvent e);
|
||||
void updateAction(@NotNull AnActionEvent e);
|
||||
}
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ public interface TerminalListener {
|
||||
|
||||
void close();
|
||||
|
||||
static TerminalListener NULL = new TerminalListener() {
|
||||
TerminalListener NULL = new TerminalListener() {
|
||||
|
||||
public void close() {
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ public interface ConcurrentLongObjectMap<V> {
|
||||
|
||||
boolean isEmpty();
|
||||
@NotNull
|
||||
public Enumeration<V> elements();
|
||||
Enumeration<V> elements();
|
||||
@NotNull
|
||||
Collection<V> values();
|
||||
boolean containsValue(@NotNull V value);
|
||||
|
||||
+2
-2
@@ -19,6 +19,6 @@ package com.intellij.cvsSupport2.connections.ssh;
|
||||
* author: lesya
|
||||
*/
|
||||
public interface SmPublicKeyAuthentification {
|
||||
public Throwable PRIVATE_KEY_FILE = new Throwable();
|
||||
public Throwable PASSPHRASE = new Throwable();
|
||||
Throwable PRIVATE_KEY_FILE = new Throwable();
|
||||
Throwable PASSPHRASE = new Throwable();
|
||||
}
|
||||
|
||||
@@ -17,8 +17,8 @@ package com.intellij.openapi.cvsIntegration;
|
||||
|
||||
|
||||
public interface DateOrRevision {
|
||||
public String getBranch();
|
||||
public boolean shouldUseBranch();
|
||||
public String getDate();
|
||||
public boolean shouldUseDate();
|
||||
String getBranch();
|
||||
boolean shouldUseBranch();
|
||||
String getDate();
|
||||
boolean shouldUseDate();
|
||||
}
|
||||
|
||||
@@ -727,7 +727,7 @@ public class CvsUtil {
|
||||
return dirTag.startsWith(STICKY_BRANCH_TAG_PREFIX) || dirTag.startsWith(STICKY_NON_BRANCH_TAG_PREFIX);
|
||||
}
|
||||
|
||||
private static interface FileCondition {
|
||||
private interface FileCondition {
|
||||
boolean verify(File file);
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,6 @@ import java.io.File;
|
||||
* @author Konstantin Bulenkov
|
||||
*/
|
||||
public interface FileManager {
|
||||
public File releaseOutputFile(File outFile);
|
||||
public File getOutputFile(File target);
|
||||
File releaseOutputFile(File outFile);
|
||||
File getOutputFile(File target);
|
||||
}
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ public interface ProjectResolverContext extends UserDataHolderEx {
|
||||
@NotNull
|
||||
ProjectImportAction.AllModels getModels();
|
||||
|
||||
public void setModels(@NotNull ProjectImportAction.AllModels models) ;
|
||||
void setModels(@NotNull ProjectImportAction.AllModels models) ;
|
||||
|
||||
@Nullable
|
||||
<T> T getExtraProject(Class<T> modelClazz);
|
||||
|
||||
+1
-1
@@ -24,6 +24,6 @@ import org.jetbrains.plugins.groovy.lang.psi.api.statements.typedef.GrTypeDefini
|
||||
* @author ilyas
|
||||
*/
|
||||
public interface GrTypeParameter extends GrTypeDefinition, PsiTypeParameter {
|
||||
public static final GrTypeParameter[] EMPTY_ARRAY = new GrTypeParameter[0];
|
||||
GrTypeParameter[] EMPTY_ARRAY = new GrTypeParameter[0];
|
||||
ArrayFactory<GrTypeParameter> ARRAY_FACTORY = count -> count == 0 ? EMPTY_ARRAY : new GrTypeParameter[count];
|
||||
}
|
||||
|
||||
+4
-4
@@ -29,12 +29,12 @@ import org.jetbrains.annotations.Nullable;
|
||||
*/
|
||||
public interface GrDynamicImplicitElement extends ItemPresentation, NavigationItem {
|
||||
@Nullable
|
||||
public PsiClass getContainingClassElement();
|
||||
PsiClass getContainingClassElement();
|
||||
|
||||
@NotNull
|
||||
public SearchScope getUseScope();
|
||||
SearchScope getUseScope();
|
||||
|
||||
public PsiFile getContainingFile();
|
||||
PsiFile getContainingFile();
|
||||
|
||||
public String getContainingClassName();
|
||||
String getContainingClassName();
|
||||
}
|
||||
|
||||
+1
-1
@@ -83,7 +83,7 @@ public interface RemoteDebugger extends Remote {
|
||||
String getInstruction() throws RemoteException;
|
||||
}
|
||||
|
||||
public interface Variable extends Remote {
|
||||
interface Variable extends Remote {
|
||||
boolean isGlobal() throws RemoteException;
|
||||
|
||||
Debugger.Variable.Kind getKind() throws RemoteException;
|
||||
|
||||
@@ -10,8 +10,8 @@ package com.jetbrains.python.debugger.pydev;
|
||||
*/
|
||||
public interface PyVariableLocator {
|
||||
|
||||
public String getThreadId();
|
||||
String getThreadId();
|
||||
|
||||
public String getPyDBLocation();
|
||||
String getPyDBLocation();
|
||||
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ public interface RunnableScriptFilter {
|
||||
|
||||
boolean isRunnableScript(PsiFile script, @NotNull Module module, Location location, @Nullable TypeEvalContext context);
|
||||
|
||||
public static boolean isIfNameMain(Location location) {
|
||||
static boolean isIfNameMain(Location location) {
|
||||
PsiElement element = location.getPsiElement();
|
||||
while (true) {
|
||||
final PyIfStatement ifStatement = PsiTreeUtil.getParentOfType(element, PyIfStatement.class);
|
||||
|
||||
+4
-4
@@ -19,8 +19,8 @@ package com.jetbrains.python.testing.pytestLegacy;
|
||||
* User : catherine
|
||||
*/
|
||||
public interface PyTestRunConfigurationParams {
|
||||
public boolean useParam();
|
||||
public void useParam(boolean useParam);
|
||||
public boolean useKeyword();
|
||||
public void useKeyword(boolean useKeyword);
|
||||
boolean useParam();
|
||||
void useParam(boolean useParam);
|
||||
boolean useKeyword();
|
||||
void useKeyword(boolean useKeyword);
|
||||
}
|
||||
|
||||
@@ -295,6 +295,6 @@ public class DomExtensionsTest extends DomTestCase {
|
||||
public MyStringBufferConverter(boolean b) {
|
||||
}
|
||||
}
|
||||
public static interface MyAttribute extends GenericAttributeValue<Boolean> {}
|
||||
public interface MyAttribute extends GenericAttributeValue<Boolean> {}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.intellij.util.xml;
|
||||
|
||||
import com.intellij.openapi.application.Result;
|
||||
import com.intellij.openapi.command.WriteCommandAction;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.psi.search.GlobalSearchScope;
|
||||
@@ -532,7 +531,7 @@ public class DomSimpleValuesTest extends DomTestCase {
|
||||
|
||||
public interface CmpField extends JavaeeDomModelElement {
|
||||
@NameValue
|
||||
public GenericDomValue<String> getName();
|
||||
GenericDomValue<String> getName();
|
||||
}
|
||||
|
||||
public static class MyConverter extends Converter<String> {
|
||||
|
||||
@@ -22,5 +22,5 @@ import org.intellij.plugins.relaxNG.compact.psi.RncFile;
|
||||
public interface FollowFileHint {
|
||||
Key<FollowFileHint> KEY = Key.create("FollowFileHint");
|
||||
|
||||
public boolean doFollow(RncFile file);
|
||||
boolean doFollow(RncFile file);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ public interface CommonElement<E extends PsiElement> {
|
||||
@Nullable
|
||||
E getPsiElement();
|
||||
|
||||
static abstract class Visitor {
|
||||
abstract class Visitor {
|
||||
public void visitElement(CommonElement pattern) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user