Commit Graph

2733 Commits

Author SHA1 Message Date
eae6e96db0 [java] Add type parameters for test 2020-02-28 19:11:10 +01:00
ee211d42b1 [java] Remove unneccessary annotation parsing 2020-02-28 19:07:03 +01:00
2ace55f635 [java] Support RecordConstructorDeclaration as AnyTypeBodyDeclaration 2020-02-28 18:59:16 +01:00
7d3df99134 [java] RecordBody - test with more annotation and use deep lookahead
Record constructors are not allowed to throw exceptions.
2020-02-28 18:41:22 +01:00
0ecd1da200 [java] Get rid of RecordBodyDeclaration node 2020-02-28 18:32:33 +01:00
fa28aa7e23 [java] Test annotations with RecordComponents 2020-02-28 17:59:39 +01:00
68ba8a967d [java] Test nested record type 2020-02-28 17:41:26 +01:00
e017def280 [java] Support vararg/array in RecordComponent and empty components 2020-02-28 17:35:44 +01:00
5f43e198d5 [java] RecordConstructorDeclaration - do not use Name() 2020-02-28 17:01:57 +01:00
9917e3f422 [java] RecordComponents -> RecordComponentList 2020-02-28 16:56:43 +01:00
e2d84d6741 [java] Add grammar jdoc for new Record types 2020-02-28 16:50:57 +01:00
8a224462fd [java] Add initial support for Java 14 Preview record types 2020-02-28 14:58:52 +01:00
524925f8cb [java] Rewrite escape sequence interpreting for text blocks 2020-02-28 11:29:09 +01:00
adfb2ab129 [java] Update grammar 2020-02-28 10:51:38 +01:00
b1acb29257 [java] VariableDeclarationId of pattern bindings is implicitly final 2020-02-28 10:50:00 +01:00
09ff74ea7a [java] Don't consider VariableDeclaratorIds of Pattern Bindings for now 2020-02-28 10:38:44 +01:00
8a90c2d11d [java] ASTLiteral - move the tests for text block content
Also fix determining the start of the content, when there are
multiple line terminators without indenting whitespace.
2020-02-28 09:43:54 +01:00
9a80f13164 [java] Fix new escape sequence "\s" detection 2020-02-27 21:23:33 +01:00
81bb8090cf [java] Don't throw IllegalArgument if Literal is not a text block 2020-02-27 21:14:29 +01:00
da01ed4fde Fix checkstyle 2020-02-27 21:12:00 +01:00
d16751d136 [java] Add support for TextBlocks in Java14
* New escape sequence "\s" added
* Added experimental ASTLiteral::getTextBlockContent to retrieve
  the text block with stripped indentation
2020-02-27 21:11:02 +01:00
9d5b7554f0 [java] Make sure, SwitchExpressions with yield work with java14
Add additional tests for java14, so that we can later simply remove
the java13 preview tests
2020-02-27 18:30:39 +01:00
f3da33944b [java] version 14 is now the new default 2020-02-27 15:15:50 +01:00
3a283559b4 Merge remote-tracking branch 'oowekyala/jdk14-pattern-matching' into jdk14 2020-02-27 15:03:24 +01:00
59e4be3648 Update gitignore
files generated by eclipse m2e plugin and pmd plugin
2020-02-20 11:29:10 +01:00
4ce85c4656 [java] Fix deprecated usage of ArgumentCount/ParameterCount in rules 2020-02-16 14:41:37 +01:00
80cba026c2 [java] Deprecate getArgumentCount()/getParameterCount()
* ASTArguments#getArgumentCount()
* ASTFormalParameters#getParameterCount()

Refs #2271
2020-02-16 13:12:28 +01:00
7fb09deb3d Merge branch 'pr-2263'
[java] Fix InvalidLogMessageFormat false-positive with lambda arguments
2020-02-16 12:06:12 +01:00
cb50a7af58 Merge branch 'pr-2236'
[java] Don't use ClassNotFoundException to report unresolved classes
2020-02-16 12:03:44 +01:00
92fa8231e7 Merge branch 'pr-2267'
[docs] Update docs about writing rules
2020-02-16 11:57:26 +01:00
d06b01785a [java] Code formatting for properties in SingularFieldRule 2020-02-16 11:20:02 +01:00
9e2368257f Merge branch 'pr-2241'
[core] Simplify metrics framework
2020-02-16 10:57:10 +01:00
4cef149f45 Merge branch 'pr-2278'
[java] fix UnusedImports rule for ambiguous static on-demand imports
2020-02-13 11:15:34 +01:00
1bba78cc65 [java] Remove unnecessary CDATA for UnusedImports tests 2020-02-13 11:12:44 +01:00
d61ec4c737 Deprecations for #2248 2020-02-12 14:39:01 +01:00
63fbfbd8c7 UnusedImports rule now matches regular static imports first and on-demand static imports after that 2020-02-10 23:20:08 +01:00
48cd952feb Merge branch 'pr-2269'
[java] Improve TypeHelper resilience
2020-02-10 19:17:24 +01:00
0c9e813ac4 [java] AppendCharacterWithChar: remove unnecessary CDATA sections
The CDATA sections for the descriptions of the test cases
are not necessary.
2020-02-10 18:58:09 +01:00
97a4394553 Mark new API as experimental 2020-02-09 17:45:08 +01:00
adbe5eb553 make AppendCharacterWithCharRule ignore String literals, which are part of an expression, such as in StringBuffer.append("X".repeat(5)); 2020-02-09 07:23:13 +01:00
5a6d332579 Make sure symbol table doesn't cry on duplicate name 2020-02-09 00:11:06 +01:00
ad023e8fa6 Support type test patterns 2020-02-09 00:10:50 +01:00
6e4daadc43 Add java version 14 2020-02-08 20:22:59 +01:00
5ba1823005 Improve fallback strategy of TypeHelper 2020-02-06 16:56:20 +01:00
dd87753f1a [java] InvalidLogMessageFormat: add disabled false-negative test case 2020-01-31 16:07:57 +01:00
e0e858d39e [java] InvalidLogMessageFormat false-positive for a lambda argument
Fixes #2255

This is actually only a workaround - lambda parameters are ignored now.
2020-01-30 21:14:25 +01:00
cad1f40b02 Merge branch 'pr-2251'
[java] FP for InvalidLogMessageFormat when using slf4j-Markers

Fixes #2250
2020-01-26 19:57:20 +01:00
d91e626a0b Format idents in java grammar 2020-01-25 10:59:57 +01:00
60cb037f80 FP for InvalidLogMessageFormat when using slf4j-Markers 2020-01-25 10:17:59 +01:00
d90d5d267c Remove trailing whitespace everywhere 2020-01-24 23:40:06 +01:00