Skip to content
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

Merged

Conversation

stephane-airbyte
Copy link
Contributor

@stephane-airbyte stephane-airbyte commented Apr 22, 2024

clearing kotlin warnings

Copy link

vercel bot commented Apr 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Apr 23, 2024 7:21pm

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Apr 22, 2024
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @stephane-airbyte and the rest of your teammates on Graphite Graphite

@stephane-airbyte stephane-airbyte force-pushed the stephane/04-22-fix-kotlin-warnings-in-dependencies branch 2 times, most recently from 0893885 to 7737503 Compare April 22, 2024 22:12
@stephane-airbyte stephane-airbyte changed the title allow connectors to be written in kotlin fix kotlin warnings in dependencies CDK submodule Apr 22, 2024
@stephane-airbyte stephane-airbyte marked this pull request as ready for review April 22, 2024 22:16
@stephane-airbyte stephane-airbyte requested review from a team as code owners April 22, 2024 22:16
@stephane-airbyte stephane-airbyte force-pushed the stephane/04-22-fix-kotlin-warnings-in-dependencies branch from 7737503 to 4f26d13 Compare April 22, 2024 22:58
// 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
Copy link
Contributor

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

Copy link
Contributor Author

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? ->
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment applies elsewhere also

Copy link
Contributor Author

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 :(

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it can wait

@stephane-airbyte stephane-airbyte force-pushed the stephane/04-22-fix-kotlin-warnings-in-dependencies branch 2 times, most recently from 93bb626 to d662f7e Compare April 23, 2024 17:36
@stephane-airbyte stephane-airbyte force-pushed the stephane/04-22-fix-kotlin-warnings-in-dependencies branch from d662f7e to 8c41168 Compare April 23, 2024 19:21
@stephane-airbyte stephane-airbyte merged commit c878615 into master Apr 23, 2024
31 checks passed
@stephane-airbyte stephane-airbyte deleted the stephane/04-22-fix-kotlin-warnings-in-dependencies branch April 23, 2024 20:40
strosek pushed a commit that referenced this pull request Apr 24, 2024
FVidalCarneiro pushed a commit to AgiData/airbyte that referenced this pull request May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants