143 Commits

Author SHA1 Message Date
Clément Fournier
88b34feb22 Use wildcards for acceptVisitor 2020-06-17 21:21:00 +02:00
Clément Fournier
f7b1c375c1 Fix scala compilation 2020-06-14 13:02:30 +02:00
Clément Fournier
b88ddf41c0 Add generic visitor interface in pmd-core
Replace SideEffectingVisitor with JavaVisitor

The new visitor is generic. We don't actually need the
old Object->Object visitor, this could just be the new
generic visitor but erased

Port language level checker

Move delegators

Remove old accept methods

Remove reduced adapter

Cleanup some visitor

Make ant wrapper replace old visitor completely

Doc

Add DeprecatedUntil700 annotation

Add top interface for visitors

Convert JSP visitors

Checkstyle

Fix java module
2020-06-14 11:43:24 +02:00
Andreas Dangel
510d5c633a Merge branch 'master' into pmd/7.0.x 2020-05-24 17:47:30 +02:00
Andreas Dangel
a3a292d591 Remove unnecessary source-type tags in rule tests
source-type is actually only needed if
* the language supports more than one version
* the parser behaves differently with different versions
  (this has to do with compatibility, e.g. assert/enum keywords
  in java)
* the test needs a newer version than the default version
  (e.g. to test new language features)
* the test needs an older version than the default version
  (e.g. the rule has a maximumLanguageVersion specified)
* the rule behaves differently for different versions
  (e.g. BigIntegerInstantiation)
2020-05-23 14:16:13 +02:00
Andreas Dangel
2dae9c085f Merge branch 'master' into pmd/7.0.x 2020-05-23 11:42:20 +02:00
Andreas Dangel
7de968a5c9 [jsp] Cleanup rule test xml files
Avoid unnecessary CDATA for description
Use 4 space indentation instead of tabs
Remove trailing whitespace
End file with a newline
2020-05-16 18:56:05 +02:00
Clément Fournier
1a6d7b393c Add a type parameter to AbstractNode 2020-04-26 19:04:31 +02:00
Clément Fournier
81c3743430 Hide setImage 2020-04-23 21:15:52 +02:00
Clément Fournier
11d7aeb10f Add GenericNode & JjtreeNode interfaces 2020-04-23 19:59:52 +02:00
Andreas Dangel
1c8c631637 Merge branch 'master' into pmd/7.0.x 2020-04-19 21:06:32 +02:00
Andreas Dangel
08d31c62a9 Merge branch 'master' into pr-2377 2020-04-16 17:52:03 +02:00
Clément Fournier
bcf90ceb8a Externalize creator for XPath rule 2020-04-08 21:35:34 +02:00
Clément Fournier
0d65c2e6e6 Add relevant property tag 2020-03-20 18:47:40 +01:00
Clément Fournier
96feed7b83 Do it for the other languages 2020-03-20 18:07:56 +01:00
Clément Fournier
e9b65823bf Cleanup TokenMgrError 2020-03-20 18:07:56 +01:00
Clément Fournier
3cdcba2299 Fix file name for token manager error 2020-03-20 18:07:56 +01:00
Clément Fournier
ee4257d8fc Fix JSP CPD tests
CPD "normalizes" line separators to the
platform-specific separator. This should
be fixed later when we move to TextDocument
2020-03-20 02:58:43 +01:00
Clément Fournier
e577169862 Cleanup some usages of CollectionUtil 2020-03-20 01:32:55 +01:00
Clément Fournier
242432237c Use base JJTree class for the JSP parser 2020-03-19 16:45:24 +01:00
Andreas Dangel
02595f846a [jsp] OpenTagRegister is package-private 2020-03-19 15:22:40 +01:00
Andreas Dangel
8268e479dd [jsp] Remove deprecated annotation 2020-03-19 15:16:48 +01:00
Andreas Dangel
8baaef915b [jsp] License headers 2020-03-19 15:16:32 +01:00
Clément Fournier
f767903b0c Checkstyle 2020-03-17 17:25:57 +01:00
Clément Fournier
affb0461c9 Skip bom 2020-03-17 15:53:37 +01:00
Clément Fournier
7108a166d4 Make setters package-private 2020-03-17 15:51:22 +01:00
Clément Fournier
5fe9fb8f52 Make JSP nodes final 2020-03-17 15:47:51 +01:00
Clément Fournier
fd0d53b590 Merge branch '7.0.x' into port-jsp-vf-modules 2020-03-17 15:46:41 +01:00
Clément Fournier
903383d7cf Merge branch 'master' into 7.0.x 2020-03-17 15:14:46 +01:00
Clément Fournier
3ac135640a Merge deprecation sections for all ASTs
Also deprecate JSP token manager
2020-03-17 15:01:56 +01:00
Clément Fournier
e1069b4a33 Fix *ParserVisitor itf being deprecated
refs #2239
2020-03-17 14:42:29 +01:00
Andreas Dangel
16cb7767b7 Merge branch 'master' into pmd/7.0.x 2020-03-12 14:03:20 +01:00
Andreas Dangel
ff7dfd9eb6 [jsp] Deprecate AST constructors and setters
Also remove useless javadoc comments and fix license header
2020-03-05 20:13:14 +01:00
Clément Fournier
a9b6e78cfc Normalise line endings in test 2020-02-17 16:59:14 +01:00
Clément Fournier
a69fa93a32 Remove whitespace changes 2020-02-17 08:31:47 +01:00
Clément Fournier
8060e37da4 Restrict visibility of node ctors 2020-02-17 08:06:11 +01:00
Clément Fournier
b5bc047b21 Fix jsp node class visibility 2020-02-17 08:06:11 +01:00
Clément Fournier
c96f9b1734 Fix tests 2020-02-17 08:06:11 +01:00
Clément Fournier
f914319bcb Port JSP module 2020-02-17 08:06:11 +01:00
Clément Fournier
7cd64e4374 Merge branch '7.0.x' into cleanup-language-version-handlers 2020-01-27 10:28:48 +01:00
Clément Fournier
ec1eb208eb Merge branch 'master' into 7.0.x 2020-01-24 23:48:22 +01:00
Clément Fournier
d90d5d267c Remove trailing whitespace everywhere 2020-01-24 23:40:06 +01:00
Clément Fournier
c27481f815 Trim trailing spaces in XML 2020-01-24 23:08:52 +01:00
Andreas Dangel
b02ab00e87 Merge remote-tracking branch 'origin/master' into pmd/7.0.x 2020-01-24 19:18:17 +01:00
Andreas Dangel
5feca7fd93 Exclude generated AST*.java files from internalization 2020-01-24 16:19:24 +01:00
Clément Fournier
14a8eeec76 Remove typeres/dfa/multifile stuff 2020-01-23 18:27:29 +01:00
Clément Fournier
60e97d0ec8 Deprecate javacc generated code 2020-01-22 17:19:29 +01:00
Clément Fournier
b5b0bcb921 Replace more direct usages of parser 2020-01-19 08:36:35 +01:00
Clément Fournier
aa9a9c2bed Merge branch 'master' into 7.0.x 2020-01-19 05:59:09 +01:00
Clément Fournier
27d7a6c02c Accomodate children iterable for specialization 2020-01-19 05:57:39 +01:00