Clément Fournier
1fefbd2c4a
Make FieldDeclaration not a TypeNode
2020-01-07 23:13:05 +01:00
Clément Fournier
1eab9448e7
Use ArrayDimensions for VariableDeclaratorId
...
* Remove `Dimensionable`, remove its methods from the former implementations (except from ASTArrayDimsAndInits, which is itself deprecated)
* The varargs ellipsis is now represented as an ArrayTypeDim.
* This affects FormalParameter and LambdaParameter
Closes #997 . All forms of type annotations are now supported.
2020-01-07 23:12:53 +01:00
Clément Fournier
ac14db90bd
Checkstyle
2020-01-06 18:37:54 +01:00
Clément Fournier
4ce104a41b
Move CharStream into impl.javacc package
2020-01-06 16:41:25 +01:00
Clément Fournier
c1191253a6
Add tests for text access
2020-01-06 16:41:24 +01:00
Clément Fournier
82834c0faa
Revert changes to token managers
2020-01-06 16:40:58 +01:00
Clément Fournier
0d0a45c7ac
Cleanup
2020-01-06 16:40:58 +01:00
Clément Fournier
99cc1afd1b
Remove StringUtil#lineNumberAt(offset)
2020-01-06 16:40:58 +01:00
Clément Fournier
f6d25ccf33
Cleanup token manager errors
2020-01-06 16:40:58 +01:00
Clément Fournier
b1260ff13a
Move classes around, make base jjtree node
2020-01-06 16:40:58 +01:00
Clément Fournier
122a72c7be
Use charsequences more consistently
2020-01-06 16:40:58 +01:00
Clément Fournier
4c07f606df
Rename token to JavaccToken in pmd-java
2020-01-06 16:40:58 +01:00
Clément Fournier
baba1464fc
Doc
2020-01-06 16:40:58 +01:00
Clément Fournier
821c4c41d1
Rename JavaTokenFactory
2020-01-06 16:40:58 +01:00
Clément Fournier
b3860a3d57
Compute image of whitespace tokens lazily
...
Nobody cares and they make up a significant part of
token sequences. Alternatively we could intern them
which would most likely yield near 100% cache hit,
because of indentation patterns.
2020-01-06 16:40:58 +01:00
Clément Fournier
450dfa91ea
Simplify JavaNode
2020-01-06 16:40:58 +01:00
Clément Fournier
8ae188b7ef
Document
2020-01-06 16:40:58 +01:00
Clément Fournier
dabe123f4e
Remove RichCharSeq and impl
2020-01-06 16:40:58 +01:00
Clément Fournier
3f14a88282
Use string instead of RichCharSeq
2020-01-06 16:40:58 +01:00
Clément Fournier
0ce6234ba7
Simplify GTToken
2020-01-06 16:40:58 +01:00
Clément Fournier
1cebd1d59e
Checkstyle
2020-01-06 16:40:58 +01:00
Clément Fournier
cfe720d9be
Don't copy initial string array
2020-01-06 16:40:57 +01:00
Clément Fournier
e8615e850f
Compute getBeginLine dynamically
2020-01-06 16:40:57 +01:00
Clément Fournier
1327d99307
Use token document instead
2020-01-06 16:40:57 +01:00
Clément Fournier
7239201f1d
Fix compil of other modules
2020-01-06 16:40:57 +01:00
Clément Fournier
c8b1e8dada
Make JavaccToken#image private
2020-01-06 16:40:57 +01:00
Clément Fournier
a77e38dea4
Publish RichCharSequence instead of SharingCharSeq
2020-01-06 16:40:57 +01:00
Clément Fournier
a70e70ad15
Refactor JavaCharStream to buffer whole file in memory, provide access to underlying text for all java nodes
2020-01-06 16:40:57 +01:00
Clément Fournier
2da8628ad3
Merge branch 'java-grammar' into grammar-new-statements
2020-01-05 21:22:43 +01:00
Clément Fournier
92bba816a7
Merge branch '7.0.x' into java-grammar
2020-01-05 21:11:37 +01:00
Clément Fournier
0459d0379c
Merge branch 'master' into 7.0.x
2020-01-05 20:31:39 +01:00
Andreas Dangel
a0d0a22e7b
Merge branch 'pr-2190'
...
[java] Deprecations for statements PR
Prerequisite for #2164 for PMD 7.0.0
2020-01-05 19:30:52 +01:00
Andreas Dangel
f973ad6ef3
Merge branch 'pr-2185'
...
[core] Internalize API that exposes ResourceLoader
2020-01-05 19:18:18 +01:00
Andreas Dangel
4cf6291ecb
Fix pmd
2020-01-05 18:20:26 +01:00
Juan Martín Sotuyo Dodero
caaa5eba9a
Fix issue with analysis of IPv6 mapper IPv4
2020-01-04 04:37:13 -03:00
Clément Fournier
86086bc04a
Factorize javacc jar property
2020-01-02 17:41:27 +01:00
Egor18
3b8d694be3
Fix odd logic in AvoidUsingHardCodedIPRule
2019-12-29 22:00:13 +03:00
Clément Fournier
f33291e372
Deprecate ASTYieldStatement implementing TypeNode
2019-12-26 18:53:22 +01:00
Clément Fournier
0a0bb6e4bb
Rename getGuardExpressionNode -> getCondition
2019-12-26 18:47:28 +01:00
Clément Fournier
41baa353b0
Deprecate API of TryStatement that will be renamed
2019-12-26 18:40:24 +01:00
Clément Fournier
05870c98cc
Deprecate RulesetFactory constructors
2019-12-24 14:39:20 +01:00
Clément Fournier
4ed6236a69
Merge branch 'master' into 7.0.x
2019-12-23 12:49:19 +01:00
Clément Fournier
5be83448b0
Merge branch 'java-grammar' into grammar-new-statements
2019-12-23 12:38:48 +01:00
Clément Fournier
a802874a9a
Checkstyle
2019-12-21 00:18:38 +01:00
Andreas Dangel
f67819e05a
Merge branch 'pr-2069'
...
[java] CommentRequired: make property names consistent
2019-12-20 11:38:03 +01:00
Clément Fournier
618ba3bf59
Fix compil
2019-12-20 07:24:50 +01:00
Clément Fournier
cbd5f28d10
Merge branch '7.0.x' into java-grammar
2019-12-19 15:48:13 +01:00
Clément Fournier
5866d9e9dd
Merge branch 'master' into 7.0.x
2019-12-19 15:00:25 +01:00
Andreas Dangel
0ff3216b48
Merge branch 'pr-2150'
...
[java] Fix false negative in AvoidLiteralsInIfCondition
2019-12-18 09:50:19 +01:00
Andreas Dangel
d8ed0cf45e
[java] CommentRequired: Deprecated property "headerCommentRequirement"
2019-12-17 15:44:02 +01:00