mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-29 22:23:41 +00:00
Removed AvoidStarImport Rule
Added JavaDocType Rule
This commit is contained in:
@@ -22,6 +22,12 @@
|
||||
*/
|
||||
package com.iluwatar.delegation.simple;
|
||||
|
||||
/**
|
||||
* Delegator Class to delegate the implementation of the Printer.
|
||||
* This ensures two things:
|
||||
* - when the actual implementation of the Printer class changes the delegation will still be operational
|
||||
* - the actual benefit is observed when there are more than one implementors and they share a delegation control
|
||||
*/
|
||||
public class PrinterController implements Printer {
|
||||
|
||||
private final Printer printer;
|
||||
|
||||
Reference in New Issue
Block a user