Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Allow default cache sizes of Variables to be modified by user. #874

Merged
merged 1 commit into from
Jul 10, 2017
Merged

Allow default cache sizes of Variables to be modified by user. #874

merged 1 commit into from
Jul 10, 2017

Conversation

cwardgar
Copy link
Contributor

  • Variables need to be static, public, and non-final.
  • From the mailing list.

* Variables need to be static, public, and non-final.
@@ -73,7 +73,7 @@

public class CoordinateAxis extends VariableDS {
static private org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(CoordinateAxis.class);
static private final int axisSizeToCache = 100 * 1000; // bytes
static public int axisSizeToCache = 100 * 1000; // bytes
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suppose there is no way to make this package private? If not, that's ok, just checking to make sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not if we want the user to easily be able to modify it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok, no worries.

@lesserwhirls lesserwhirls merged commit f840a1e into Unidata:master Jul 10, 2017
@cwardgar cwardgar deleted the variable-caches branch July 10, 2017 23:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants