fix typos

This commit is contained in:
Anna.Kozlova
2018-11-26 14:03:17 +01:00
parent f7dd9e005c
commit 20ada465d1
3 changed files with 3 additions and 3 deletions
@@ -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);
@@ -7,7 +7,7 @@ class MyTest {
int g = switch (i) {
default -> {
String temp = "";
throw new IOEXception(temp);
throw new IOException(temp);
}
};
@@ -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>);
};
}