You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, we currently use the traditional `instanceof` checks followed by explicit type casting.
With the introduction of pattern matching in recent Java versions, we can refactor these checks to make the code more concise and readable.
Original pull request #1868
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/JdbcAggregateChangeExecutionContext.java
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/ResultSetAccessorPropertyAccessor.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ public Class<?>[] getSpecificTargetClasses() {
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/AggregateChangeIdGenerationImmutableUnitTests.java
+4-8
Original file line number
Diff line number
Diff line change
@@ -491,8 +491,7 @@ public ContentNoId getEmbedded() {
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryWithCollectionsAndManuallyAssignedIdHsqlIntegrationTests.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -66,8 +66,8 @@ public ApplicationListener<?> idSetting() {
0 commit comments