mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (warnings)
GitOrigin-RevId: 94b04ba88a48273ad51f3a0721d1db30049e261a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
70cfcc7e83
commit
333d5cca77
@@ -265,7 +265,7 @@ public class Runner {
|
||||
ui.startProcess("Packing JAR file '" + spec.getPatchFile() + "'...");
|
||||
|
||||
try (ZipOutputWrapper out = new ZipOutputWrapper(new FileOutputStream(spec.getPatchFile()));
|
||||
ZipInputStream in = new ZipInputStream(new FileInputStream(new File(spec.getJarFile())))) {
|
||||
ZipInputStream in = new ZipInputStream(new FileInputStream(spec.getJarFile()))) {
|
||||
ZipEntry e;
|
||||
while ((e = in.getNextEntry()) != null) {
|
||||
out.zipEntry(e, in);
|
||||
@@ -594,4 +594,4 @@ public class Runner {
|
||||
throw new IllegalStateException("Non-test logger already defined");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@SuppressWarnings({"UseJBColor", "UseDPIAwareInsets", "UseDPIAwareBorders"})
|
||||
@SuppressWarnings({"UseJBColor", "UseDPIAwareBorders", "HardCodedStringLiteral"})
|
||||
public class SwingUpdaterUI implements UpdaterUI {
|
||||
private static final EmptyBorder FRAME_BORDER = new EmptyBorder(8, 8, 8, 8);
|
||||
private static final EmptyBorder LABEL_BORDER = new EmptyBorder(0, 0, 5, 0);
|
||||
@@ -241,7 +241,6 @@ public class SwingUpdaterUI implements UpdaterUI {
|
||||
return "<b>" + text + "</b>";
|
||||
}
|
||||
|
||||
@SuppressWarnings("SSBasedInspection")
|
||||
private static void invokeLater(Runnable runnable) {
|
||||
SwingUtilities.invokeLater(runnable);
|
||||
}
|
||||
@@ -348,7 +347,7 @@ public class SwingUpdaterUI implements UpdaterUI {
|
||||
|
||||
private static class MyCellEditor extends DefaultCellEditor {
|
||||
MyCellEditor() {
|
||||
super(new JComboBox());
|
||||
super(new JComboBox<>());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -384,4 +383,4 @@ public class SwingUpdaterUI implements UpdaterUI {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -345,7 +345,6 @@ public class Utils {
|
||||
@Override
|
||||
@SuppressWarnings("NonPrivateFieldAccessedInSynchronizedContext")
|
||||
public synchronized void writeTo(OutputStream out) throws IOException {
|
||||
//noinspection UnnecessarilyQualifiedStaticUsage
|
||||
Utils.writeBytes(buf, count, out);
|
||||
}
|
||||
}
|
||||
@@ -354,4 +353,4 @@ public class Utils {
|
||||
try { Thread.sleep(millis); }
|
||||
catch (InterruptedException ignore) { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,8 @@ import com.intellij.updater.Utils;
|
||||
import com.intellij.updater.Utils.OpenByteArrayOutputStream;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.Stack;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.Deque;
|
||||
import java.util.zip.GZIPOutputStream;
|
||||
|
||||
/**
|
||||
@@ -67,8 +68,8 @@ public class JBDiff {
|
||||
}
|
||||
|
||||
private static void split(int[] I, int[] V, int initStart, int initLen, int h) {
|
||||
Stack<Integer> startStack = new Stack<>();
|
||||
Stack<Integer> lenStack = new Stack<>();
|
||||
Deque<Integer> startStack = new ArrayDeque<>();
|
||||
Deque<Integer> lenStack = new ArrayDeque<>();
|
||||
startStack.push(initStart);
|
||||
lenStack.push(initLen);
|
||||
while (!startStack.isEmpty()) {
|
||||
@@ -455,4 +456,4 @@ public class JBDiff {
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user