1418 Commits

Author SHA1 Message Date
Filip Hrisafov
322e77e52b [maven-release-plugin] prepare release 1.2.0.CR2 1.2.0.CR2 2017-08-28 20:22:54 +02:00
Filip Hrisafov
5cead7ae5e #1269 use update methods for different sources for nested targets 2017-08-27 18:59:17 +02:00
sjaakd
4d8bc29347 #1255 Extension of autoInheritanceStrategy, removing of name based ignore reverse mapping 2017-08-23 22:54:10 +02:00
Filip Hrisafov
6377e51efa #1251 Deploy SNAPSHOTS from Travis CI 2017-08-18 19:41:24 +02:00
Filip Hrisafov
17da0cf912 #1231 Add japicmp for the MapStruct API 2017-08-17 00:10:04 +02:00
Filip Hrisafov
2f4cf7c905 #748 Add note that the passed parameter to MappingTarget must not be null 2017-08-16 22:19:49 +02:00
Darren Rambaud
d0bd0a2fdf Fixed a couple of typos (#1260)
* Fixed 2 typos in the documentation
2017-07-24 19:33:46 +02:00
Filip Hrisafov
0540a00263 [maven-release-plugin] prepare for next development iteration 2017-07-15 10:21:42 +02:00
Filip Hrisafov
03f6434aa7 [maven-release-plugin] prepare release 1.2.0.CR1 1.2.0.CR1 2017-07-15 10:21:41 +02:00
Darren Rambaud
b2e3ff0727 Fixed a minor typo
On line 14, changed "repostory" to "repository"
2017-07-14 23:07:59 +02:00
Filip Hrisafov
db3bb5eba0 #1247 Make sure that nested target mappings works correctly for multiple source parameters 2017-07-13 18:52:57 +02:00
Andreas Gudian
d9821a0cc8 #1242 Fix favoring of a single factory method with source params before others without source params.
From the Javadoc of @ObjectFactory: If there are two factory methods, both serving the same type, one with no parameters and one taking sources as input, then the one with the source parameters is favored. If there are multiple such factories, an ambiguity error is shown.
2017-07-11 23:03:44 +02:00
Filip Hrisafov
3004ea28c5 #1131 Use SourceRHS source type for update methods factories
If a SourceRHS is present then the source type of the SourceRHS and the MappingContext parameters are considered for the factory method selection, i.e. the other source parameters are ignored
2017-07-11 21:53:38 +02:00
Filip Hrisafov
3ebd09eec9 #1244 Fix problems with special word for FreeMarker in some cases 2017-07-10 20:37:09 +02:00
Filip Hrisafov
acdab55604 #1196 Use dedicated property name for the jacoco argument line and have an empty property in order to work with Netbeans 2017-07-09 11:12:15 +02:00
Gunnar Morling
ca0721d931 #1224 Adding Automatic-Module-Name headers to mapstruct, mapstruct-jdk8 and mapstruct-processor JARs 2017-07-08 15:24:39 +02:00
Filip Hrisafov
c983b6d1e4 Adding Tillerino to copyright.txt 2017-07-07 19:06:28 +02:00
Tillerino
00385a1cdb #611 Allow nested declaration of Mappers
* #611 Allow nested declaration of Mappers

Up until now, if a Mapper was declared as a nested interface, say
EnclosingClass.NestedMapper, the implementation of the mapper was
generated as NestedMapperImpl in the same package. The Mappers factory
class then tried to load EnclosingClass$NestedMapperImpl, which would
fail.
2017-07-07 19:03:56 +02:00
Gunnar Morling
3b9584ff13 #883 Adding Alexander to copyright.txt 2017-07-07 18:03:35 +02:00
Gunnar Morling
aae1527352 #883 Simplifying look-up of test locale 2017-07-07 17:52:20 +02:00
Alexandr Shalugin
614f0ea4ee #883 generated variable names with ı instead i 2017-07-07 17:52:20 +02:00
Gunnar Morling
dfbe8767a5 #543 Adding assertion to test that the bound type is added to the import statements 2017-07-06 17:08:58 +02:00
Filip Hrisafov
82da71199d #543 Make sure that the bound type is imported if the type is wildcard 2017-07-02 20:25:35 +02:00
Filip Hrisafov
dc031bf916 #1185 display the specific type for a property for which no write accessor exists or it is unknown 2017-06-29 23:15:48 +02:00
Filip Hrisafov
324e1fadbe #1086 Mention the fact that prototype methods are not considered for automatic sub mapping methods 2017-06-29 23:04:05 +02:00
Filip Hrisafov
7a9464c525 #1150 Improve error reporting for nested properties 2017-06-29 20:25:42 +02:00
Filip Hrisafov
a3eca8c8ca #1170 Adding Cornelius Dirmeier to copyright.txt 2017-06-29 00:05:05 +02:00
Cornelius
b5b0c04313 #1170 Fix wildcards in collection adder mappings 2017-06-29 00:01:49 +02:00
Filip Hrisafov
89d7463c93 #1219 Mention ability to turn of automatic sub-mapping generation in documentation 2017-06-27 20:33:45 +02:00
Filip Hrisafov
e6d5831aa7 #1227 Make sure that only types belonging to java.lang are not imported 2017-06-27 20:30:50 +02:00
Filip Hrisafov
0d66618d45 [maven-release-plugin] prepare for next development iteration 2017-05-30 23:27:41 +02:00
Filip Hrisafov
b3e7c52076 [maven-release-plugin] prepare release 1.2.0.Beta3 1.2.0.Beta3 2017-05-30 23:27:40 +02:00
Filip Hrisafov
2acaffa3ec #1129 Add forbidden apis plugin to fail on illegal TypeMirror usages 2017-05-30 22:56:31 +02:00
Filip Hrisafov
9fc111f7df #1129 Do not use equals and hashCode from TypeMirror 2017-05-30 22:33:18 +02:00
Filip Hrisafov
ceaa869c65 #1215 Add import correctly for array types 2017-05-30 21:35:39 +02:00
Filip Hrisafov
6187a72a2b #1148 Always add the generated MappingMethod if the MappingOptions are restricted to the defined mappings 2017-05-24 22:32:05 +02:00
Filip Hrisafov
2e09944b19 #1213 General code cleanups:
* #122 Use util methods when possible
* Fix some warnings in Javadoc generation
* Don't use raw classes when not needed
* Add .yml, binding.xjb and .asciidoc files to license check exclusion
2017-05-24 14:15:46 +02:00
Filip Hrisafov
f2ad90042c Update assertj and used dedicated method in tests (#1204) 2017-05-24 08:07:59 +02:00
Filip Hrisafov
70dbdcde0d Disable codecov/patch statuses 2017-05-23 22:13:52 +02:00
navpil
75fa2fb0f7 #122 Minor formatting changes 2017-05-20 08:38:00 +02:00
navpil
5dd0097cc9 #122 Suggest property name in error message when referring to a non-existent property 2017-05-20 08:38:00 +02:00
Filip Hrisafov
9415bb0999 Add travis, codecov, license and gitter badges 2017-05-17 22:44:09 +02:00
Filip Hrisafov
65b0e4d3c5 #1194 Setup code coverage analysis with codecov 2017-05-17 22:44:09 +02:00
Filip Hrisafov
7cf77f4c26 #1154 Add SPI for excluding types/elements from automatic sub-mapping generation
Default implementation of SPI ignores types in the java/javax packages
2017-05-17 22:34:23 +02:00
Filip Hrisafov
459354b6b8 #1153 Do not use invalid TargetReferences when creating nested target mappings
* Move the error generation for the invalid TargetReference into the BuilderFromTargetMapping
* TargetReference will strip the first entry name in the following cases only if the first entry name matches the MappingTarget parameter, or for reverse mappings it matches the source parameter name
* Pass the reverse source parameter when initializing a reverse mapping
2017-05-06 23:26:51 +02:00
Filip Hrisafov
aa6cda1177 Use anchors for the sections and add Filip to the authors 2017-05-06 15:15:16 +02:00
Filip Hrisafov
15133d5a0f #777 Set initial capacity for new collection / map element in collection / map mappings 2017-05-06 15:04:42 +02:00
Filip Hrisafov
763deaa917 #1164 Split the SetterWrapperForCollections into multiple models:
* SetterWrapperForCollectionsAndMaps - Does a simple assignment without doing any null checks
* SetterWrapperForCollectionsAndMapsWithNullCheck - Does an assignment that does a null check before assignment and takes direct assignment into consideration
* ExistingInstanceSetterWrapperForCollectionsAndMaps - Used for wrapping an assignment when the method is an update method

Additionally don't do local var assignment if there are presence checkers
2017-04-25 22:41:51 +02:00
Filip Hrisafov
25401794b0 Add the workaround for Travis in the processor pom 2017-04-23 13:23:15 +02:00
Filip Hrisafov
63689e67a0 Make sure that surefire keeps the argline modified by jacoco 2017-04-23 13:08:47 +02:00