DATAJPA-1382 - Remove superfluous method call to JpaPersistentEntityImpl.getVersionProperty().

Original pull request: #285.
This commit is contained in:
Michael J. Simons
2018-07-23 11:13:00 +02:00
committed by Mark Paluch
parent d5a8c15d91
commit 3094a795aa

View File

@@ -32,6 +32,7 @@ import org.springframework.util.Assert;
* @author Greg Turnquist
* @author Christoph Strobl
* @author Mark Paluch
* @author Michael J. Simons
* @since 1.3
*/
class JpaPersistentEntityImpl<T> extends BasicPersistentEntity<T, JpaPersistentProperty>
@@ -84,8 +85,6 @@ class JpaPersistentEntityImpl<T> extends BasicPersistentEntity<T, JpaPersistentP
super.verify();
getVersionProperty();
JpaPersistentProperty versionProperty = getVersionProperty();
if (versionProperty != null && versionProperty.isAnnotationPresent(Version.class)) {