-
Notifications
You must be signed in to change notification settings - Fork 176
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
Build warning fixes #75
Conversation
polaris-service/src/main/java/io/polaris/service/catalog/PolarisCatalogHandlerWrapper.java
Outdated
Show resolved
Hide resolved
@@ -36,8 +36,7 @@ public class PolarisCatalogHelpers { | |||
private PolarisCatalogHelpers() {} | |||
|
|||
public static List<String> tableIdentifierToList(TableIdentifier identifier) { | |||
List<String> fullList = new ArrayList<>(); | |||
fullList.addAll(Arrays.asList(identifier.namespace().levels())); | |||
List<String> fullList = new ArrayList<>(Arrays.asList(identifier.namespace().levels())); |
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.
(optional) I don't think returning a mutable list is a good idea. I would recommend using ImmutableList
of Guava as much as possible.
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.
These are great! Just the one question about the constant
public static final String REQUEST_PATH_CATALOG_INSTANCE_KEY = "REQUEST_PATH_CATALOG_INSTANCE"; | ||
String REQUEST_PATH_CATALOG_INSTANCE_KEY = "REQUEST_PATH_CATALOG_INSTANCE"; |
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 is this no longer a constant?
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.
It still is: this is an interface so public static final
is implicit.
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.
Dur! 🤦🏽♂️
(Reopening, was closed due to GH's "fix comment" confusion) |
Fixes a few build warnings. There is no functional change, and each commit can be reviewed separately.