Commit Graph

998 Commits

Author SHA1 Message Date
ef246adf2a Merge branch 'fix-extends-object' of https://github.com/Monits/pmd into pr-487 2017-07-17 20:49:37 +02:00
16d1d80062 Merge branch 'typesafe-properties' of https://github.com/oowekyala/pmd into pr-479 2017-07-17 20:18:37 +02:00
976240ca48 Java, typeres: add choosing most specific vararg method 2017-07-13 10:54:45 +02:00
12a16caf69 Java, typeres: add vararg most specific tests 2017-07-13 10:54:45 +02:00
865f86599f Merge branch 'pr-492' 2017-07-11 15:57:21 -03:00
824f87995d Merge branch 'master' into typesafe-properties 2017-07-11 16:05:17 +02:00
4728eff5d6 Java, typeres: move method typeresolution methods into a helper class 2017-07-11 10:35:15 +02:00
969c66d363 Merge branch 'metrics' of https://github.com/oowekyala/pmd into pr-482 2017-07-10 20:38:19 +02:00
8136053154 Update getter and setter detection 2017-07-10 19:52:51 +02:00
8b7745cf14 Update tests to reset correctly: depends on #495 2017-07-10 19:18:13 +02:00
58401cecc8 Deleted MetricsForceHook 2017-07-10 18:16:28 +02:00
2a7fbc1d43 Java, typeres: put links to JLS sections for method resolution 2017-07-09 22:48:26 +02:00
979ef7c77c Java, typeres: fix checkstyle issues 2017-07-08 22:31:19 +02:00
97f7f6a6de Java, typeres: add vararg method resolution 2017-07-08 22:31:19 +02:00
176ccb4533 Java, typeres: add vararg tests for method resolution 2017-07-08 22:31:19 +02:00
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
e56bf2a407 Simplify solution 2017-07-08 17:10:56 -03: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
50a2e9fdcf Fix typeresolution for anonymous extending object
- This is really an edge case, with little or no real-world scenarios,
just fix it for completeness
2017-07-06 18:00:07 -03:00
ff870e159e Small corrections 2017-07-06 14:48:38 +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
d90e2e75fb Fixed failing tests 2017-07-05 00:15:22 +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
8fd95190b2 Removed AbstractSimpleJavaMetricsRule 2017-07-03 14:44:46 +02:00
cd2f414ace Merge branch 'master' of https://github.com/pmd/pmd into metrics 2017-07-02 15:58:34 +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
2b56f54824 Cleaned up abstract metric 2017-06-30 13:32:38 +02: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
b103d8f011 Specialised BasicPropertyDescriptorFactory 2017-06-28 17:48:11 +02:00
40282e77ae Added NcssCountRule 2017-06-27 09:33:19 +02:00