Andreas Dangel
14e29b59c2
Merge pull request #4429 from oowekyala:pmd7-warn-debug
...
[java] Make missing class warnings debug level #4429
2023-03-23 09:51:10 +01:00
Clément Fournier
8307d8f5fa
make missing class warnings debug level
...
Ref #3914
2023-03-21 21:22:19 +01:00
Clément Fournier
c222173234
Also add an optimized forEach impl
...
Benchmark (sourceFname) Mode Cnt Score Error Units
StreamBench.foreachOnChildrenStream /PLSQLParser.java avgt 4 14,992 ± 0,169 ms/op
StreamBench.foreachOnChildrenStreamOpt /PLSQLParser.java avgt 4 8,179 ± 0,141 ms/op
StreamBench.loopOnChildrenStream /PLSQLParser.java avgt 4 9,694 ± 0,549 ms/op
StreamBench.optimizedLoop /PLSQLParser.java avgt 4 7,631 ± 0,143 ms/op
"foreachOnChildrenStreamOpt" is the new implementation, the old is "foreachOnChildrenStream".
For comparison, this new impl of forEach with a lambda appears slightly faster than using a
for-each loop on the children stream, and using a manually indexed loop (with getChild) is
slightly faster.
2023-03-21 20:06:00 +01:00
Clément Fournier
f2dc3805af
Cleanups
2023-03-20 15:18:12 +01:00
Clément Fournier
6eabac7d44
Merge branch 'pmd7-textfile-display-name' into clem.pmd7-refactor-cpd
2023-03-20 15:00:23 +01:00
Clément Fournier
194650832f
Fix VF impl
2023-03-20 14:57:26 +01:00
Clément Fournier
344b2cc17b
Merge branch 'pmd7-textfile-display-name' into clem.pmd7-refactor-cpd
2023-03-20 14:41:17 +01:00
Clément Fournier
9eb5ac9a1f
Fix checkValidity call
2023-03-20 13:56:04 +01:00
Clément Fournier
b71e1711e5
Cleanups and renamings
2023-03-20 13:31:00 +01:00
Clément Fournier
ad219c9967
Move members around
2023-03-20 12:17:14 +01:00
Clément Fournier
7bcb7026dc
Lint
2023-03-20 12:10:08 +01:00
Clément Fournier
a09532e174
Move out into own class
2023-03-19 23:36:07 +01:00
Clément Fournier
a8c481e2ac
Move getFileNameRenderer from FileCollector
2023-03-19 23:29:45 +01:00
Clément Fournier
129b111ee6
Rename PathId -> FileId
2023-03-19 23:20:49 +01:00
Clément Fournier
37e2f8f208
Improve jjt error messages
2023-03-19 22:57:51 +01:00
Clément Fournier
a4024c0021
Fix more things
2023-03-19 21:55:05 +01:00
Clément Fournier
b88297ea7e
Fix cache tests
2023-03-19 19:58:55 +01:00
Clément Fournier
f7ec779f94
Fix renderers
2023-03-19 19:52:49 +01:00
Clément Fournier
28f6c01d51
Fix tests in pmd-core
2023-03-19 19:22:00 +01:00
Clément Fournier
82df565ccc
Fix displayname logic in FileCollector
2023-03-19 18:35:10 +01:00
Clément Fournier
2d7e200db1
add PathId class
2023-03-19 13:08:14 +01:00
Clément Fournier
8c448f2fd8
Make children more efficient on AbstractNode
2023-03-18 16:48:34 +01:00
Clément Fournier
386d77fb68
Move invoke=true
2023-03-18 15:20:46 +01:00
Clément Fournier
6010674e69
Merge branch 'master' into pmd7.micro-opts
2023-03-18 15:17:00 +01:00
Clément Fournier
5db8be42a3
Merge remote-tracking branch 'upstream/master' into clem.pmd7-refactor-cpd
2023-03-17 15:39:01 +01:00
Andreas Dangel
3eb396b04f
[core] Log semantic error warnings without debug note
2023-03-17 11:25:27 +01:00
Andreas Dangel
ee850736f4
Merge branch 'master' into clem.pmd7-remove-pmd-eol
2023-03-17 09:40:54 +01:00
Andreas Dangel
710f9cf2b6
Use AbstractRendererTest#EOL
2023-03-17 09:37:35 +01:00
Andreas Dangel
0b6c349db9
Use \R for line breaks
2023-03-17 09:37:01 +01:00
Clément Fournier
69dba12e6c
Fix test
2023-03-14 22:38:19 +01:00
Clément Fournier
5a662ecb3e
Merge branch '7.0.x' into clem.pmd7-remove-pmd-eol
2023-03-14 21:54:45 +01:00
Clément Fournier
f55c01ac1f
Merge branch '7.0.x' into port-properties
2023-03-14 21:07:35 +01:00
Clément Fournier
fae08a8e08
delete leftover file
2023-03-14 20:50:44 +01:00
Clément Fournier
d6de5ca52b
Fix VF module
2023-03-14 20:49:43 +01:00
Clément Fournier
0f17cc83f6
Add back default version for CPD languages
2023-03-11 17:17:43 +01:00
Clément Fournier
6cbfc7d773
Fix HTML test
2023-03-11 15:49:13 +01:00
Clément Fournier
6bc57b47c8
Reduce cache size
2023-03-11 15:34:25 +01:00
Clément Fournier
d544dc5878
Fix tests
2023-03-11 15:07:48 +01:00
Clément Fournier
1c15f8285a
Remove list trick in Attribute
2023-03-11 14:10:21 +01:00
Clément Fournier
ba2d10c8e2
Change algo to fetch node
...
make better use of the cache
2023-03-11 14:01:48 +01:00
Clément Fournier
eb8b3f570f
Use method handles
2023-03-11 13:52:25 +01:00
Clément Fournier
419b5bae51
New micro opts
...
-5% runtime on openjdk (all java rules).
2023-03-11 13:52:25 +01:00
Clément Fournier
c44ce2633f
Revert forgotten thing
2023-03-04 15:27:49 +01:00
Clément Fournier
67db1dc9d7
Rename noop reporter to QuietReporter
2023-03-04 15:06:09 +01:00
Clément Fournier
c3b88ee5cd
Merge branch 'master' into clem.pmd7-public-noop-reporter
2023-03-04 15:04:17 +01:00
Clément Fournier
0b2f1517ba
Merge branch '7.0.x' into clem.pmd7-refactor-cpd
2023-02-27 00:41:11 +01:00
Clément Fournier
65725c13aa
Merge branch '7.0.x' into pr/4387
2023-02-26 16:17:30 +01:00
Clément Fournier
a8a6dd2586
Merge branch '7.0.x' into clem.pmd7-refactor-cpd
2023-02-26 16:11:13 +01:00
Clément Fournier
22871ad03c
add a test for display name in the cache
2023-02-26 16:06:01 +01:00
Clément Fournier
9e43640834
Change cache log messages to be debug/trace
2023-02-26 15:44:16 +01:00