From edf21efe0a07a4e37014c82330497bff9585cc1b Mon Sep 17 00:00:00 2001 From: Christoph Kroczek Date: Sat, 13 Jul 2019 21:15:27 +0200 Subject: [PATCH] correction --- effectivejava/item001/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/effectivejava/item001/README.md b/effectivejava/item001/README.md index 4ee1d69..f759910 100644 --- a/effectivejava/item001/README.md +++ b/effectivejava/item001/README.md @@ -10,11 +10,11 @@ Use factory method to construct an instance by a good understandable name. The instance shall be only created when there is no existing one. advantages of factory method usage instead of constructors: -# Unlike constructors the method has a meaningful name. -# Unlike constructors it is not required to create a new object each time they are invoked. -# Unlike constructors it can return an object of any subtype of their return type. -# The returned object can vary from call to call as function of the input parameters. -# The class of the returned object need not exist when the class containing the method is written. ???? +* Unlike constructors the method has a meaningful name. +* Unlike constructors it is not required to create a new object each time they are invoked. +* Unlike constructors it can return an object of any subtype of their return type. +* The returned object can vary from call to call as function of the input parameters. +* The class of the returned object need not exist when the class containing the method is written. ???? # Clues