Commit Graph

960 Commits

Author SHA1 Message Date
65be8c6afb Java, typeres: add ethod resolution second phase 2017-07-08 22:31:19 +02:00
430486a761 Java, typeres: add second phase method resolution tests 2017-07-08 22:31:19 +02:00
877f9d1b71 Java, typeres: add most specific method resolution 2017-07-08 22:31:19 +02:00
1b52d46c26 Java, typeres: add first phase method overoad resolution 2017-07-08 22:31:19 +02:00
5b53b73bb8 Java, typeres: add method first phase tests 2017-07-08 22:31:19 +02:00
fdd2a6b637 Merge branch 'pr-486' 2017-07-08 16:25:46 -03:00
f8c8c01c86 Avoid ArrayList instantiation 2017-07-08 15:12:35 -03:00
c6eeed6d48 Merge branch 'issue-412' of https://github.com/Monits/pmd into issue-412 2017-07-08 19:34:18 +02:00
0c483205da Java, typres: make MethodType immutable, remove getApplicableMethods overload 2017-07-05 21:19:45 +02:00
2fd1c89ede Java, typeres: fix checkstyle and mvn tests 2017-07-05 19:49:29 +02:00
4a16fbc9eb Java, typres: add more method tests 2017-07-05 18:46:23 +02:00
ed9b015c9f Java, typres: fix mvntest 2017-07-05 13:57:50 +02:00
35597c9ef0 Java, typres: Add simple method type resolution 2017-07-04 00:06:32 +02:00
0c2099ab98 Java, typeres: add method applicability tests 2017-07-03 19:48:45 +02:00
a271c49152 Merge branch 'pmd/5.8.x' 2017-07-01 19:27:43 +02:00
3ef33bc37e [maven-release-plugin] prepare for next development iteration 2017-07-01 19:08:17 +02:00
de28e518d4 [maven-release-plugin] prepare release pmd_releases/5.8.1 2017-07-01 19:08:08 +02:00
f7f46dbe93 Fix anonymous class naming
- Properly handle nested anonymous classes
2017-06-30 18:56:18 -03:00
4783c4e14f Add failing test for nested anonymous classes 2017-06-30 18:56:13 -03:00
deaa47ebb0 Fix anonymous classes directly from interfaces
- Fix the failing scenarios such as new Comaprator<String>() {...
2017-06-30 00:52:13 -03:00
10aab46ba6 Better comments for edge cases 2017-06-29 21:19:43 -03:00
08e8dbc08a Checkstyle fixes 2017-06-29 20:47:26 -03:00
b6482bb33b Fixes #477
- Allow for references to classes not in the classpath
2017-06-29 20:36:30 -03:00
3bd69b15f1 Rework type resolution
- JavaTypeDefinition now lazily resolves generics, meaning less
overhead and avoiding access order problems (ie: class Foo extends <A
extends B, B>). These means you can no longer request the generics list
all at once... but you probably shouldn't anyway
 - I took the chance to move most type resolution code dealing with
Java's Type to the JavaTypeDefinition. This makes things a little
clearer and tidier
 - There are some minor API changes, but since 5.8.0 is recently out I
doubt these have any impact. Plus, there was no easy way to just patch
away the open issues in the old greedy algorithm
2017-06-29 20:16:23 -03:00
6657d741ab Merge branch 'master' of https://github.com/WinterGrascph/pmd into issue-471 2017-06-28 21:06:53 +02:00
11e973bf8f Set version to 5.8.1-SNAPSHOT 2017-06-28 20:59:29 +02:00
39b3f62d33 Java, typeres: fix error with raw types
Issue was with determining the upper bounds of raw types when they had type parameters
with circular references, example: GenericClass<E extends Foo<E>>
2017-06-27 03:50:53 +02:00
3c6eed61fc [java] Detect more unnecessary finals
- Mark unnecessary finals in anonymous class methods.
 - Mark unnecessary finals in enum instance methods.
 - Fixes #412
2017-06-26 15:03:23 -03:00
80f901187a Merge branch 'pr-379' 2017-06-26 14:11:35 -03:00
df80e52788 Merge branch 'pr-420' 2017-06-26 13:04:53 -03:00
7f1292b212 Update version to 6.0.0-SNAPSHOT 2017-06-24 22:29:36 +02:00
f3b9231b69 [maven-release-plugin] prepare for next development iteration 2017-06-24 22:26:42 +02:00
6dd0bc8bfd [maven-release-plugin] prepare release pmd_releases/5.8.0 2017-06-24 22:26:34 +02:00
8b27fe0bd7 Merge branch 'pr-444' 2017-06-24 15:43:59 -03:00
a0f8a106bd Add TODO for future self 2017-06-24 15:31:48 -03:00
556d845a34 Merge branch 'pr-466' 2017-06-24 11:08:26 +02:00
0289fef501 Deprecate the three rules *CyclomaticComplexity (java-codesize)
Refs #445
2017-06-24 10:59:05 +02:00
baf22b432b Merge branch 'metrics' of https://github.com/oowekyala/pmd into pr-451 2017-06-24 10:36:35 +02:00
556cc6da90 [java] Fix NPE in JUnitTestsShouldIncludeAssertRule
- Don't assume all anotations are marker annotations
 - Fixes #465
2017-06-23 15:45:58 -03:00
f1d315ff4c Java, typeres: Fix NPE with lambdas 2017-06-23 20:34:45 +02:00
5304b7e2e6 Corrections for review #451 2017-06-23 15:28:58 +02:00
d9d820cc92 Merge branch 'pr-458' 2017-06-23 15:08:04 +02:00
abe0c2eab7 Merge branch 'pr-455' 2017-06-23 15:00:01 +02:00
92f10342c7 Merge branch 'pr-454' 2017-06-23 14:56:21 +02:00
eda54ae86a [java] EmptyCatchBlock may ignore blocks based on exception name
- Allow the developer to setup a regular expression for exception names
to be ignored by the rule.
 - Fixes #413
2017-06-21 23:52:05 -03:00
15716ffd93 [java] SignatureDeclareThrowsException ignores @Override
- Avoid reporting on @Overrides, since we have no control of the
interface.
 - The original definition is still reported if it's part of our
application's code.
 - Fixes #350
2017-06-21 17:50:29 -03:00
878f73158a [java] Allow try-with-resources to be empty
* Fixes #432
2017-06-21 17:20:11 -03:00
cc4294b399 [java] Simplify handling of SLF4J log arguments
- Fixes #365
2017-06-21 17:04:41 -03:00
b1d903bb2f Made metrics final 2017-06-21 18:57:00 +02:00
d2ede5784d Moved ResultOption handling to ClassStats 2017-06-20 16:20:45 +02:00