[ 
https://issues.apache.org/jira/browse/ISIS-1909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16438333#comment-16438333
 ] 

Andi Huber edited comment on ISIS-1909 at 4/14/18 1:47 PM:
-----------------------------------------------------------

Replacing Guava's deprecated Objects.toStringHelper ...

+BEFORE+
{code:java}
@Override
public String toString() {
        return Objects.toStringHelper(this)
                        .add("resourceStream", resourceStreamSourceChain)
                        .add("configResources", configurationResourcesFound)
                        .toString();
}
{code}
+AFTER+
{code:java}
private final static ToString<IsisConfigurationBuilder> toString = 
                ToString.<IsisConfigurationBuilder>
                toString("resourceStream", x->x.resourceStreamSourceChain)
                .thenToString("configResources", 
x->x.configurationResourcesFound)
                ;

@Override
public String toString() {
        return toString.toString(this);
}
{code}


was (Author: hobrom):
Replacing Guava's deprecated Objects.toStringHelper ...

+BEFORE+
{code:java}
@Override
public String toString() {
        return Objects.toStringHelper(this)
                        .add("resourceStream", resourceStreamSourceChain)
                        .add("configResources", configurationResourcesFound)
                        .toString();
}
{code}
+AFTER+
{code:java}
private final static ObjectContract<IsisConfigurationBuilder> contract = 
                ObjectContracts.contract(IsisConfigurationBuilder.class)
                .thenUse("resourceStream", x->x.resourceStreamSourceChain)
                .thenUse("configResources", x->x.configurationResourcesFound)
                ;

@Override
public String toString() {
        return contract.toString(this);
}
{code}

> Migration Notes: Moved and Deprecated Classes
> ---------------------------------------------
>
>                 Key: ISIS-1909
>                 URL: https://issues.apache.org/jira/browse/ISIS-1909
>             Project: Isis
>          Issue Type: Sub-task
>            Reporter: Andi Huber
>            Priority: Major
>             Fix For: 2.0.0-M1
>
>
> +Removed+
>  * IsisJdoSupport (replaced by API specific variants)
>  * Annotation Parseable removed
>  * Annotation Encodable removed
>  * ...
> +Moved+
> FROM
>  org/apache/isis/applib/services/eventbus/*
> TO
>  org/apache/isis/applib/events/domain/AbstractDomainEvent
>  org/apache/isis/applib/events/domain/ActionDomainEvent
>  org/apache/isis/applib/events/domain/CollectionDomainEvent
>  org/apache/isis/applib/events/domain/PropertyDomainEvent
>  org/apache/isis/applib/events/lifecycle/AbstractLifecycleEvent
>  org/apache/isis/applib/events/lifecycle/ObjectCreatedEvent
>  org/apache/isis/applib/events/lifecycle/ObjectLoadedEvent
>  org/apache/isis/applib/events/lifecycle/ObjectPersistedEvent
>  org/apache/isis/applib/events/lifecycle/ObjectPersistingEvent
>  org/apache/isis/applib/events/lifecycle/ObjectRemovingEvent
>  org/apache/isis/applib/events/lifecycle/ObjectUpdatedEvent
>  org/apache/isis/applib/events/lifecycle/ObjectUpdatingEvent
>  org/apache/isis/applib/events/ui/AbstractUiEvent
>  org/apache/isis/applib/events/ui/CssClassUiEvent
>  org/apache/isis/applib/events/ui/IconUiEvent
>  org/apache/isis/applib/events/ui/TitleUiEvent
> +ISIS-1599+
> Meta-Data validation will now fail if a collection action parameter is found 
> that is not exactly one of the following supported types: List, Set, 
> SortedSet, Collection or Array.
> +In case we ship the legacy build (unlikely) ...+
> to ease transition from 1.x to 2.0 we introduced legacy variants as drop-in 
> replacements
> - RepositoryService -> RepositoryServiceLegacy
> - ExceptionRecognizerAbstract -> ExceptionRecognizerAbstractLegacy
> - ExceptionRecognizerForType -> ExceptionRecognizerForTypeLegacy



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to