Sync Decorator to Java 25: H6 file labels, fix Main.java JDK-output mismatch, README mapping

This commit is contained in:
2026-06-24 14:39:15 +05:30
parent ad6a65a95d
commit d6df1fd013
9 changed files with 79 additions and 60 deletions

View File

@@ -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
}
}