Skip to content
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.

Update Java inspection to use "@" prefix on field members #54

Open
mattrpav opened this issue Jul 24, 2017 · 0 comments
Open

Update Java inspection to use "@" prefix on field members #54

mattrpav opened this issue Jul 24, 2017 · 0 comments

Comments

@mattrpav
Copy link
Contributor

mattrpav commented Jul 24, 2017

Java class inspection edge case - field and setter/getter conflict

Scenario:

  1. Java class contains an int field named "myInt" with no getter/setter operating on an Integer/int type
  2. Java class contains methods named String getMyInt()/setMyInt(String myInt)
  3. Need a merge strategy when there are two potential AtlasMap "Fields" that have the same name

Note: An approach could be to use "@" to indicate field vs method

ie..

/Address/@street <-- Java field
/Address/street <-- Java get/set method

Advanced use case:
Extended class implements same field as super class

Result, 2 field definitions:

  • /Address/@street <-- Class
  • /Address/@street?fieldIsSuperClass=true . <-- SuperClass
@mattrpav mattrpav changed the title Java class inspection edge case - field and setter/getter conflict Update Java inspection to use "@" prefix on field members Sep 27, 2017
@igarashitm igarashitm added this to the Priority 1 milestone Sep 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants