You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Robert Stupp (JIRA)" <ji...@apache.org> on 2016/07/13 23:55:20 UTC
[jira] [Created] (CASSANDRA-12199) Config class uses boxed types
but DD exposes primitive types
Robert Stupp created CASSANDRA-12199:
----------------------------------------
Summary: Config class uses boxed types but DD exposes primitive types
Key: CASSANDRA-12199
URL: https://issues.apache.org/jira/browse/CASSANDRA-12199
Project: Cassandra
Issue Type: Improvement
Components: Configuration
Reporter: Robert Stupp
Priority: Minor
Fix For: 3.x
{{Config}} class contains a lot of properties that are defined using boxed types - ({{Config.dynamic_snitch_update_interval_in_ms}}) but the corresponding get-methods in {{DatabaseDescriptor}} require them to be not null. Means, setting such properties to {{null}} will lead to NPEs anyway.
Proposal:
* Identify all properties that use boxed values and have a default value (e.g. {{public Integer rpc_port = 9160;}})
* Refactor those to use primitive types
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)