mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
package com.intellij.psi;
|
||||
|
||||
import com.intellij.JavaTestUtil;
|
||||
import com.intellij.openapi.projectRoots.Sdk;
|
||||
import com.intellij.openapi.projectRoots.impl.JavaSdkImpl;
|
||||
import com.intellij.openapi.roots.OrderRootType;
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
@@ -23,11 +21,6 @@ import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
|
||||
public class ClsBuilderTest extends LightIdeaTestCase {
|
||||
@Override
|
||||
protected Sdk getProjectJDK() {
|
||||
return JavaSdkImpl.getMockJdk17();
|
||||
}
|
||||
|
||||
public void testUtilList() throws Exception {
|
||||
doTest("java/util/List.class");
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ public class RunContentManagerImpl implements RunContentManager, Disposable {
|
||||
myToolwindowIdZbuffer.remove(id);
|
||||
}
|
||||
|
||||
private void registerToolwindow(final @NotNull Executor executor) {
|
||||
private void registerToolwindow(@NotNull final Executor executor) {
|
||||
final String toolWindowId = executor.getToolWindowId();
|
||||
final ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(myProject);
|
||||
if (toolWindowManager == null) return; //headless environment
|
||||
@@ -490,7 +490,7 @@ public class RunContentManagerImpl implements RunContentManager, Disposable {
|
||||
private Content myContent;
|
||||
private final Executor myExecutor;
|
||||
|
||||
private CloseListener(final @NotNull Content content, @NotNull Executor executor) {
|
||||
private CloseListener(@NotNull final Content content, @NotNull Executor executor) {
|
||||
myContent = content;
|
||||
content.getManager().addContentManagerListener(this);
|
||||
ProjectManager.getInstance().addProjectManagerListener(this);
|
||||
|
||||
-6
@@ -48,12 +48,6 @@ public abstract class LocalFileSystemBase extends LocalFileSystem {
|
||||
|
||||
@Nullable
|
||||
public VirtualFile findFileByPath(@NotNull String path) {
|
||||
/*
|
||||
if (File.separatorChar == '\\') {
|
||||
if (path.indexOf('\\') >= 0) return null;
|
||||
}
|
||||
*/
|
||||
|
||||
String canonicalPath = getVfsCanonicalPath(path);
|
||||
if (canonicalPath == null) return null;
|
||||
return super.findFileByPath(canonicalPath);
|
||||
|
||||
@@ -262,7 +262,7 @@ public abstract class UsefulTestCase extends TestCase {
|
||||
final StringBuilder builder = new StringBuilder();
|
||||
for (final Object o : collection) {
|
||||
if (o instanceof THashSet) {
|
||||
builder.append(new TreeSet<Object>((Collection<Object>)o));
|
||||
builder.append(new TreeSet<Object>((THashSet)o));
|
||||
}
|
||||
else {
|
||||
builder.append(o);
|
||||
@@ -423,7 +423,7 @@ public abstract class UsefulTestCase extends TestCase {
|
||||
}
|
||||
|
||||
public static void printThreadDump() {
|
||||
PerformanceWatcher.getInstance().dumpThreadsToConsole();
|
||||
PerformanceWatcher.dumpThreadsToConsole();
|
||||
}
|
||||
|
||||
public static void assertEmpty(final Object[] array) {
|
||||
@@ -642,9 +642,9 @@ public abstract class UsefulTestCase extends TestCase {
|
||||
assertNull(throwableName);
|
||||
}
|
||||
|
||||
private void assertExceptionOccurred(boolean shouldOccur,
|
||||
AbstractExceptionCase exceptionCase,
|
||||
String expectedErrorMsg) throws Throwable {
|
||||
private static void assertExceptionOccurred(boolean shouldOccur,
|
||||
AbstractExceptionCase exceptionCase,
|
||||
String expectedErrorMsg) throws Throwable {
|
||||
boolean wasThrown = false;
|
||||
try {
|
||||
exceptionCase.tryClosure();
|
||||
|
||||
+3
-3
@@ -102,7 +102,7 @@ public class CvsOperationExecutor {
|
||||
myResult.addAllErrors(handler.getErrorsExceptAborted());
|
||||
myResult.addAllWarnings(handler.getWarnings());
|
||||
handler.runComplitingActivities();
|
||||
if ((myProject == null) || (myProject != null && !myProject.isDisposed())) {
|
||||
if (myProject == null || myProject != null && !myProject.isDisposed()) {
|
||||
showErrors(handler.getErrorsExceptAborted(), handler.getWarnings(), tabbedWindow);
|
||||
}
|
||||
}
|
||||
@@ -118,7 +118,7 @@ public class CvsOperationExecutor {
|
||||
}
|
||||
finally {
|
||||
|
||||
if ((myProject != null) && (handler != CvsHandler.NULL)) {
|
||||
if (myProject != null && handler != CvsHandler.NULL) {
|
||||
StatusBar.Info.set(getStatusMessage(handler), myProject);
|
||||
}
|
||||
}
|
||||
@@ -194,7 +194,7 @@ public class CvsOperationExecutor {
|
||||
}
|
||||
|
||||
private static boolean isInProgress() {
|
||||
return (ProgressManager.getInstance().getProgressIndicator() != null);
|
||||
return ProgressManager.getInstance().getProgressIndicator() != null;
|
||||
}
|
||||
|
||||
protected void showErrors(final List<VcsException> errors, CvsTabbedWindow tabbedWindow) {
|
||||
|
||||
Reference in New Issue
Block a user