Commit Graph
451 Commits
Author SHA1 Message Date
Clément Fournier aeb4978676 Make isUpperBound return true for unbounded wildcard 2022-12-07 22:51:02 +01:00
Clément Fournier 08284c2af5 Merge branch '7.0.x' into text-utils-comments 2022-11-26 16:04:21 +01:00
Clément Fournier 9a5c2523f6 Fix pmd-java 2022-11-16 14:51:33 +01:00
Clément Fournier d540f6fb14 Merge branch 'master' into pr/4194 2022-11-16 13:56:01 +01:00
Clément Fournier 735197cff4 Support other cases found in checkstyle 2022-11-07 00:44:22 +01:00
Clément Fournier 36f19eda92 Push actual annotation nodes
This is to avoid having rules like UnusedImports
fail to see an annotation usage. This makes the
tree rather messy when there are type annotations
though.
2022-11-06 22:39:38 +01:00
Clément Fournier 00c06343a5 Fix tests 2022-11-06 21:50:33 +01:00
Clément Fournier 2027d2f57f Support generic ctors 2022-11-05 17:05:46 +01:00
Clément Fournier 92ccf1b0ea Support array init with just a comma
Refs #3643
2022-11-05 16:31:17 +01:00
Clément Fournier b39ba3c560 Add new tests
Refs #3643
2022-11-05 16:30:01 +01:00
Clément Fournier cd075d2459 Fix #4152 - support type annotations in more places 2022-11-05 15:48:04 +01:00
Clément Fournier 63c01f0f5b Merge branch '7.0.x' into text-utils-javacc 2022-07-17 17:06:37 +02:00
Andreas Dangel 6c1bd0e82b [java] Fix grammar and tests for Java 19 2022-07-10 17:12:30 +02:00
Andreas Dangel 183a322d7c [java] Fix compile errors after merge 2022-07-10 15:33:32 +02:00
Andreas Dangel ffbe5b7378 Merge branch 'pmd6-java-19' into pmd7-java-19 2022-07-10 15:05:35 +02:00
Andreas Dangel b197daf84e Apply fixes from review (#4038) 2022-07-10 14:29:03 +02:00
Andreas Dangel 32a76bd602 [java] Remove language version 17-preview 2022-07-07 15:24:49 +02:00
Andreas Dangel a5b68ddfcf [java] Add support for RecordPatterns
See JEP 405
2022-07-07 15:06:52 +02:00
Andreas Dangel eeeccde494 [java] Update implementation for "Pattern Matching for switch"
See JEP 427
This is a preview feature
2022-07-07 15:03:20 +02:00
Andreas Dangel eb53daa2c2 [java] Add new language versions 19 and 19-preview 2022-07-07 10:44:13 +02:00
Andreas Dangel 82dd4d46ca Merge branch 'master' into pmd/7.0.x 2022-05-26 11:21:38 +02:00
Clément Fournier 078345fbca Add phonetic extensions to other langs 2022-05-01 18:16:53 +02:00
Clément Fournier b328bc5fdc Add more cjk and exotic scripts, also to JS
Fix #2605
2022-05-01 17:47:11 +02:00
Clément Fournier 98f44b7e3f Allow Phonetic Extensions block in java
Fix #3423
2022-05-01 17:31:52 +02:00
Clément Fournier a9037215f7 Merge branch 'text-utils-javacc' into text-utils-comments 2022-04-30 21:29:23 +02:00
Clément Fournier d1d2f30119 Remove some things from TextDocument 2022-04-30 16:06:40 +02:00
Clément Fournier 64b9b25bef Merge branch 'text-utils-simple' into text-utils-javacc 2022-04-24 10:58:33 +02:00
Clément FournierandAndreas Dangel 7bf44c69ac Replace package name with class name
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2022-04-14 19:49:48 +02:00
Clément Fournier 0a5bf6f75f Merge branch 'text-utils-javacc' into text-utils-comments 2022-04-02 16:37:10 +02:00
Clément Fournier a611af163b Merge branch 'text-utils-simple' into text-utils-javacc 2022-04-02 16:34:17 +02:00
Clément Fournier bc19d2cc40 [java] Improve module grammar
Type names in "provides" directives are disambiguated
like any other type name.

ASTName is made redundant and removed for good.
2022-04-01 19:06:33 +02:00
Andreas Dangel 925899ed50 Merge branch 'localpmd6/jdk-18' into pmd7-jdk-18 2022-03-10 16:08:48 +01:00
Andreas Dangel 937eb90a70 [java] Remove support for Java 16 Preview 2022-03-10 15:41:01 +01:00
Andreas Dangel 1e042ce4d0 [java] Fix unit tests for new version 18 2022-03-10 12:22:24 +01:00
Clément Fournier 7be498ae32 Fix rename 2022-03-07 22:00:43 +01:00
Clément Fournier 509903288b Merge branch 'text-utils-javacc' into text-utils-comments 2022-03-05 19:37:16 +01:00
Clément Fournier b0b7f69480 Merge branch 'text-utils-simple' into text-utils-javacc 2022-03-05 19:35:10 +01:00
Clément Fournier f981445f8f Fix last bug 2022-02-11 21:41:34 +01:00
Clément Fournier c5f4f3cd49 Fix #3697 - lookahead error in concise resource spec 2022-02-11 21:27:23 +01:00
Clément Fournier ed1c9e970a Fix parsing bug 2022-01-29 19:04:32 +01:00
Clément Fournier 778764c682 Support switch stmt properly 2022-01-29 18:48:40 +01:00
Clément Fournier 0be7135122 Fix parsing problem with guarded patterns 2022-01-29 18:27:07 +01:00
Clément Fournier 4e9d451412 Cleanups, rename FormalComment to JavadocComment 2021-12-22 21:22:24 +01:00
Clément Fournier 22a6f0d577 Merge branch 'text-utils-javacc' into text-utils-comments 2021-12-22 19:58:33 +01:00
Clément Fournier 9d1ec11bbd BAD Merge branch 'text-utils-simple' into text-utils-javacc 2021-12-22 19:24:49 +01:00
Andreas Dangel 247d98d270 [java] Fix parse errors with qualified type names in permits clause 2021-11-26 11:10:55 +01:00
Andreas Dangel 89dd3f97b5 Merge 'issue-3366-support-jdk-17' into pmd7-issue-3366-support-jdk-17 2021-07-30 11:15:31 +02:00
Andreas Dangel 30124628f7 [java] Disallow local sealed/non-sealed classes
This is apparently not valid.
2021-07-30 11:06:51 +02:00
Andreas Dangel 1ec564b22d Fix unit tests 2021-07-22 20:35:18 +02:00
Andreas Dangel e4431d4d65 Fix compile errors 2021-07-22 19:31:45 +02:00