Clément Fournier
6378080a37
Add nodes for array type dimensions
2019-05-20 20:13:11 +02:00
Clément Fournier
5e733ee2bb
Merge branch '7.0.x' into pmd7-ast-children-non-null
...
Fix conflicts in AbstractNode
2019-05-18 16:30:06 +02:00
Clément Fournier
bfc60d30c7
Merge branch '7.0.x' into pmd7-lang-test-improvements
2019-05-18 16:23:34 +02:00
Clément Fournier
e6c505f4ca
Merge branch '7.0.x' into pmd7-abstract-node
2019-05-18 16:16:35 +02:00
Andreas Dangel
47f8192764
Merge remote-tracking branch 'origin/master' into pmd/7.0.x
2019-05-11 12:03:08 +02:00
Andreas Dangel
b030999472
Merge branch 'pr-1805'
2019-05-03 11:50:36 +02:00
Clément Fournier
4ea3911b8d
Make AbstractNode.getXPathNodeName() abstract
2019-05-02 19:44:30 +02:00
Venkatachalam, Srinivasan
f9530d1a04
Test cases added for #1738 fix
2019-05-02 19:05:08 +05:30
Andreas Dangel
a0657dd015
Fix node positions of ASTSwitchLabeled* nodes
...
Note: this is a temporary fix. A more general fix is in
branch java-grammar
2019-05-01 19:54:29 +02:00
Clément Fournier
113ad74ddb
refactor: Make the children array never null
2019-05-01 12:40:11 +02:00
Juan Martín Sotuyo Dodero
9545eada2f
Fix NPE in UnnecessaryLocalBeforeReturnRule
...
- Fixes #1804
2019-04-30 14:53:55 -03:00
Clément Fournier
97c3dd1ad6
Merge branch '7.0.x' into remove-dump-facade
2019-04-28 20:59:03 +02:00
Andreas Dangel
0b9e68cf86
Merge branch 'master' into pmd/7.0.x
2019-04-28 11:44:57 +02:00
Venkatachalam, Srinivasan
e07eb076a2
Merge branch 'master' of https://github.com/pmd/pmd
2019-04-28 15:12:52 +05:30
Venkatachalam, Srinivasan
779848aa3f
MethodReturnsInternalArray does not work in inner classes #1738 - Fixed
2019-04-28 15:02:18 +05:30
Andreas Dangel
ca9c859c0b
[maven-release-plugin] prepare for next development iteration
2019-04-28 10:35:44 +02:00
Andreas Dangel
cd8b2e3217
[maven-release-plugin] prepare release pmd_releases/6.14.0
2019-04-28 10:35:36 +02:00
Clément Fournier
038ca21376
Remove dump façade
2019-04-27 15:47:54 +02:00
Clément Fournier
cb122590ba
Merge branch 'master' into 7.0.x
2019-04-26 15:10:04 +02:00
Andreas Dangel
67ac7f5176
[core] Ruleset Compatibility fails with excluding rules
...
Fixes #1794
2019-04-26 14:39:56 +02:00
Andreas Dangel
4bb55e4193
Merge branch 'pr-1767'
2019-04-19 18:58:28 +02:00
Andreas Dangel
84daa1df4f
[java] Add unit test for JavaTypeDefinitionSimple
2019-04-19 18:57:12 +02:00
Andreas Dangel
002f3fd671
Merge branch 'pr-1779'
2019-04-19 18:15:11 +02:00
Andreas Dangel
4ffc42a91b
Merge branch 'pr-1778'
2019-04-19 18:14:20 +02:00
Andreas Dangel
88c7aac7a1
Merge branch 'pr-1768'
2019-04-19 18:12:40 +02:00
Andreas Dangel
b55676e4d0
Add test case for NoPackage and Annotation
...
Update release notes, fixes #1782 , refs #1771
2019-04-18 19:55:56 +02:00
Juan Martín Sotuyo Dodero
f2892ad004
Merge branch 'pr-1781'
2019-04-17 11:33:38 -03:00
Maikel Steneker
fd13a4bf21
Improved test cases for AssignmentToNonFinalStatic by including the expected line numbers for violations in the test cases.
2019-04-17 16:00:38 +02:00
Maikel Steneker
d4ca21bfd3
AssignmentToNonFinalStatic now reports multiple violations in case there are multiple unsafe assignments on the same variable.
2019-04-17 15:20:15 +02:00
Maikel Steneker
4a8c23472c
Added test case for multiple violations of AssignmentToNonFinalStatic on the same variable.
...
Rationale: whenever this rule produces a violation, all of the unsafe assignments need to be corrected. It's annoying to fix one of these, rerun PMD and then realize there's another unsafe assignment left. Therefore, all of these violations should be reported at once.
2019-04-17 15:19:56 +02:00
Maikel Steneker
cd465918b5
Changed location for AssignmentToNonFinalStatic violations from field declaration at to assignment in constructor.
...
This makes it easier to identify the code that needs to be adjusted in order to resolve the violation.
2019-04-17 15:05:20 +02:00
Juan Martín Sotuyo Dodero
54dc9ce3cf
Merge branch 'pr-1776'
2019-04-16 17:01:03 -03:00
Juan Martín Sotuyo Dodero
17b7837dcc
Bring back the TODO
2019-04-16 16:59:40 -03:00
Juan Martín Sotuyo Dodero
cb1b5c16bf
[java] Have symbol table recognize concise resources
...
- Concise resources are valid usages.
- Fixes #1190
2019-04-16 16:51:15 -03:00
Juan Martín Sotuyo Dodero
7c6d8be1d2
Delay searching statements
2019-04-16 14:09:30 -03:00
Juan Martín Sotuyo Dodero
28c3752088
[java] Fix FN in UnnecessaryLocalBeforeReturn
...
- Fixes #1775
2019-04-16 14:04:46 -03:00
Juan Martín Sotuyo Dodero
c321de75af
Merge pull request #1773 from oowekyala/xpath-declare-fn-on-saxon
...
[core] Declare fn namespace on Saxon
2019-04-15 17:30:54 -03:00
Фомин Андрей Николаевич
f121b102a4
[java] Show more detailed message when can't resolve field type
2019-04-15 16:17:45 +07:00
Clément Fournier
8931195156
Merge branch 'pr-1771'
2019-04-13 19:56:48 +02:00
Clément Fournier
3815066710
Add tests
2019-04-13 19:39:28 +02:00
Juan Martín Sotuyo Dodero
eb7903d963
[java] Fix NoPackage rule
...
- Also make it's search much more precise, making it 10X faster
2019-04-12 17:27:45 -03:00
Juan Martín Sotuyo Dodero
5ad7ca97bc
[java] Add failing enum case for NoPackage
2019-04-12 17:27:27 -03:00
Juan Martín Sotuyo Dodero
44573d8bbe
[java] JUnitTestContainsTooManyAsserts uses XPath 2
...
- We are already using `pmd-java:typeIs`, so it's the correct thing to
do.
- Plus, this way it's 6X faster
2019-04-12 16:57:03 -03:00
Juan Martín Sotuyo Dodero
23185f9e6d
[java] Fix NPE in type resolution
...
- Fixes #1532
2019-04-12 14:45:53 -03:00
Juan Martín Sotuyo Dodero
bb1ede5598
Update changelog, refs #1691
2019-04-12 14:29:44 -03:00
Juan Martín Sotuyo Dodero
12afff4f5b
[java] Fix race conditions in JavaTypeDefinitionSimple
...
- The data is now a fixed-size array instead of a fixed-size arraylist,
this removes the need to manually add null elements all over.
- This in turn avoids the resizing / runtime exceptions under
multithreaded accesses.
- Take the change to fix the way `isGeneric` is resolved to be
consistent over time and correct.
- Fixes #1691
2019-04-12 14:29:26 -03:00
Clément Fournier
093687048d
Merge branch 'master' into 7.0.x
2019-04-11 15:18:54 +02:00
Clément Fournier
d1f532de5b
Merge branch 'master' into 7.0.x
2019-04-07 18:25:54 +02:00
Andreas Dangel
96a14ede0a
Simplify test xml
...
CDATA is not necessary for test case descriptions
2019-04-05 14:44:45 +02:00
Björn Kautler
f3c0d39f66
Fix UseObjectForClearerAPI rule that treated String and String[] the same
2019-04-03 12:00:40 +02:00