diff --git a/java/java-psi-impl/src/com/intellij/lang/java/lexer/JavaLexer.java b/java/java-psi-impl/src/com/intellij/lang/java/lexer/JavaLexer.java index 653a304b469b..a82675a706ee 100644 --- a/java/java-psi-impl/src/com/intellij/lang/java/lexer/JavaLexer.java +++ b/java/java-psi-impl/src/com/intellij/lang/java/lexer/JavaLexer.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -181,9 +181,6 @@ public class JavaLexer extends LexerBase { myTokenEndOffset = myFlexLexer.getTokenEnd(); } catch (IOException e) { /* impossible */ } - catch (Error e) { - throw new IllegalArgumentException("Non-parsable text `" + myBuffer + "`", e); - } } private int getClosingParenthesis(int offset, char c) {