From 7e4d0b4cdc8fb9cbec5da2652e544f394917e694 Mon Sep 17 00:00:00 2001 From: Dominik Gruntz Date: Mon, 18 Nov 2019 18:04:40 +0100 Subject: [PATCH] Changes aggregation to composition (as described in issue #1095) (#1096) --- decorator/src/main/java/com/iluwatar/decorator/App.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decorator/src/main/java/com/iluwatar/decorator/App.java b/decorator/src/main/java/com/iluwatar/decorator/App.java index 348e5623d..9d28bd108 100644 --- a/decorator/src/main/java/com/iluwatar/decorator/App.java +++ b/decorator/src/main/java/com/iluwatar/decorator/App.java @@ -28,7 +28,7 @@ import org.slf4j.LoggerFactory; /** * The Decorator pattern is a more flexible alternative to subclassing. The Decorator class - * implements the same interface as the target and uses aggregation to "decorate" calls to the + * implements the same interface as the target and uses composition to "decorate" calls to the * target. Using the Decorator pattern it is possible to change the behavior of the class during * runtime. *