Skip to content

Conversation

@adutra
Copy link
Contributor

@adutra adutra commented Aug 2, 2024

Fixes a few build warnings. There is no functional change, and each commit can be reviewed separately.

@adutra adutra requested a review from a team as a code owner August 2, 2024 13:29
Copy link
Contributor

Choose a reason for hiding this comment

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

(optional) I don't think returning a mutable list is a good idea. I would recommend using ImmutableList of Guava as much as possible.

Copy link
Contributor

@sfc-gh-mcollado sfc-gh-mcollado left a comment

Choose a reason for hiding this comment

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

These are great! Just the one question about the constant

// For requests that make use of a Catalog instance, this holds the instance that was
// created, scoped to the current call context.
public static final String REQUEST_PATH_CATALOG_INSTANCE_KEY = "REQUEST_PATH_CATALOG_INSTANCE";
String REQUEST_PATH_CATALOG_INSTANCE_KEY = "REQUEST_PATH_CATALOG_INSTANCE";
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this no longer a constant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It still is: this is an interface so public static final is implicit.

Copy link
Contributor

Choose a reason for hiding this comment

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

Dur! 🤦🏽‍♂️

@flyrain flyrain closed this in #91 Aug 6, 2024
@snazy snazy reopened this Aug 6, 2024
@snazy
Copy link
Member

snazy commented Aug 6, 2024

(Reopening, was closed due to GH's "fix comment" confusion)

@adutra adutra merged commit 353acea into apache:main Aug 6, 2024
@adutra adutra deleted the java-code-fixes branch August 6, 2024 08:17
snazy referenced this pull request in snazy/polaris Jun 13, 2025
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.

5 participants