-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
fix kotlin warnings in dependencies CDK submodule #37484
fix kotlin warnings in dependencies CDK submodule #37484
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @stephane-airbyte and the rest of your teammates on |
0893885
to
7737503
Compare
7737503
to
4f26d13
Compare
...irbyte-cdk/dependencies/src/main/kotlin/io/airbyte/commons/concurrency/CompletableFutures.kt
Outdated
Show resolved
Hide resolved
airbyte-cdk/java/airbyte-cdk/dependencies/src/main/kotlin/io/airbyte/commons/json/Jsons.kt
Show resolved
Hide resolved
// Manually build the stacktrace, excluding the top-level exception object | ||
// so that we don't accidentally include the exception message. | ||
// Otherwise we could just do ExceptionUtils.getStackTrace(t). | ||
var t: Throwable? = t | ||
var t: Throwable? = throwable |
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.
t
should not exist at all if the function arg is legitimately not nullable
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.
I actually need a new object, because it's being reassigned line 434. But I can make it non-nullable
@@ -90,7 +88,7 @@ object StreamStatusUtils { | |||
airbyteStream: Optional<AirbyteStreamNameNamespacePair>, | |||
statusEmitter: Optional<Consumer<AirbyteStreamStatusHolder>> | |||
) { | |||
airbyteStream!!.ifPresent { s: AirbyteStreamNameNamespacePair? -> | |||
airbyteStream.ifPresent { s: AirbyteStreamNameNamespacePair? -> |
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.
s
need not be nullable
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.
comment applies elsewhere also
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.
yeah, I didn't go through those as they're not marked as warning. Will need another pass for that :(
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.
it can wait
93bb626
to
d662f7e
Compare
d662f7e
to
8c41168
Compare
clearing kotlin warnings