Skip to content

Commit ee75b8c

Browse files
mp911dechristophstrobl
authored andcommitted
Polishing.
Simplify code. Original Pull Request: #3059
1 parent 0766f2e commit ee75b8c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Diff for: src/main/java/org/springframework/data/mapping/model/AbstractPersistentProperty.java

+1-9
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,6 @@ public TypeInformation<?> getTypeInformation() {
157157

158158
@Override
159159
public Iterable<? extends TypeInformation<?>> getPersistentEntityTypeInformation() {
160-
161-
if (isMap() || isCollectionLike()) {
162-
return entityTypeInformation.get();
163-
}
164-
165-
if (!isEntity()) {
166-
return Collections.emptySet();
167-
}
168-
169160
return entityTypeInformation.get();
170161
}
171162

@@ -292,6 +283,7 @@ public Class<?> getActualType() {
292283
return getActualTypeInformation().getType();
293284
}
294285

286+
@Override
295287
public boolean usePropertyAccess() {
296288
return usePropertyAccess.get();
297289
}

0 commit comments

Comments
 (0)