-
Notifications
You must be signed in to change notification settings - Fork 4.6k
enable spotbugs for CDK core and dependencies submodule #36612
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
enable spotbugs for CDK core and dependencies submodule #36612
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
ef51c54
to
2692351
Compare
@@ -51,10 +51,10 @@ class SshBastionContainer : AutoCloseable { | |||
} | |||
|
|||
@Throws(IOException::class, InterruptedException::class) | |||
fun getTunnelMethod(tunnelMethod: SshTunnel.TunnelMethod?, innerAddress: Boolean): JsonNode? { | |||
fun getTunnelMethod(tunnelMethod: SshTunnel.TunnelMethod, innerAddress: Boolean): JsonNode? { |
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.
Why nullable JsonNode ? does Jsons.jsonNode doesn't guarantee empty JsonNode instead of null ?
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.
you're right. This is actually reported as a compiler warning. I only focused on the spotbugs in this PR
2692351
to
cf29dc8
Compare
c5afa4e
to
0911db2
Compare
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 have a few minor requests but nothing which should block this,
@@ -33,7 +33,7 @@ import org.testcontainers.containers.PostgreSQLContainer | |||
import org.testcontainers.utility.MountableFile | |||
|
|||
internal class TestJdbcUtils { | |||
private var dbName: String? = null | |||
private var dbName: String = "dummy" |
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.
could this be a legitimate lateinit
?
.stream() | ||
.findFirst() | ||
.get() | ||
.value | ||
.ipAddress | ||
) | ||
)!! |
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.
IMO this needs to be addressed as part of this PR.
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.
suggestion: instead of stream().findFirst()
... use kotlin constructs
...cdk/java/airbyte-cdk/dependencies/src/test/kotlin/io/airbyte/workers/TestHarnessUtilsTest.kt
Show resolved
Hide resolved
...java/airbyte-cdk/dependencies/src/testFixtures/kotlin/io/airbyte/workers/TestHarnessUtils.kt
Show resolved
Hide resolved
if (process != null) { | ||
TestHarnessUtils.cancelProcess(process) | ||
} | ||
process?.let { TestHarnessUtils.cancelProcess(process) } |
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 ?
works now that process
is lateinit
a non-nullable type? Surprising.
@@ -119,25 +119,24 @@ class DbtTransformationRunner( | |||
emptyMap(), | |||
*dbtArguments.toTypedArray<String>() | |||
) | |||
this.process = process |
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.
Why not assign to this.process
directly? Evidently there's a reason but for my own information I'd like to understand.
95af1a0
to
d8b4502
Compare
Merge activity
|
d8b4502
to
78f46b4
Compare
* master: (1562 commits) ✨ source-google-drive: migrate to poetry (airbytehq#36581) enable spotbugs for CDK core and dependencies submodule (airbytehq#36612) ✨ Source Salesforce, Shopify: add maxSecondsBetweenMessages in metadata (airbytehq#36723) java-cdk: re-export airbyte-api dependency (airbytehq#36759) Source Google Sheets: address dependency conflict and update CDK (airbytehq#36515) Airbyte CI: rename incorrectly named pipelines (airbytehq#36722) Source Azure Blob Storage: add integration tests (airbytehq#36542) Salesforce: retry on download_data and create_stream_job (airbytehq#36385) ✨Source Monday: Bumped CDK version dependency (airbytehq#36746) airbyte-ci: burst gradle task cache on new java cdk release (airbytehq#36480) chore(connectors): remove tasks.py and top-level requirements.txt (airbytehq#36738) airbyte-ci: fix pull-request-number option for migrate_to_base_image (airbytehq#36779) 🤖 Bump patch version of Python CDK add backward compatibility for an old close slice logic (airbytehq#36774) Bump Airbyte version from 0.57.0 to 0.57.1 🤖 Bump patch version of Python CDK low-code: Fix cursor pagination instantiation if the stop_condition is a string (airbytehq#36760) fix rabbitmq icon and simplify docs registry code (airbytehq#36767) Update azure-entra-id.md (airbytehq#36758) re-enable rabbitmq on OSS (airbytehq#36749) ...
No description provided.