Sync Decorator to Java 25: H6 file labels, fix Main.java JDK-output mismatch, README mapping
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
package decorator;
|
||||
|
||||
/**
|
||||
* Concrete Component — the base object being decorated.
|
||||
* Does nothing special: just returns the text as-is.
|
||||
* All decorators wrap this (or other decorators on top of it).
|
||||
* Concrete Component — the starting point for decoration.
|
||||
* Returns text unchanged. Decorators wrap around this
|
||||
* and transform the result one layer at a time.
|
||||
*/
|
||||
public class PlainTextProcessor implements TextProcessor {
|
||||
|
||||
@Override
|
||||
public String process(String text) {
|
||||
return text; // base: no transformation
|
||||
return text; // no transformation — base case
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user