Commit Graph

26 Commits

Author SHA1 Message Date
50467c9e76 Java 11 migration: patterns (t-v) (#1085)
* Moves visitor pattern to java 11

* Moves value-object pattern to java 11

* Moves unit-of-work pattern to java 11

* Moves typeobjectpattern pattern to java 11

* Moves twin pattern to java 11

* Moves trampoline pattern to java 11

* Moves tolerant-reader pattern to java 11

* Moves tls pattern to java 11

* Moves throttling pattern to java 11

* Moves thread-pool pattern to java 11

* Moves template-method pattern to java 11
2019-11-14 07:42:05 +02:00
3b1a28149b decrease number of checkstyle errors in singleton, strategy and visitor patterns #1021 (#1054)
* fix checkstlye errors - visitor pattern

* fix checkstlye errors - strategy pattern

* fix checkstlye errors - singleton pattern
2019-10-31 19:54:13 +02:00
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
c81c3ff1c7 Use local variable type inference (#995)
* "visitor" pattern: Use local variable type inference

Update "visitor" pattern with local variable type inference.

* "value-object" pattern: Use local variable type inference

Update "value-object" pattern with local variable type inference.

* "unit-of-work" pattern: Use local variable type inference

Update "value-object" pattern with local variable type inference.

* "typeobjectpattern" pattern: Use local variable type inference

Update "value-object" pattern with local variable type inference.
2019-10-21 08:09:29 +03:00
9ebbc421dd Update license headers 2019-10-12 20:05:54 +03:00
2aa9e78ddd Minor refactorings and code style changes (#807)
* Made minor changes in some patterns such as removed throws clause where not needed, changed incorrect order of arguments in assertEquals

* Minor refactorings and code style changes. 1) Removed several use of raw types 2) Removed unnecessary throws clauses 3) Used lambda expressions wherever applicable 4) Used apt assertion methods for readability 5) Use of try with resources wherever applicable 6) Corrected incorrect order of assertXXX arguments

* Removed unused import from Promise

* Addressed review comments

* Addressed checkstyle issue
2018-10-23 13:45:41 +05:30
6694d742a3 Migrate to JUnit5 2017-12-31 16:29:48 +09:00
09585c3874 Removed AvoidStarImport Rule
Added JavaDocType Rule
2017-03-22 01:16:02 +08:00
faa29f8025 Update license headers 2016-11-27 14:34:20 +02:00
e138163c4f #502 Adjusted tests for logger introduction 2016-11-04 11:47:06 +01:00
0438811489 #502 Replaced usages of System.out with logger. 2016-10-23 19:59:03 +02:00
df4a40fc13 squid:S1186 - Methods should not be empty 2016-02-03 21:51:40 +02:00
3d95696078 #358 Added license to all files using plugin 2016-01-27 22:20:42 +00:00
09d3a82884 Added tests for visitor pattern 2015-12-30 20:55:22 +01:00
5f033be54f Fix PMD violations #327 2015-12-27 21:21:57 +02:00
cec9a99410 Adjust checkstyle rules. Make checkstyle fail the build when violations are found. Correct all current checkstyle violations. 2015-12-25 23:49:28 +02:00
306b1f3d31 Reformat rest of the design patterns - Issue #224 2015-11-01 21:29:13 -05:00
d220a0753a #107 Improve JavaDoc for Visitor example 2015-08-21 23:27:25 +03:00
8524c75ba6 Changed package naming across all examples. 2015-05-31 11:55:18 +03:00
6e49fc01ab Improved comments on visitor pattern example. 2015-01-24 23:43:35 +02:00
6301e0bc11 Added unit tests for each of the patterns. 2014-12-06 20:34:41 +02:00
208a1168ac Removed TODO markers from visitor example. 2014-11-26 22:49:48 +02:00
3da9ad5469 Formatted all files to the same standard 2014-10-08 13:42:12 +01:00
bde5b343d0 Just formatting App classes to be like the other class files on the project 2014-10-07 16:23:37 +01:00
9a0bb6b0fe Added comments for the visitor example. 2014-08-31 11:35:08 +03:00
19554d2329 added visitor pattern sample 2014-08-23 18:45:55 +03:00