Skip to content

Conversation

@renaudhartert-db
Copy link
Contributor

What changes are proposed in this pull request?

This PR introduces a new @InternalApi annotation and applies it to internal SDK classes to clearly delineate the public API surface. The annotation marks classes intended for internal use only, which may change without notice.

As the SDK grows, it's important to establish a clear contract with users about what constitutes the stable public API versus internal implementation details. Without this distinction, users might inadvertently depend on internal classes, leading to breakage when we refactor or improve the SDK internals.

The stable public API now consists only of unmarked classes (e.g., DatabricksConfig, exceptions, error types, extension interfaces like CredentialsProvider). All core implementation classes in com.databricks.sdk.core packages are marked as internal and subject to change.

How is this tested?

This is a documentation-only change that adds annotations to existing classes without modifying their behavior.

@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-java

Inputs:

  • PR number: 573
  • Commit SHA: d4b200ffca31b8cfed5622397551a4d1195ddf8b

Checks will be approved automatically on success.

Copy link

@chrisst chrisst left a comment

Choose a reason for hiding this comment

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

Looks great! I assume this will show up in the docs too?

@renaudhartert-db
Copy link
Contributor Author

Looks great! I assume this will show up in the docs too?

That is my understanding but I haven't verified. If that's not the case, I'll follow-up with the necessary patch.

@renaudhartert-db renaudhartert-db added this pull request to the merge queue Dec 11, 2025
Merged via the queue into main with commit 50205c5 Dec 11, 2025
16 checks passed
@renaudhartert-db renaudhartert-db deleted the renaud-hartert_data/internal-api branch December 11, 2025 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants