mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
Warnings fixed
GitOrigin-RevId: b0f27da5a94e6497f85c95b51625f4512304cfcc
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ba8f8b0f79
commit
95fab49390
@@ -61,7 +61,7 @@ class JavaStringLiteralLexer extends StringLiteralLexer {
|
||||
if (code != '\\' || i >= myBufferEnd) return i;
|
||||
char c = myBuffer.charAt(i);
|
||||
if (StringUtil.isOctalDigit(c)) {
|
||||
if (i + 2 < myBufferEnd && StringUtil.isOctalDigit(myBuffer.charAt(i + 1)) && StringUtil.isOctalDigit(myBuffer.charAt(i + 1))) {
|
||||
if (i + 2 < myBufferEnd && StringUtil.isOctalDigit(myBuffer.charAt(i + 1)) && StringUtil.isOctalDigit(myBuffer.charAt(i + 2))) {
|
||||
return i + 3;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ public class BasicJavaLexer extends LexerBase {
|
||||
break;
|
||||
|
||||
case '#': // this assumes the Unix shell used does not understand Unicode escapes sequences
|
||||
if (myBufferIndex == 0 && mySymbolLength == 1 && myBufferEndOffset > 1 && charAt(1) == '!' && mySymbolLength == 1) {
|
||||
if (myBufferIndex == 0 && mySymbolLength == 1 && myBufferEndOffset > 1 && charAt(1) == '!') {
|
||||
myTokenType = JavaTokenType.END_OF_LINE_COMMENT;
|
||||
myTokenEndOffset = getLineTerminator(2);
|
||||
}
|
||||
|
||||
@@ -927,7 +927,7 @@ public final class FileUtilRt {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected static boolean deleteFile(@NotNull final File file) {
|
||||
static boolean deleteFile(@NotNull final File file) {
|
||||
Boolean result = doIOOperation(new RepeatableIOOperation<Boolean, RuntimeException>() {
|
||||
@Override
|
||||
public Boolean execute(boolean lastAttempt) {
|
||||
|
||||
@@ -18,6 +18,7 @@ import kotlin.time.Duration
|
||||
suspend fun Process.awaitExit(): Int {
|
||||
return loopInterruptible { timeout: Duration ->
|
||||
if (timeout.isInfinite()) {
|
||||
@Suppress("UsePlatformProcessAwaitExit")
|
||||
Attempt.success(waitFor())
|
||||
}
|
||||
else if (waitFor(timeout.inWholeNanoseconds, TimeUnit.NANOSECONDS)) {
|
||||
|
||||
@@ -302,7 +302,7 @@ public final class MainProcessor extends EventProcessor{
|
||||
else if (component instanceof RadRootContainer || e.isShiftDown()) {
|
||||
myCurrentProcessor = new GroupSelectionProcessor(myEditor, component);
|
||||
}
|
||||
else if (!e.isShiftDown()) {
|
||||
else {
|
||||
myCurrentProcessor = new DragSelectionProcessor(myEditor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user