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

Address spotbugs issues with TableConfigCache code #897

Merged
merged 1 commit into from
Aug 18, 2020

Conversation

drewfarris
Copy link
Collaborator

No description provided.


public TableConfigCache(Configuration conf) {
super(conf);
}

@SuppressFBWarnings("ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It seems like this was the best action to take here - it was complaining that we were writing to a static field from a non-static method. Perhaps there's another way to do this that would not result in a warning?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'll investigate this when I get back. Approving for now. Long term we shouldn't need this suppression.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like configMap is static but we're setting it in a non-static method. The method actually has no dependency on any instance state. Seems like the fix might be to make this method static.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jschmidt10 - I suspected the same thing but was going to leave the design up to @hlgp.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good!


public TableConfigCache(Configuration conf) {
super(conf);
}

@SuppressFBWarnings("ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'll investigate this when I get back. Approving for now. Long term we shouldn't need this suppression.

@drewfarris drewfarris merged commit dca37aa into NationalSecurityAgency:master Aug 18, 2020
plainolneesh added a commit to plainolneesh/datawave that referenced this pull request Jun 2, 2021
plainolneesh added a commit to plainolneesh/datawave that referenced this pull request Jun 3, 2021
…page less than requested page size, update status"

This reverts commit 76f0d0f.
ivakegg pushed a commit that referenced this pull request Nov 9, 2021
* Re:#897 - Removed trigger booleans, is page less than requested page size, update status
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.

None yet

4 participants