Skip to content
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

simple code changes to chip away at the code warnings #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

techcobweb
Copy link
Contributor

Signed-off-by: Mike Cobbett [email protected]

Copy link
Member

@eamansour eamansour left a comment

Choose a reason for hiding this comment

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

A few minor comments but approved

@@ -262,7 +262,7 @@ public String get(@NotNull String key) throws DynamicStatusStoreException {
@Override
public @NotNull Map<String, String> getPrefix(@NotNull String keyPrefix) throws DynamicStatusStoreException {
ByteSequence bsPrefix = ByteSequence.from(keyPrefix, UTF_8);
GetOption options = GetOption.newBuilder().withPrefix(bsPrefix).build();
GetOption options = GetOption.builder().withPrefix(bsPrefix).build();
Copy link
Member

Choose a reason for hiding this comment

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

Need to change withPrefix here too?

@@ -340,7 +340,7 @@ public void delete(@NotNull Set<String> keys) throws DynamicStatusStoreException
@Override
public void deletePrefix(@NotNull String keyPrefix) throws DynamicStatusStoreException {
ByteSequence bsKey = ByteSequence.from(keyPrefix, UTF_8);
DeleteOption options = DeleteOption.newBuilder().withPrefix(bsKey).build();
DeleteOption options = DeleteOption.builder().withPrefix(bsKey).build();
Copy link
Member

Choose a reason for hiding this comment

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

Need to change withPrefix here too?

@@ -597,7 +597,7 @@ private Txn performActionsDeletePrefixIf(Txn txn, DssDeletePrefix action) {
private Txn performActionsDeletePrefixThen(Txn txn, DssDeletePrefix action) {
ByteSequence bsKey = ByteSequence.from(action.getPrefix(), UTF_8);

DeleteOption option = DeleteOption.newBuilder().withPrefix(bsKey).build();
DeleteOption option = DeleteOption.builder().withPrefix(bsKey).build();
Copy link
Member

Choose a reason for hiding this comment

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

Need to change withPrefix here too?

@@ -1,6 +1,13 @@
# Galasa
This is a home for all of the Galasa code
This is a home for all of the code Java Galasa code.
Copy link
Member

Choose a reason for hiding this comment

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

"code" is here twice - maybe something like "all of the Galasa Java code"?

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.

2 participants