mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 23:52:27 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
11 lines
422 B
HTML
11 lines
422 B
HTML
<html>
|
|
<body>
|
|
Replaces constructor calls with calls to the factory method.
|
|
<p>
|
|
Since factory methods can create objects of any type, such a replacement can be especially useful when a new instance of the containing class is not desired.
|
|
</p>
|
|
E.g.,
|
|
when the current class is extended and objects of subclasses should be created instead.
|
|
Or when caching is introduced and existing objects should be returned.
|
|
</body>
|
|
</html> |