juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bognar (Jira)" <j...@apache.org>
Subject [jira] [Closed] (JUNEAU-203) Bean copy constructor can be confused with builder constructor.
Date Mon, 16 Mar 2020 15:39:00 GMT

     [ https://issues.apache.org/jira/browse/JUNEAU-203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Bognar closed JUNEAU-203.
-------------------------------
    Fix Version/s: 8.1.4
       Resolution: Fixed

> Bean copy constructor can be confused with builder constructor.
> ---------------------------------------------------------------
>
>                 Key: JUNEAU-203
>                 URL: https://issues.apache.org/jira/browse/JUNEAU-203
>             Project: Juneau
>          Issue Type: Improvement
>          Components: Code
>    Affects Versions: 8.1.3
>            Reporter: James Bognar
>            Assignee: James Bognar
>            Priority: Major
>             Fix For: 8.1.4
>
>
> In the following scenario where both a static creator method and copy constructor is
present, the pattern erroneously gets detected as a bean builder pattern:
> {code:java}
> public class A {
>    public A() {...}
>    public A(A a) {...}
>    public static A create() {...}
> }{code}
> The logic for finding static builder creator methods should exclude methods that return
the same class.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message