30 Commits

Author SHA1 Message Date
Alexander Ivanov
4904d7eea0 #1021: Fix checkstyle warnings by changing the license header template (#1027)
* Add custom license header style in order to comply with Google's Checkstyle format

* Update license headers to comply with Google's Checkstyle format
2019-10-22 08:15:35 +03:00
Ilkka Seppälä
9ebbc421dd Update license headers 2019-10-12 20:05:54 +03:00
hoangNam
86e9c66ca5 - Assign new clubberTroll instance to another variable.
- Remove redundant Exception from throws list in unit tests.
2018-10-15 11:41:14 +07:00
Artur Mogozov
6694d742a3 Migrate to JUnit5 2017-12-31 16:29:48 +09:00
OCN.Yang
6a560f7d15 Delete duplicate declared objects:ClubbedTroll
Trolls should not be re-declared: if I had a troll called Zac, one day I
gave him a weapon.I can not because he now has a weapon called him
Trundle. He is still Zac.
2017-09-14 10:20:20 +08:00
Ilkka Seppälä
9d2f0c6c71 #590 Add explanation to Decorator pattern 2017-09-02 23:10:39 +03:00
Ilkka Seppälä
faa29f8025 Update license headers 2016-11-27 14:34:20 +02:00
Ilkka Seppälä
92f8501f7d Decorator pattern: Improve the example 2016-11-22 23:08:39 +02:00
Ilkka Seppälä
68ec24c62e Merge pull request #515 from dbryla/master
#502 Added logging framework to repository
2016-11-18 20:47:17 +02:00
Thomas
9180bb0fef Update App.java
The relationship between decorator and target (in the code example between Troll und SmartTroll) ist not a composition as described in the code comment lines of class App. It's a aggregation. In a composition both instances canncot live without the other one. But the target (Troll) could live without the decorator (Smart Troll). Changed "composition" to "aggregation" in the comment lines. Code lines are unchanged.
Greetings Thomas
2016-11-14 16:43:58 +01:00
daniel-bryla
e138163c4f #502 Adjusted tests for logger introduction 2016-11-04 11:47:06 +01:00
daniel-bryla
0438811489 #502 Replaced usages of System.out with logger. 2016-10-23 19:59:03 +02:00
Slava Shchaurouski
0c56d800c5 Override annotation added
I think this is a typo
2016-03-26 15:22:33 +03:00
Joseph McCarthy
3d95696078 #358 Added license to all files using plugin 2016-01-27 22:20:42 +00:00
Tom.TH.Lin
bd83fa28bb Correct method name and cleanup etc folder #264 2016-01-07 00:34:33 +08:00
Tom.TH.Lin
30ca1ea1fb Decorator pattern: SmartTroll should be SmartHostile #264 2016-01-04 23:07:33 +08:00
Ilkka Seppala
5f033be54f Fix PMD violations #327 2015-12-27 21:21:57 +02:00
Jeroen Meulemeester
10a94cc91c Add proper unit tests for decorator pattern 2015-12-07 20:37:27 +01:00
Ankur Kaushal
449340bd2b Reformat business-delegate, callback, chain, command, composite, dao, decorator & dependency-injection patterns. 2015-11-01 18:48:43 -05:00
Ilkka Seppala
8cf35fc315 Improve Decorator Javadoc 2015-10-03 20:43:38 +03:00
Maxim Galushka
ec9af416ba #247 adding getAttackPower method to pattern decorator 2015-09-23 17:58:58 +01:00
Ilkka Seppala
10a911be54 #107 Decorator example JavaDoc 2015-08-18 22:10:57 +03:00
Ilkka Seppala
8524c75ba6 Changed package naming across all examples. 2015-05-31 11:55:18 +03:00
Ilkka Seppala
6301e0bc11 Added unit tests for each of the patterns. 2014-12-06 20:34:41 +02:00
Ilkka Seppala
9336284814 Improved decorator example. 2014-12-06 14:35:18 +02:00
Ilkka Seppala
10d4e3cadd Improved comments for decorator example. 2014-12-06 14:29:31 +02:00
matthew
3da9ad5469 Formatted all files to the same standard 2014-10-08 13:42:12 +01:00
Matthew
bde5b343d0 Just formatting App classes to be like the other class files on the project 2014-10-07 16:23:37 +01:00
Ilkka Seppala
1168f6e41f Updated decorator implementation and class diagram. Added comments. 2014-08-31 09:18:16 +03:00
Ilkka Seppala
e742950c19 added decorator sample 2014-08-13 21:45:19 +03:00