mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix typos
This commit is contained in:
@@ -92,7 +92,7 @@ class EnsureCodeBlockImpl {
|
||||
return Objects.requireNonNull(copyExpression).replace(((PsiExpressionStatement)copy).getExpression());
|
||||
});
|
||||
}
|
||||
else if (body instanceof PsiThrowStatement || body != null & !addBreak) {
|
||||
else if (body instanceof PsiThrowStatement || body != null && !addBreak) {
|
||||
return replace(expression, body, (old, copy) -> {
|
||||
PsiBlockStatement block = (PsiBlockStatement)old.replace(factory.createStatementFromText("{}", body));
|
||||
return block.getCodeBlock().add(copy);
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ class MyTest {
|
||||
int g = switch (i) {
|
||||
default -> {
|
||||
String temp = "";
|
||||
throw new IOEXception(temp);
|
||||
throw new IOException(temp);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ class MyTest {
|
||||
|
||||
private static void switchChain(final int i) throws IOException {
|
||||
int g = switch (i) {
|
||||
default -> throw new IOEXception(<selection>""</selection>);
|
||||
default -> throw new IOException(<selection>""</selection>);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user