Skip to content

chore: no-ticket: add spotless configuration to remove unused imports - #8305

Open
devinrsmith wants to merge 5 commits into
deephaven:mainfrom
devinrsmith:spotless-remove-unused-imports
Open

chore: no-ticket: add spotless configuration to remove unused imports#8305
devinrsmith wants to merge 5 commits into
deephaven:mainfrom
devinrsmith:spotless-remove-unused-imports

Conversation

@devinrsmith

Copy link
Copy Markdown
Member

No description provided.

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

No docs changes detected for c83a550

@devinrsmith devinrsmith self-assigned this Aug 1, 2026
@devinrsmith
devinrsmith marked this pull request as ready for review August 1, 2026 00:50
@devinrsmith
devinrsmith requested a review from Copilot August 1, 2026 00:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@devinrsmith
devinrsmith requested a review from kosak as a code owner August 1, 2026 00:58
@devinrsmith
devinrsmith requested a review from niloc132 as a code owner August 1, 2026 01:21
package io.deephaven.proto.backplane.grpc;

option java_multiple_files = true;
// to disambiguate from Java Object

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why did the spotless change make this come up now?

@devinrsmith devinrsmith Aug 3, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I suspect the implementation of removeUnusedImports() does "simple" checks without actually compiling wrt the compile classpath, or has a hard-coded check that java.lang.Object never needs to be imported.

The protobuf codegen previously generated io.deephaven.proto.backplane.grpc.Object, meaning that java.lang.Object did need to be imported. This codegen class is "fluff" that we never actually need to reference (internal protobuf codegen may reference it), so I simply worked around this issue by changing the codegen class name to io.deephaven.proto.backplane.grpc.ObjectProto.

@devinrsmith devinrsmith left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ryan asked about replication tasks:

replication-static:replicateAllSafe

does not produce clean results. This should not be merged until that is taken care of.

@rcaudy rcaudy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Marking as "request changes" to block merge while replication is cleaned up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants