-
Notifications
You must be signed in to change notification settings - Fork 12
Bump JDK, Kotlin, Gradle, and local dependencies #1577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
... until SpineEventEngine/validation#201 is addressed.
Also: * Stop implementing `BiFunction`. * Add missing generic parameter `I` in params of `EntityState<*>`.
1. Filter `CallerProvider` itself. 2. Skip calls from the module `java.base`.
Also: * Make methods static.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1577 +/- ##
============================================
- Coverage 90.73% 90.51% -0.22%
- Complexity 5008 5012 +4
============================================
Files 645 644 -1
Lines 15640 15658 +18
Branches 939 941 +2
============================================
- Hits 14191 14173 -18
- Misses 1110 1149 +39
+ Partials 339 336 -3 🚀 New features to boost your workflow:
|
armiol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexander-yevsyukov LGTM with a minor comment.
server/build.gradle.kts
Outdated
| from(sourceSets.testFixtures.get().output) | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is redundant.
| * @see RoutingMap | ||
| */ | ||
| internal sealed class RoutingMethod<I: Any, M: Message, C: Message, R: Any>( | ||
| internal sealed class RoutingMethod<I: Any, M: Routable, C: SignalContext, R: Any>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| internal sealed class RoutingMethod<I: Any, M: Routable, C: SignalContext, R: Any>( | |
| internal sealed class RoutingMethod<I : Any, M : Routable, C : SignalContext, R : Any>( |
| ) { | ||
| override fun self(): StateUpdateRouting<I> = this | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line looks redundant.
| private const val TESTING_SERVER_PACKAGE = "io.spine.testing.server" | ||
|
|
||
| /** | ||
| * Throws [SecurityException] of the calling class does not belong to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Throws [SecurityException] of the calling class does not belong to | |
| * Throws [SecurityException] if the calling class does not belong to |
| return result | ||
| } | ||
|
|
||
| private fun nonAllowedCaller(callingClass: Class<*>): SecurityException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| private fun nonAllowedCaller(callingClass: Class<*>): SecurityException { | |
| private fun notAllowedCaller(callingClass: Class<*>): SecurityException { |
I have not seen non allowed before. You can save on braces here.
| /** | ||
| * Test environment repository for {@linkplain AggregateTest | ||
| * Aggregate tests}. | ||
| * Test environment repository for Aggregate tests}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Test environment repository for Aggregate tests}. | |
| * Test environment repository for Aggregate tests. |
| option java_package = "io.spine.test.server.envelope"; | ||
| option java_multiple_files = true; | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant line.
This PR bumps major external and local dependencies and introduce changes described in the sections below.
Changes in the routing code
RouteFnno longer extends Kotlin'sFunction2, which avoids automatic conversion of the derived types performed by the newer Kotlin compiler . The conversion caused casting problems both in production and testing code.EventRouting.unicast()function which acceptedBiFunctionwas removed.@FunctionalInterfaceannotations were removed on types extendingRouteFn. This did not cause any problems with existing Java routing functions.Other notable changes
servermodule were separated in thetestFixturessource set.null-ness check inFilterMixinTestback because the generated code now supports it.io.spine.server.securitypackage was converted to Kotlin. Also, the deprecatedSecurityManagerJava API is no longer used.? extends @Nullable Object.@Routeannotation was updated to mention generated routing setup classes.