diff --git a/example/pom.xml b/example/pom.xml
index 385f8d9..9a744cf 100644
--- a/example/pom.xml
+++ b/example/pom.xml
@@ -18,7 +18,7 @@
UTF-8
1.5.1.Final
- 1.3.5
+ 1.3.6-SNAPSHOT
1.18.22
diff --git a/example/spring-boot-with-lombok/src/main/java/io/github/linpeilie/model/Car.java b/example/spring-boot-with-lombok/src/main/java/io/github/linpeilie/model/Car.java
index 8e37150..23aba5f 100644
--- a/example/spring-boot-with-lombok/src/main/java/io/github/linpeilie/model/Car.java
+++ b/example/spring-boot-with-lombok/src/main/java/io/github/linpeilie/model/Car.java
@@ -17,4 +17,9 @@ public class Car {
@AutoMapping(target = "wheels", ignore = true)
private Wheels wheels;
+ @Data
+ public static class InnerClass {
+ private String f;
+ }
+
}
diff --git a/example/spring-boot-with-lombok/src/main/java/io/github/linpeilie/model/InnerClassTarget.java b/example/spring-boot-with-lombok/src/main/java/io/github/linpeilie/model/InnerClassTarget.java
new file mode 100644
index 0000000..c425fba
--- /dev/null
+++ b/example/spring-boot-with-lombok/src/main/java/io/github/linpeilie/model/InnerClassTarget.java
@@ -0,0 +1,12 @@
+package io.github.linpeilie.model;
+
+import io.github.linpeilie.annotations.AutoMapper;
+import lombok.Data;
+
+@Data
+@AutoMapper(target = Car.InnerClass.class)
+public class InnerClassTarget {
+
+ private String f;
+
+}
diff --git a/mapstruct-plus-processor/src/main/java/io/github/linpeilie/processor/generator/AutoMapperGenerator.java b/mapstruct-plus-processor/src/main/java/io/github/linpeilie/processor/generator/AutoMapperGenerator.java
index 2051b74..690b3ff 100644
--- a/mapstruct-plus-processor/src/main/java/io/github/linpeilie/processor/generator/AutoMapperGenerator.java
+++ b/mapstruct-plus-processor/src/main/java/io/github/linpeilie/processor/generator/AutoMapperGenerator.java
@@ -90,7 +90,7 @@ public class AutoMapperGenerator {
private boolean classIsImmutable(ProcessingEnvironment processingEnv, ClassName className) {
final TypeElement targetElement = processingEnv.getElementUtils()
- .getTypeElement(className.packageName() + "." + className.simpleName());
+ .getTypeElement(className.reflectionName().replaceAll("\\$", "."));
final List extends AnnotationMirror> annotationMirrors = targetElement.getAnnotationMirrors();
for (AnnotationMirror annotationMirror : annotationMirrors) {
if (annotationMirror.getAnnotationType().asElement().getSimpleName().contentEquals("Immutable")) {
diff --git a/pom.xml b/pom.xml
index f05ac5f..92734f2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -17,7 +17,7 @@
- 1.3.5
+ 1.3.6-SNAPSHOT
8
8
UTF-8