Andrei Arlou
ee8f9283f2
Simplify conditions in package org.mapstruct.ap.internal.model
...
and classes: Conversions.java, MappingResolverImpl.java,
EclipseAsMemberOfWorkaround.java
2019-08-18 21:01:05 +02:00
Andrei Arlou
59a5182dab
Fix minor warnings:
...
remove unnecessary generic type for collections,
replace Charset.forName on StandartCharset
2019-08-18 16:24:14 +02:00
Andrei Arlou
dbe761e738
Fix minor warnings in packages test and testutil:
...
remove unnecessary generic types for collection,
replace numbers months on Calendar constants,
remove unnecessary exceptions from signature test methods
2019-08-18 15:53:50 +02:00
Andrei Arlou
1ee59fd123
Fix minor warnings in tests, packages internal, spi and some others packages:
...
remove unnecessary generic-type in collections, simplify conditions,
remove unnecessary exception from signature,
replace months numbers on Calendar constants
2019-08-18 12:20:07 +02:00
Andrei Arlou
148466ae3e
Fix minor warnings in package test.collection:
...
remove unnecessary generic-type in collections,
remove unnecessary exception from signature,
replace months numbers on Calendar constants
2019-08-18 12:13:40 +02:00
Andrei Arlou
dc86d5df45
Fix minor warnings in test packages java8stream and nestedbeans:
...
remove unnecessary generic types from collection,
remove unnecessary throws from test methods,
simplify equals in test dto
2019-08-18 12:11:01 +02:00
Andrei Arlou
281b792cf6
Fix minor warnings in test package bugs:
...
remove unnecessary generic type for collections,
remove unnecessary exceptions from signature test methods
2019-08-18 10:11:57 +02:00
Andrei Arlou
716b85aa2c
Simplify conditions in org.mapstruct.ap.internal.model.source
2019-08-11 22:18:15 +02:00
Andrei Arlou
f02b3d1a42
Remove unnecessary generic type in Collections.empty*,
...
replace "for" on Stream API,
replace anonymous classes on lambda
2019-08-11 14:48:08 +02:00
Andrei Arlou
e5c5550182
Fix warning addAll in org.mapstruct.ap.internal.model.assignment
...
Fix typo in org.mapstruct.ap.internal.model.common.Type
2019-08-11 14:45:45 +02:00
Sjaak Derksen
7bee12138d
#1307 & #1845 remove deprecated enummapping & create ST - refs under bean mapping
...
#1307 remove deprecated enum mapping
#1845 create source / target references under bean mapping
2019-07-18 07:20:22 +02:00
Jonathan Kraska
119826982a
#1826 : fixed null pointer in nested property mapping when using presence checking ( #1827 )
2019-05-26 17:41:44 +02:00
Sjaak Derksen
d50e41cdbb
#1776 adding a message when no qualifiers are found ( #1786 )
2019-05-25 18:14:00 +02:00
Sjaak Derksen
33710584d3
#1742 & #1661 refactoring and making builder optional ( #1811 )
2019-05-24 23:30:16 +02:00
Filip Hrisafov
60c159a0a1
#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-05-24 23:26:25 +02:00
Filip Hrisafov
1415e32761
#1797 Use EnumSet.noneOf when creating a new instance of EnumSet
2019-05-05 12:42:25 +02:00
Sjaak Derksen
da8c1d0e4b
#1772 unmapped source prop remaining when target and source entry diff ( #1778 )
2019-04-07 21:37:36 +02:00
Christian Bandowski
f82522fa77
[ #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-04-07 18:56:05 +02:00
Filip Hrisafov
3790f1919a
Make hickory an optional dependency as well ( #1765 )
...
Using optional because IntelliJ is picking up hickory as a transitive
dependency and runs the hickory processor in projects using mapstruct-processor.
This happens only when the processor is defined in the maven-compiler annotationProcessorPaths.
This is related to https://youtrack.jetbrains.com/issue/IDEA-200481 .
2019-03-30 09:47:35 +01:00
Sjaak Derksen
6c838e6e0c
#1714 Qualifiers should not qualfiy when no qualfier is found ( #1739 )
2019-03-23 22:08:18 +01:00
Filip Hrisafov
39481f98c5
Update checkstyle to latest version and replace deprecated methods ( #1764 )
2019-03-23 21:25:08 +01:00
Sjaak Derksen
fcf96c36eb
#1756 better forged method error based on empty target bean properties ( #1757 )
2019-03-19 09:44:27 +01:00
Sjaak Derksen
b53741d960
#37 Rudimentary logging in mapstruct ( #1741 )
...
* #37 Rudimentary logging in mapstruct
* #37 Rudimentary logging in mapstruct changed order
* #37 rework
* #37 documentation
* #37 comments
* #37 docmentation revisited
* #37 review comments
* #37 unit test
* #37 unit test fixing empty mapper
* #37 rework comments christian
* #37 adding deferred mapper logging
* #37 adding unit test for deferred mapper logging
* #37 processing comments Filip
2019-03-17 16:45:22 +01:00
Filip Hrisafov
bc010a52dc
#1738 : Use typeBound for the return type of the nested property mapping method and for the definition of the properties within the method
2019-03-15 20:36:03 +01:00
Filip Hrisafov
643cc85e50
#1675 Tests should run properly in Java 11
...
* Add Travis CI build matrix to run build on OpenJDK 11 and EA
* Add regex for the Java 11 Generated annotation in order for the JavaFileAssert to work properly
* Do not use eclipse compiler if running on Java 9+
* Add JDK11 util compiler that reports all errors (also when multiple on same line)
* Whitelist jaxb-api to the test compilation classpath
* Add specific ignores for running some tests with Java 11 (See https://bugs.openjdk.java.net/browse/JDK-8211262 , there is a difference in the default formats on Java 9+)
2019-03-09 19:54:40 +01:00
Gunnar Morling
ae3758674a
#1675 Making MapStruct compileable with OpenJDK 11
2019-03-09 19:54:40 +01:00
Sjaak Derksen
98d86cee84
#1745 refactoring source reference ( #1746 )
2019-03-09 18:36:33 +01:00
Sjaak Derksen
6c1108d5bb
#1698 Skip "java.lang.Object" as intermediate result additional unit test ( #1737 )
2019-02-25 20:56:28 +01:00
Sjaak Derksen
51bd43fc1b
#1719 strange error message for selecting collection update methods ( #1724 )
2019-02-25 19:47:53 +01:00
Thibault Duperron
60208b67af
#1435 add import to MapperConfig
2019-02-14 22:24:42 +01:00
Sjaak Derksen
23608477b7
#1698 Skip "java.lang.Object" as intermediate result in 2 step mappings ( #1712 )
2019-02-12 10:17:50 +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
2019-02-10 11:48: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
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
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
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
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
ced7f3b024
[maven-release-plugin] prepare for next development iteration
2018-11-11 09:19:06 +01:00
Filip Hrisafov
3f2c1cee55
[maven-release-plugin] prepare release 1.3.0.Beta2
2018-11-11 09:19:05 +01:00
Sjaak Derksen
cf668bea77
#1576 Delay determining whether a Type needs to be imported & java.time cleanup ( #1642 )
2018-11-06 07:36:09 +00:00