1422 Commits

Author SHA1 Message Date
Filip Hrisafov
d018aed251
#1790 Use mapperPrism.values.nullValuePropertyMappingStrategy when retrieving NullValuePropertyMappingStrategy 2019-09-18 13:09:40 +02:00
Andrei Arlou
447bb00f89
#1773 Update documentation: componentModel=jsr330 with @DecoratedWith not longer experimental (#1907) 2019-09-18 07:18:05 +03:00
Sjaak Derksen
7e0327767f
#1801 Using constructor as builderCreationMethod in custom builder (#1905) 2019-09-15 21:43:22 +02:00
Andrei Arlou
f3b0badcef
Add Andrei Arlou in copyright list (#1906) 2019-09-15 13:37:42 +03:00
Andrei Arlou
c044a87969
#1889 Remove unused parameters from classes TargetTypeSelector, ValueMapping, MethodRetrievalProcessor (#1890) 2019-09-14 04:12:38 +03:00
Andrei Arlou
2043506179
#1895 Refactor class org.mapstruct.ap.internal.util.Filters (#1896) 2019-09-14 03:57:42 +03:00
Andrei Arlou
3868735da7
#1897 Remove unused methods from class SourceMethod (#1898) 2019-09-14 03:43:27 +03:00
Andrei Arlou
7af107c9f2
#1883 Remove not used method "asCollectionOrMap" from TypeFactory (#1884) 2019-09-14 03:24:43 +03:00
Andrei Arlou
f95648cef8
#1088 Refactor constructor ForgedMethod (#1888) 2019-09-14 03:03:13 +03:00
Andrei Arlou
e068564017
#724 Remove JaxbMapper from integration test (#1892) 2019-09-14 02:48:22 +03:00
Sjaak Derksen
e12f9ffd7b
Refactoring of BeanMapping and Source/TargetReferences (common base class) (#1903) 2019-09-13 19:41:06 +02:00
Sjaak Derksen
6d9a50601e
#1867 refactor make the source model only a reflection of the source (#1868) 2019-09-12 20:21:39 +02:00
Andrei Arlou
3fd29f3ff9
Merge pull request #1879 from Captain1653/asccii_doctor_split_reference
#991 Split reference guide source into an adoc file per chapter
2019-08-26 22:45:16 +03:00
Andrei Arlou
ba90c95f23 #991 Split reference guide source into an adoc file per chapter 2019-08-24 20:51:16 +03:00
Andrei Arlou
8e37159a00 Fix minor warnings:
remove unnecessary generic type for collections,
remove unnecessary exceptions from signature,
fix typos
2019-08-24 09:23:58 +02:00
Andrei Arlou
55048ab045 Simplify consistent checks in class Mapping 2019-08-19 20:43:14 +02:00
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
Sjaak Derksen
66e57b0dfe
#1862 Update @MappingTarget documentation to take builders (#1864) 2019-08-13 18:44:49 +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
Filip Hrisafov
5f2a53afe1 Use trusty dist for JDK 8 build, add OpenJDK13 build and remove OpenJDK12 build 2019-08-11 09:04:54 +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
Matt Drees
9c33199a66 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-05-25 11:34:30 +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
Sjaak Derksen
648ebceb30
#1819 documentation clarification on obtaining Mapper (#1820) 2019-05-16 22:23:37 +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
871353fccb
#1784 NullValueMappingStrategy.RETURN_DEFAULT refers wrongly to primitive types (#1785) 2019-04-07 21:38:22 +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
Christian Bandowski
7a19b2ba75
Merge pull request #1783 from chris922/update-readme
Update Readme / Java 1.8 required
2019-04-03 22:02:06 +02:00
Christian Bandowski
3ca4c3fcef Update Readme 2019-04-03 20:29:10 +02:00
power721
7e112ccc2f Fix typo and code error in documentation (#1779)
* fix typo in documentation "Using builders"

* fix generated code example in stream mapping
2019-04-03 20:21:08 +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
f5ee2c6729
Remove use of prerequisites from parent pom.xml (#1766) 2019-03-23 21:27:15 +01:00
Filip Hrisafov
39481f98c5
Update checkstyle to latest version and replace deprecated methods (#1764) 2019-03-23 21:25:08 +01:00
juliojgd
63c5fc8eff Fix typo in documentation (#1760)
It is "then" instead "than
2019-03-20 21:37:47 +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