1231 Commits

Author SHA1 Message Date
Filip Hrisafov
6f79a53190 [maven-release-plugin] prepare release 1.3.1.Final 1.3.1.Final 2019-09-29 17:54:46 +02:00
Sjaak Derksen
0c1c5b7f31 #1821 nullpointer due to @BeanMapping via inheritance (#1822) (#1932)
(cherry picked from commit ade4f4d7e2ab87b2e0f113221d3fc9a6729f78cc)
2019-09-29 17:46:53 +02:00
Filip Hrisafov
b32cf92519
#1828 Use update method when nested property of target is populated with multiple nested properties of source (#1930) 2019-09-29 16:54:04 +02:00
Sjaak Derksen
4dfb7d0ec9 #1801 Using constructor as builderCreationMethod in custom builder (#1905) 2019-09-28 19:37:12 +02:00
Sjaak Derksen
66055f024b #1756 better forged method error based on empty target bean properties (#1757) 2019-09-28 19:15:51 +02:00
Filip Hrisafov
fe22c9b1ce #1742 & #1661 refactoring and making builder optional
Applying changes done in 33710584d33856495992c7cab511b4a16643f53e
2019-09-28 19:15:51 +02:00
Filip Hrisafov
55363dfc1c #1742 Add test case 2019-09-28 19:15:51 +02:00
Filip Hrisafov
318b30ef23 #1799 Fluent setters starting with set should work properly 2019-09-22 18:22:53 +02:00
Filip Hrisafov
a71e7c0a0b Fix travis.yml on 1.3.x branch 2019-09-22 13:46:39 +02:00
Filip Hrisafov
edcf78a34d #1904 Do not include private methods when getting enclosed executable elements 2019-09-22 10:16:27 +02:00
Filip Hrisafov
ad38786117 #1790 Use mapperPrism.values.nullValuePropertyMappingStrategy when retrieving NullValuePropertyMappingStrategy 2019-09-22 10:12:31 +02:00
Sjaak Derksen
23a0420359 #1862 Update @MappingTarget documentation to take builders (#1864) 2019-09-22 10:11:08 +02:00
Jonathan Kraska
2f36a41735 #1826: fixed null pointer in nested property mapping when using presence checking (#1827) 2019-09-22 10:10:29 +02:00
Matt Drees
28b4e9ed45 Improve terms in qualifier docs (#1814)
This sentence is talking about `@Target`, not `@Retention`.
Also, let's use 'type' instead of 'class' to line up with `ElementType.TYPE`.
2019-09-22 10:09:26 +02:00
Filip Hrisafov
211c627c25 #1751 Fix handling of possible builder creation methods with generic signature
When a method has a generic signature and the builder type is generic then the method return type does not match the builder type.
Therefore check only for raw types.
Add extra check for void method since a void method can't be a builder creation method
2019-09-22 10:08:01 +02:00
Sjaak Derksen
69d0a2d557 #1819 documentation clarification on obtaining Mapper (#1820) 2019-09-22 10:06:07 +02:00
Filip Hrisafov
0530a80478 #1797 Use EnumSet.noneOf when creating a new instance of EnumSet 2019-09-22 10:05:33 +02:00
Sjaak Derksen
6af13ba220 #1784 NullValueMappingStrategy.RETURN_DEFAULT refers wrongly to primitive types (#1785) 2019-09-22 10:04:52 +02:00
Sjaak Derksen
359630aec1 #1772 unmapped source prop remaining when target and source entry diff (#1778) 2019-09-22 10:04:12 +02:00
Christian Bandowski
b2bb768f75 [#1457] Stricter matching for lifecycle methods / non-unique parameters (#1782)
In case a lifecycle method has multiple matching parameters (e. g. same type)
all parameter names must match exactly with the ones from the mapping method,
otherwise the lifecycle method will not be used and a warning will be shown.
2019-09-22 10:02:58 +02:00
power721
bd1f6e6f27 Fix typo and code error in documentation (#1779)
* fix typo in documentation "Using builders"

* fix generated code example in stream mapping
2019-09-22 10:00:32 +02:00
juliojgd
7164ef18c5 Fix typo in documentation (#1760)
It is "then" instead "than
2019-09-22 10:00:00 +02:00
Sjaak Derksen
546c56b116 #1142 update documentation (#1710)
* #1142 update documentation

* #1142 comment
2019-09-22 09:59:11 +02:00
Filip Hrisafov
9801163402 #1738: Use typeBound for the return type of the nested property mapping method and for the definition of the properties within the method 2019-09-22 09:58:06 +02:00
Filip Hrisafov
285cb219c8 Prepare for 1.3.1 bug fix release 2019-09-22 09:53:47 +02:00
Filip Hrisafov
d282261ddf Update latest release badge and update readme with 1.3.0.Final 2019-02-10 12:28:04 +01:00
Filip Hrisafov
a28f2cb9cf [maven-release-plugin] prepare for next development iteration 2019-02-10 11:48:20 +01:00
Filip Hrisafov
984423dfee [maven-release-plugin] prepare release 1.3.0.Final 1.3.0.Final 2019-02-10 11:48:19 +01:00
Filip Hrisafov
9762082703 Use Java 8 Javadoc links 2019-02-10 11:43:19 +01:00
Sjaak Derksen
3c079e412a
#1707 fix for not defining local variable in stream-iterable mapping (#1708) 2019-02-10 10:31:51 +01:00
Filip Hrisafov
eca7433103 #1694 Avoid circular dependency between model and conversion packages
Remove import of SimpleConversion used in the javadoc of the BuiltIntMethod

Fixes #1694
2019-02-10 09:09:17 +01:00
Filip Hrisafov
2ea5dcf400
Add Andres and Taras to copyright.txt 2019-02-09 21:38:24 +01:00
Sjaak Derksen
07c7a29adc
#1700 Optimizing code for adders and stream adders (#1701) 2019-01-29 20:02:23 +01:00
Sjaak Derksen
0981959ff0
#1699 add sensible defaults to NullValuePropertyMapping.SET_TO_DEFAULT (#1702) 2019-01-28 22:47:37 +01:00
Filip Hrisafov
884ca2507a
Mark the Immutables BuilderProvider and AccessorNamingStrategy and the FreeBuilderAccessorNamingStrategy as Experimental (#1692) 2019-01-27 21:21:25 +01:00
Sjaak Derksen
57caee250f
#1685 completing nullvaluepropertymappingstrategy (#1697) 2019-01-27 21:09:44 +01:00
Andres Jose Sebastian Rincon Gonzalez
abd1cfb6a1 #1695 update gradle installation 2019-01-22 22:49:30 +01:00
Filip Hrisafov
73a1ab1e8a
#1681 Do not call finaliser method on return when @MappingTarget is not a builder 2019-01-20 17:05:52 +01:00
Filip Hrisafov
b46682f95b Go back to using 3.0.0-M1 of the maven-enforcer-plugin
Once https://issues.apache.org/jira/browse/MENFORCER-306 is fixed we can upgrade the plugin again
2019-01-20 15:28:55 +01:00
Christian Bandowski
0e33ad4bbc #1657 Add Mappers.getMapperClass for getting the class of a Mapper 2018-12-22 15:19:39 +01:00
Sjaak Derksen
743361ca45
#1650 cannot find symbol nested mapping mappingtarget (#1671)
* #1650 reproducer

* #1650 fix cannot-find-symbol

* #1650 reproducer, extended
2018-12-20 21:12:37 +01:00
Filip Hrisafov
8edc6f82aa
Add Arne to copyright.txt 2018-12-11 18:36:09 +01:00
Arne Seime
e2915c864e #1665 Box any primitives before attempting type comparison for adder accessors 2018-12-11 18:33:50 +01:00
Taras Mychaskiw
780fd73928 #1656 Support for mapping between String and java.time Duration, Period, Instant 2018-12-08 20:25:42 +01:00
Filip Hrisafov
d1fe65dbad #1660 Consider only public not static accessor methods as possible getter, setter, presence check and / or adder methods 2018-12-01 21:26:55 +01:00
Filip Hrisafov
9a43b210d3 Add since tag to new API elements 2018-11-24 02:07:31 +01:00
Filip Hrisafov
a3ba57c372
#1648 Source properties defined in Mapping should not be reported as unmapped 2018-11-18 10:11:11 +01:00
Sjaak Derksen
b651ad34b5
#1649 Improvement: builder for Mapper/Decorator/GeneratedType 2018-11-18 08:44:57 +01:00
Filip Hrisafov
2977c2e614
#1645 Use Repeatable Mapping annotation in the reference documentation 2018-11-11 13:57:42 +01:00
Filip Hrisafov
ced7f3b024 [maven-release-plugin] prepare for next development iteration 2018-11-11 09:19:06 +01:00