Github user andreaturli commented on the pull request:

    
https://github.com/apache/incubator-brooklyn/pull/1127#issuecomment-169665520
  
    thanks @ahgittin for comments
    - `Object.hashCode` or `Objects.equals` from Guava are nicer but I wanted 
to avoid to have a direct dependency on Guava just for that. I know Guava is 
pulled in anyway, but we may in time be Guava-free at least for domain objects.
    - @JsonSerialize introduces another deps on jackson (databind) which I 
think it doesn't need to be there as it really depends on the ObjectMapper 
settings how to ser/deser the domain objects. In fact, `ObjectMapper` can deal 
with `NON_NULL` or `NON_EMPTY` using something like 
[1](https://github.com/apache/incubator-brooklyn/pull/1127/files#diff-0686331603044ae35702b44e20abdbb6R42)
    - re `LocationApi` I removed the deprecated methods and tests are passing, 
but I will have another look at the UI.
    - re `HighAvailabilityMode` and `ManagementNodeState` I thought that having 
a dependency on `brooklyn-api` just for those enums was a bit too much, that's 
why I moved to `brooklyn-utils-common`.
    - `displayNameComparator` was not used by any project and looked like an 
util method, but I agree, I should have deprecated first.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to