brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahgittin <>
Subject [GitHub] brooklyn-server pull request #318: Delete most deprecated methods from PortF...
Date Thu, 22 Sep 2016 12:11:38 GMT
Github user ahgittin commented on a diff in the pull request:
    --- Diff: core/src/main/java/org/apache/brooklyn/core/location/access/
    @@ -83,9 +83,6 @@
         private final Map<AssociationListener, Predicate<? super AssociationMetadata>>
associationListeners = new ConcurrentHashMap<AssociationListener, Predicate<? super
    -    @Deprecated
    -    protected final Map<String,String> publicIpIdToHostname = new LinkedHashMap<String,String>();
    --- End diff --
    @sjcorbett my strategy when deprecating fields is to mark it deprecated and transient
for one major release, make sure all accessors transform it, and make sure at least one accessor
gets exercised.
    this should ensure that if state from one version is carried through subsequent major
versions it will migrate.
    however there is not currently any way to force exercising in all cases i don't think
(we could introduce a method `postRebind()` for that purpose?).  for now i suggest keep it
in perpetuity with a comment `// kept for persistence from previous versions; see`

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 or file a JIRA ticket
with INFRA.

View raw message