Clément Fournier
82c35aa3e8
Unimportant grammar cleanups
2020-04-08 21:23:49 +02:00
Andreas Dangel
8a6b2b3918
Fix compile errors
2020-04-04 19:39:39 +02:00
Andreas Dangel
735cbad432
Merge branch 'pmd/7.0.x' into java-grammar
2020-04-04 19:15:53 +02:00
Andreas Dangel
ef1c50707b
[java] Fix compile errors
2020-04-04 19:03:22 +02:00
Andreas Dangel
c8ffb63e40
Merge remote-tracking branch 'origin/master' into pmd/7.0.x
2020-04-04 18:36:27 +02:00
Andreas Dangel
69ed0464a7
Merge branch 'pr-2385'
...
[java] Make yield statements more conditional #2385
Fixes #2319
2020-04-04 18:20:49 +02:00
Andreas Dangel
a04964c32a
Merge branch 'pr-2392'
...
[java] Fix UseDiamondOperator false positive inside lambda #2392
2020-04-04 10:44:32 +02:00
Andreas Dangel
04f0bb78b9
Merge branch 'pr-2380'
...
[java] Make TypeHelper use the class loading cache of ClassTypeResolver #2380
2020-04-03 15:41:09 +02:00
Andreas Dangel
6e47c2845d
Fix checkstyle
2020-04-03 12:44:13 +02:00
Clément Fournier
2f69db63c0
Don't use ASTList in the end
2020-04-02 23:57:02 +02:00
Clément Fournier
56cb4f41a3
Fix compil
2020-04-02 23:48:39 +02:00
Clément Fournier
0e6092fbdd
Make TypeBody extend ASTList
2020-04-02 20:57:41 +02:00
Clément Fournier
cdbae0ebd6
Find another node to implement ASTList
2020-04-02 20:52:30 +02:00
Clément Fournier
d2704d8919
Use ASTList return type
2020-04-02 20:52:08 +02:00
Clément Fournier
84988e6f65
Rename method of AnyTypeDeclaration to match its 6.0 name
...
Remove it from ClassOrInterfaceDeclaration
2020-04-02 20:28:56 +02:00
Clément Fournier
a066f1ec14
Simplify record component mapping
2020-04-02 20:10:48 +02:00
Clément Fournier
5cb0881f36
Merge branch 'sym-record-support' into java-grammar
2020-04-02 20:07:10 +02:00
Clément Fournier
53a43f61af
Cleanup test utils
2020-04-02 13:47:50 +02:00
Clément Fournier
6ba8497f05
Fix static method import
2020-03-31 10:34:33 +02:00
Clément Fournier
4d17358746
Fix FP with array creation
2020-03-30 16:48:42 +02:00
Clément Fournier
5d80e6d1ff
Fix pmd
2020-03-30 10:50:19 +02:00
Clément Fournier
eb7949045f
Isolate version-sensitive tests
2020-03-30 10:23:41 +02:00
Clément Fournier
e58eb0f017
Fix UseDiamondOperator
...
Fixes #1723
2020-03-30 09:59:23 +02:00
Andreas Dangel
a3cd0cf47d
Merge branch 'pr-2384' #2384
...
[java] Performance improve xpath based rules
2020-03-29 17:26:26 +02:00
Clément Fournier
b243c05232
Ensure list is mutable
2020-03-29 16:25:12 +02:00
Clément Fournier
1d66682e77
Fix tests
2020-03-29 13:58:06 +02:00
Clément Fournier
1ce2d46e54
Merge branch 'java-grammar' into sym-record-support
2020-03-29 13:38:05 +02:00
Clément Fournier
b223a9db33
Fix blocklike scoping
...
Local vars and classes are only in scope
following their declaration. This affects
shadowing and cannot be ignored
2020-03-29 13:30:49 +02:00
Clément Fournier
742f4a419c
Merge branch 'sym-ast-processor' into java-grammar
2020-03-28 15:33:52 +01:00
Clément Fournier
9a2810a4e3
Merge branch '7.0.x' into java-grammar
2020-03-28 15:28:34 +01:00
Clément Fournier
571a4167b8
Merge branch 'master' into 7.0.x
2020-03-28 15:14:09 +01:00
Clément Fournier
fc8900cbfd
Test
2020-03-28 15:02:38 +01:00
Clément Fournier
b58d5007e8
Doc
2020-03-28 13:44:33 +01:00
Clément Fournier
a1cd16698c
Checkstyle + PMD
2020-03-28 13:39:11 +01:00
Clément Fournier
cbdca2f73a
Fix record component list being maybe empty
2020-03-28 13:30:04 +01:00
Clément Fournier
ea05443ddf
Fix visitor delegation
2020-03-28 13:30:04 +01:00
Clément Fournier
d5212f363c
Fix fake symbol toString + equals
2020-03-28 13:30:04 +01:00
Clément Fournier
32aac35b5f
Generate record component accessors
2020-03-28 13:30:04 +01:00
Clément Fournier
4bb1a3acd0
Test
2020-03-28 13:30:04 +01:00
Clément Fournier
80e70a3e16
Add symbol table support
2020-03-28 13:30:04 +01:00
Clément Fournier
ab67576787
Support record constructors
2020-03-28 13:30:04 +01:00
Clément Fournier
904832f335
Barebones record support
2020-03-28 13:30:04 +01:00
Clément Fournier
e1a4b8ae97
Forbid type params for record ctors
2020-03-28 11:43:20 +01:00
Clément Fournier
7c433f8820
Remove import to reduce diff
2020-03-28 11:36:42 +01:00
Clément Fournier
b01d4dc0d7
Test
2020-03-28 11:36:42 +01:00
Clément Fournier
9e9c370a4a
Make yield more conditional
...
Refs #2319
2020-03-28 11:36:38 +01:00
Clément Fournier
485fa4ad50
Fix test case name
2020-03-28 11:06:10 +01:00
Clément Fournier
552931d965
Fix AbstractClassWithoutAnyMethods FN with inner classes
2020-03-28 11:03:40 +01:00
Andreas Dangel
25ef59d5a7
[java] Performance improve xpath based rules
...
If an unbounded path expression like
//PrimaryExpression[//ClassOrInterfaceDeclaration]
is used, then this will search the whole document again.
It will also avoid using rule chain later on, see #2382
2020-03-27 18:41:05 +01:00
Clément Fournier
233686fb54
Don't use ClassScope in node signatures
2020-03-27 16:42:35 +01:00