Skip to content

Commit

Permalink
#159 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderhook committed Mar 14, 2024
1 parent efff2a7 commit f01938b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
7 changes: 4 additions & 3 deletions testData/inspection/UnmappedSuperBuilderTargetProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
*/

import org.mapstruct.Context;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingTarget;
import org.mapstruct.Mappings;
import org.example.data.UnmappedFluentTargetPropertiesData.Target;
import org.example.data.UnmappedFluentTargetPropertiesData.Source;
import org.example.data.UnmappedSuperBuilderTargetPropertiesData.Target;
import org.example.data.UnmappedSuperBuilderTargetPropertiesData.Source;

interface NotMapStructMapper {

Expand Down Expand Up @@ -38,7 +39,7 @@ interface NoMappingMapper {

Target <warning descr="Unmapped target properties: moreTarget, testName">map</warning>(Source source);

@org.mapstruct.InheritInverseConfiguration
@InheritInverseConfiguration
Source reverse(Target target);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package org.example.data;

public class UnmappedFluentTargetPropertiesData {
public class UnmappedSuperBuilderTargetPropertiesData {
public static class Source {

private String name;
Expand Down Expand Up @@ -109,11 +109,6 @@ public B moreTarget(String moreTarget) {
protected abstract B self();

public abstract C build();

public String toString() {
return "Target.TargetBuilder(testName=" + this.testName + ", matching=" + this.matching + ", moreTarget=" +
this.moreTarget + ")";
}
}

private static final class TargetBuilderImpl extends TargetBuilder<Target, TargetBuilderImpl> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
*/

import org.mapstruct.Context;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingTarget;
import org.mapstruct.Mappings;
import org.example.data.UnmappedFluentTargetPropertiesData.Target;
import org.example.data.UnmappedFluentTargetPropertiesData.Source;
import org.example.data.UnmappedSuperBuilderTargetPropertiesData.Target;
import org.example.data.UnmappedSuperBuilderTargetPropertiesData.Source;

interface NotMapStructMapper {

Expand Down Expand Up @@ -48,7 +49,7 @@ interface NoMappingMapper {
@Mapping(target = "moreTarget", ignore = true)
Target map(Source source);

@org.mapstruct.InheritInverseConfiguration
@InheritInverseConfiguration
Source reverse(Target target);
}

Expand Down

0 comments on commit f01938b

Please sign in to comment.