8489 Commits

Author SHA1 Message Date
lukasgraef
8ea3f32f5f [java] Fix #5068: Class incorrectly identified as non-instantiatable 2024-09-21 14:12:12 +02:00
Juan Martín Sotuyo Dodero
59c88e9bb0 Adjust skip signature to fix #5207 2024-09-14 00:34:23 -03:00
Juan Martín Sotuyo Dodero
31efceae4d Add failing test case for #5207 2024-09-14 00:34:10 -03:00
Juan Martín Sotuyo Dodero
48c2e325dc Remove NBSP 2024-09-11 19:01:33 -03:00
Clément Fournier
9ecc8897be Fix #5190 - NPE caused by null type 2024-09-04 13:39:41 +02:00
Clément Fournier
9d925b513d Add test case for #5190 2024-09-03 11:16:56 +02:00
Clément Fournier
fe341cf400 Cleanup things with implicit classes 2024-09-01 21:35:50 +02:00
Andreas Dangel
2ed25964b8 [release] Prepare next development version [skip ci] 2024-08-30 10:52:17 +02:00
Andreas Dangel
74ada426af [release] prepare release pmd_releases/7.5.0 2024-08-30 10:31:09 +02:00
Andreas Dangel
537dab95e4 [java] Support Java 23 (#5112)
Merge pull request #5112 from issue-5062-support-java-23
2024-08-29 17:39:04 +02:00
Andreas Dangel
ada303de83 [doc] Document new java language prop xStrictTypeRes 2024-08-29 17:30:45 +02:00
Andreas Dangel
488807ff90 [java] Add testcase for #5048 2024-08-29 16:58:16 +02:00
Andreas Dangel
20b667d7e4 Merge branch 'master' into pr-5179 2024-08-29 16:55:38 +02:00
Andreas Dangel
773f792dd6 [java] Fix #5162 SingularField FP with synchronized block (#5178)
Merge pull request #5178 from oowekyala:issue5162-singularfield-synchronized
2024-08-29 13:05:50 +02:00
Andreas Dangel
610f937bc4 [java] Update AvoidSynchronizedAtMethodLevel message to mention ReentrantLock, new rule AvoidSynchronizedStatement (#5175)
Merge pull request #5175 from chonton:ReentrantLock
2024-08-29 12:50:13 +02:00
Andreas Dangel
3c3be3c81d [doc] Update release notes (#5175) 2024-08-29 12:48:14 +02:00
Andreas Dangel
93db59bea5 Apply suggestions from code review 2024-08-29 12:41:02 +02:00
Clément Fournier
672fd635c9 Improve error handling of semantic exceptions 2024-08-28 13:23:43 +02:00
Andreas Dangel
93bfe7df0f Merge branch 'master' into issue-5062-support-java-23 2024-08-27 20:09:09 +02:00
Andreas Dangel
d7d8c9cb29 [java] Rename ASTImportDeclaration#isModuleImport 2024-08-27 19:58:07 +02:00
Clément Fournier
9c0c7f28e2 Throw typeres failures instead of catching them
They will be surfaced as processing errors
2024-08-26 13:21:41 +02:00
Clément Fournier
60e0109bbb Update pmd-java/src/test/kotlin/net/sourceforge/pmd/lang/java/types/LubTest.kt 2024-08-25 19:48:40 +02:00
Clément Fournier
d7a15d1854 Report typeres errors more transparently 2024-08-25 19:46:01 +02:00
Clément Fournier
08b68d7dd0 Fix #5084 - crash in LUB with raw types 2024-08-25 19:28:16 +02:00
Juan Martín Sotuyo Dodero
91bb6f0b34 Improve docs further 2024-08-24 23:44:22 -03:00
Clément Fournier
d6736903f0 Fix #5162 SingularField FP with synchronized block 2024-08-25 00:46:45 +02:00
Juan Martín Sotuyo Dodero
45618c0e13 Merge branch 'master' into issue-5151 2024-08-24 18:20:38 -03:00
Clément Fournier
da864aeccd Fix #5167 - issue with type projection 2024-08-24 16:48:37 +02:00
Juan Martín Sotuyo Dodero
c9c0558e2b Suppress PMD warning
- "Simplifying" the return here would simply make it harder to read
2024-08-24 01:02:06 -03:00
Juan Martín Sotuyo Dodero
980eaacd13 Unify compile-time constant detection
- Improving the constant folder allows other rules to work better
 - Fixes #3602
 - Curiously, InefficientStringBuffering has been broken since PMD 7.0.0
   (regression introduced in #3113)
2024-08-24 00:48:53 -03:00
Juan Martín Sotuyo Dodero
8ecc21c06f Merge branch 'master' into issue-5151 2024-08-24 00:14:55 -03:00
Juan Martín Sotuyo Dodero
96f60e9b0e Handle computed array access keys
- Tidy up the code, the fact the `getLogLevelName` was cheating and
   returning null when it considered a log to be safe was making the
   code harder to think about
2024-08-24 00:11:43 -03:00
Clément Fournier
43112078a5 Fix issue #5145 - problem with inference of conditional exprs
Also finally fixes the bug that we swept under the rug in 24c1093b.
2024-08-23 18:23:43 +02:00
Charles Honton
8a39917fa2 added unit test 2024-08-22 13:54:17 -07:00
Charles Honton
3dd47a3b94 update AvoidSynchronizedAtMethodLevel message to mention ReentrantLock
see https://openjdk.org/jeps/8337395
2024-08-22 08:20:06 -07:00
Juan Martín Sotuyo Dodero
4033315c7d Properly handle all qualifiable expressions
- Up date the documentation to better show what is being flagged
2024-08-21 23:40:04 -03:00
Juan Martín Sotuyo Dodero
90ebac893f Fix whitespace 2024-08-19 01:45:37 -03:00
Juan Martín Sotuyo Dodero
9ef927067e Fix tests regarding array accesses 2024-08-18 19:41:06 -03:00
Juan Martín Sotuyo Dodero
4352b53aec Add tests regarding array accesses 2024-08-18 19:40:51 -03:00
Juan Martín Sotuyo Dodero
abcc20e655 Fix #5152 2024-08-18 19:29:48 -03:00
Juan Martín Sotuyo Dodero
176fae39d2 Add test for #5152 2024-08-18 19:29:39 -03:00
Juan Martín Sotuyo Dodero
792d91e062 Fix GuardLogStatementRule for field accesses 2024-08-18 19:23:25 -03:00
Juan Martín Sotuyo Dodero
ca34c3edd3 Add minimal failing case for #5151 2024-08-18 19:22:09 -03:00
Andreas Dangel
13b8556bf6 Fixup from review (#5112)
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2024-08-13 11:22:43 +01:00
Andreas Dangel
21d499d5ef [doc] Release Notes for Java 23 Support (#5062)
Also add some @since tags to new API methods
2024-08-01 11:53:04 +02:00
Andreas Dangel
17a4a487a6 [java] CommentRequired - add test for markdown comments 2024-08-01 11:53:04 +02:00
Andreas Dangel
c53462b3b6 Improve RuleTst performance
Reuse the classloader for auxclasspath
instead of creating a new one for every
single rule test case.
2024-08-01 11:46:45 +02:00
Andreas Dangel
d171bcbdb3 [java] Default Imports for simple compilation unit
Import by default module java.base
and java.io.IO.*
2024-08-01 11:46:45 +02:00
Andreas Dangel
cbc475ede3 [java] Add ImplicitClassDeclaration
JEP 477: Implicitly Declared Classes and Instance Main Methods
(Third Preview)
2024-08-01 11:46:41 +02:00
Andreas Dangel
55d57acc63 [java] Remove String Template Preview feature for Java 23 2024-08-01 11:44:46 +02:00