You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Madhan Neethiraj (JIRA)" <ji...@apache.org> on 2015/04/10 09:34:12 UTC
[jira] [Created] (RANGER-387) gettter/setter inconsistent names -
RangerServiceDef - setType()/getName()
Madhan Neethiraj created RANGER-387:
---------------------------------------
Summary: gettter/setter inconsistent names - RangerServiceDef - setType()/getName()
Key: RANGER-387
URL: https://issues.apache.org/jira/browse/RANGER-387
Project: Ranger
Issue Type: Bug
Components: plugins
Affects Versions: 0.5.0
Reporter: Madhan Neethiraj
Assignee: Madhan Neethiraj
A pair of getter/setter has inconsistent names: getName() and setType() in RangerServiceDef. This should be fixed to be consistent.
Though 'type' seems to be a better choice than name for ServiceDefs, to minimize the number of references that needs to be updated, it will be easier to change setType() to setName(). Changing 'name' to 'type' would require changes across a lot of files - including service-def JSON files.
So I propose to rename RangerServiceDef.setType() to RangerServiceDef.setName().
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)