diff --git a/java/java-psi-impl/src/com/intellij/lang/java/parser/StatementParser.java b/java/java-psi-impl/src/com/intellij/lang/java/parser/StatementParser.java index 47e48e99547d..a2bce4d119d5 100644 --- a/java/java-psi-impl/src/com/intellij/lang/java/parser/StatementParser.java +++ b/java/java-psi-impl/src/com/intellij/lang/java/parser/StatementParser.java @@ -83,12 +83,13 @@ public class StatementParser { while (true) { final IElementType type = builder.getTokenType(); if (ElementType.PRIMITIVE_TYPE_BIT_SET.contains(type) || ElementType.MODIFIER_BIT_SET.contains(type) || - type == JavaTokenType.IDENTIFIER || type == JavaTokenType.LT || type == JavaTokenType.GT || + (type == JavaTokenType.IDENTIFIER && list.size() > 0) || type == JavaTokenType.LT || type == JavaTokenType.GT || type == JavaTokenType.GTGT || type == JavaTokenType.GTGTGT || type == JavaTokenType.COMMA || type == JavaTokenType.DOT || type == JavaTokenType.EXTENDS_KEYWORD || type == JavaTokenType.IMPLEMENTS_KEYWORD) { list.add(type); builder.advanceLexer(); - } else { + } + else { break; } } diff --git a/java/java-tests/testData/codeInsight/completion/className/java/ReplaceReferenceExpressionWithTypeElement.java b/java/java-tests/testData/codeInsight/completion/className/java/ReplaceReferenceExpressionWithTypeElement.java index e2de8f6bb2ee..5fc12c21c0db 100644 --- a/java/java-tests/testData/codeInsight/completion/className/java/ReplaceReferenceExpressionWithTypeElement.java +++ b/java/java-tests/testData/codeInsight/completion/className/java/ReplaceReferenceExpressionWithTypeElement.java @@ -1,7 +1,7 @@ class FooFooFooFooFoo { - { - int a = 0; - ABCD - foo(new String[]{"a"}, 1); - } + { + int a = 0; + ABCD + foo(new String[]{"a"}, 1); + } } \ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/completion/className/java/ReplaceReferenceExpressionWithTypeElement_after.java b/java/java-tests/testData/codeInsight/completion/className/java/ReplaceReferenceExpressionWithTypeElement_after.java index fb7fee5843a4..d2b3224466a1 100644 --- a/java/java-tests/testData/codeInsight/completion/className/java/ReplaceReferenceExpressionWithTypeElement_after.java +++ b/java/java-tests/testData/codeInsight/completion/className/java/ReplaceReferenceExpressionWithTypeElement_after.java @@ -1,9 +1,9 @@ import foo.bar.ABCDEF; class FooFooFooFooFoo { - { - int a = 0; - ABCDEF - foo(new String[]{"a"}, 1); - } + { + int a = 0; + ABCDEF + foo(new String[]{"a"}, 1); + } } \ No newline at end of file diff --git a/java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors4.java.txt b/java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors4.java similarity index 100% rename from java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors4.java.txt rename to java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors4.java diff --git a/java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors4.txt b/java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors4.txt index dba40d2924f5..8403f0d8d947 100644 --- a/java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors4.txt +++ b/java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors4.txt @@ -1,4 +1,4 @@ -PsiJavaFile:Errors4.java.txt +PsiJavaFile:Errors4.java PsiImportList PsiClass:OutOfMemoryExceptionDemo diff --git a/java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors5.java b/java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors5.java new file mode 100644 index 000000000000..a88db6b0fa53 --- /dev/null +++ b/java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors5.java @@ -0,0 +1,22 @@ +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +private static class My extends JComponent { + private My(Map> param) { + setBorder(null); + param + list(); + } +} \ No newline at end of file diff --git a/java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors5.txt b/java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors5.txt new file mode 100644 index 000000000000..93ee5111a400 --- /dev/null +++ b/java/java-tests/testData/psi/parser-full/declarationParsing/class/Errors5.txt @@ -0,0 +1,109 @@ +PsiJavaFile:Errors5.java + PsiImportList + + PsiClass:My + PsiComment(C_STYLE_COMMENT)('/*\n * Copyright 2000-2012 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */') + PsiWhiteSpace('\n') + PsiModifierList:private static + PsiKeyword:private('private') + PsiWhiteSpace(' ') + PsiKeyword:static('static') + PsiWhiteSpace(' ') + PsiKeyword:class('class') + PsiWhiteSpace(' ') + PsiIdentifier:My('My') + PsiTypeParameterList + + PsiWhiteSpace(' ') + PsiReferenceList + PsiKeyword:extends('extends') + PsiWhiteSpace(' ') + PsiJavaCodeReferenceElement:JComponent + PsiIdentifier:JComponent('JComponent') + PsiReferenceParameterList + + PsiReferenceList + + PsiWhiteSpace(' ') + PsiJavaToken:LBRACE('{') + PsiWhiteSpace('\n ') + PsiMethod:My + PsiModifierList:private + PsiKeyword:private('private') + PsiTypeParameterList + + PsiWhiteSpace(' ') + PsiIdentifier:My('My') + PsiParameterList:(Map> param) + PsiJavaToken:LPARENTH('(') + PsiParameter:param + PsiModifierList: + + PsiTypeElement:Map> + PsiJavaCodeReferenceElement:Map> + PsiIdentifier:Map('Map') + PsiReferenceParameterList + PsiJavaToken:LT('<') + PsiTypeElement:String + PsiJavaCodeReferenceElement:String + PsiIdentifier:String('String') + PsiReferenceParameterList + + PsiJavaToken:COMMA(',') + PsiWhiteSpace(' ') + PsiTypeElement:List + PsiJavaCodeReferenceElement:List + PsiIdentifier:List('List') + PsiReferenceParameterList + PsiJavaToken:LT('<') + PsiTypeElement:Object + PsiJavaCodeReferenceElement:Object + PsiIdentifier:Object('Object') + PsiReferenceParameterList + + PsiJavaToken:GT('>') + PsiJavaToken:GT('>') + PsiWhiteSpace(' ') + PsiIdentifier:param('param') + PsiJavaToken:RPARENTH(')') + PsiReferenceList + + PsiWhiteSpace(' ') + PsiCodeBlock + PsiJavaToken:LBRACE('{') + PsiWhiteSpace('\n ') + PsiExpressionStatement + PsiMethodCallExpression:setBorder(null) + PsiReferenceExpression:setBorder + PsiReferenceParameterList + + PsiIdentifier:setBorder('setBorder') + PsiExpressionList + PsiJavaToken:LPARENTH('(') + PsiLiteralExpression:null + PsiJavaToken:NULL_KEYWORD('null') + PsiJavaToken:RPARENTH(')') + PsiJavaToken:SEMICOLON(';') + PsiWhiteSpace('\n ') + PsiExpressionStatement + PsiReferenceExpression:param + PsiReferenceParameterList + + PsiIdentifier:param('param') + PsiErrorElement:';' expected + + PsiWhiteSpace('\n ') + PsiExpressionStatement + PsiMethodCallExpression:list() + PsiReferenceExpression:list + PsiReferenceParameterList + + PsiIdentifier:list('list') + PsiExpressionList + PsiJavaToken:LPARENTH('(') + PsiJavaToken:RPARENTH(')') + PsiJavaToken:SEMICOLON(';') + PsiWhiteSpace('\n ') + PsiJavaToken:RBRACE('}') + PsiWhiteSpace('\n') + PsiJavaToken:RBRACE('}') \ No newline at end of file diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/annotationParsing/AnnotationDeclarationParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/annotationParsing/AnnotationDeclarationParsingTest.java index 97ac72c24df5..7008e5f30cad 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/annotationParsing/AnnotationDeclarationParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/annotationParsing/AnnotationDeclarationParsingTest.java @@ -1,8 +1,22 @@ +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.annotationParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - /** * @author ven */ @@ -12,12 +26,8 @@ public class AnnotationDeclarationParsingTest extends JavaParsingTestCase { } public void testSimple() { doTest(true); } - public void testDefault() { doTest(true); } - public void testNested() { doTest(true); } - public void testInner() { doTest(true); } - public void testOtherMembers() { doTest(true); } } diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/annotationParsing/AnnotationParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/annotationParsing/AnnotationParsingTest.java index 3b6b1f62577f..a2639d698a1b 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/annotationParsing/AnnotationParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/annotationParsing/AnnotationParsingTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.annotationParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/ClassParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/ClassParsingTest.java index ac6538d31d9c..04cf2bc85de1 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/ClassParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/ClassParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.declarationParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class ClassParsingTest extends JavaParsingTestCase { public ClassParsingTest() { super("parser-full/declarationParsing/class"); @@ -41,15 +54,6 @@ public class ClassParsingTest extends JavaParsingTestCase { public void testErrors1() { doTest(true); } public void testErrors2() { doTest(true); } public void testErrors3() { doTest(true); } - - public void testErrors4() { - String ext = myFileExt; - try { - myFileExt = ext + ".txt"; // TODO this test produces OOME so we use nondefault extension, the test could be simplified once the fix is in place - doTest(true); - } - finally { - myFileExt = ext; - } - } + public void testErrors4() { doTest(true); } + public void testErrors5() { doTest(true); } } diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/CommentBindingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/CommentBindingTest.java index 55b61a535152..87e877675099 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/CommentBindingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/CommentBindingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.declarationParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class CommentBindingTest extends JavaParsingTestCase { public CommentBindingTest() { super("parser-full/declarationParsing/commentBinding"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/FieldParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/FieldParsingTest.java index f60cc67f98a7..19943f50aaa8 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/FieldParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/FieldParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.declarationParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class FieldParsingTest extends JavaParsingTestCase { public FieldParsingTest() { super("parser-full/declarationParsing/field"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/MethodParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/MethodParsingTest.java index e9a3b9559e58..f7d2d15ebf8c 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/MethodParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/declarationParsing/MethodParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.declarationParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class MethodParsingTest extends JavaParsingTestCase { public MethodParsingTest() { super("parser-full/declarationParsing/method"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/AssertParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/AssertParsingTest.java index 912880e84be0..1b25ff9c93e4 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/AssertParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/AssertParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.statementParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class AssertParsingTest extends JavaParsingTestCase { public AssertParsingTest() { super("parser-full/statementParsing/assert"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/AssignmentParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/AssignmentParsingTest.java index d6d87cde3aee..d75ddec10463 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/AssignmentParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/AssignmentParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.statementParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class AssignmentParsingTest extends JavaParsingTestCase { public AssignmentParsingTest() { super("parser-full/statementParsing/assignment"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/CodeBlockParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/CodeBlockParsingTest.java index f985b8d730e2..627d7f5ed459 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/CodeBlockParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/CodeBlockParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.statementParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class CodeBlockParsingTest extends JavaParsingTestCase { public CodeBlockParsingTest() { super("parser-full/statementParsing/codeBlock"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/DeclarationsWithGenericsParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/DeclarationsWithGenericsParsingTest.java index 26fda231fc58..9e6eca8c3ce5 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/DeclarationsWithGenericsParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/DeclarationsWithGenericsParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.statementParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class DeclarationsWithGenericsParsingTest extends JavaParsingTestCase { public DeclarationsWithGenericsParsingTest() { super("parser-full/statementParsing/genericsParsing"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/DoWhileParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/DoWhileParsingTest.java index 6d0f0fc8303c..1329edaf46d0 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/DoWhileParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/DoWhileParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.statementParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class DoWhileParsingTest extends JavaParsingTestCase { public DoWhileParsingTest() { super("parser-full/statementParsing/do-while"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/ForParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/ForParsingTest.java index cf6323f288bc..827ce595d2b3 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/ForParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/ForParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.statementParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class ForParsingTest extends JavaParsingTestCase { public ForParsingTest() { super("parser-full/statementParsing/for"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/IfParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/IfParsingTest.java index 46c81d2cf173..8fca71b06c44 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/IfParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/IfParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.statementParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class IfParsingTest extends JavaParsingTestCase { public IfParsingTest() { super("parser-full/statementParsing/if"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/LabelParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/LabelParsingTest.java index 60963a52b41c..992b788f0821 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/LabelParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/LabelParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.statementParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class LabelParsingTest extends JavaParsingTestCase { public LabelParsingTest() { super("parser-full/statementParsing/label"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/ReturnParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/ReturnParsingTest.java index 8bb486c08d8d..b853e71007ac 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/ReturnParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/ReturnParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.statementParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class ReturnParsingTest extends JavaParsingTestCase { public ReturnParsingTest() { super("parser-full/statementParsing/return"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/SwitchParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/SwitchParsingTest.java index 4c0040404e3e..afc66c80fcf2 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/SwitchParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/SwitchParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.statementParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class SwitchParsingTest extends JavaParsingTestCase { public SwitchParsingTest() { super("parser-full/statementParsing/switch"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/SynchronizedParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/SynchronizedParsingTest.java index 0987f772246c..0ac26da2d944 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/SynchronizedParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/SynchronizedParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.statementParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class SynchronizedParsingTest extends JavaParsingTestCase { public SynchronizedParsingTest() { super("parser-full/statementParsing/synchronized"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/ThrowParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/ThrowParsingTest.java index 3f9fa0478381..9deac4d2ae31 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/ThrowParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/ThrowParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.statementParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class ThrowParsingTest extends JavaParsingTestCase { public ThrowParsingTest() { super("parser-full/statementParsing/throw"); diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/WhileParsingTest.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/WhileParsingTest.java index 1ab607b09d70..b10da9a339dd 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/WhileParsingTest.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/statementParsing/WhileParsingTest.java @@ -1,9 +1,22 @@ - +/* + * Copyright 2000-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.lang.java.parser.statementParsing; import com.intellij.lang.java.parser.JavaParsingTestCase; - public class WhileParsingTest extends JavaParsingTestCase { public WhileParsingTest() { super("parser-full/statementParsing/while");