-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make CodeWriters intercept Object instead of String
This commit makes CodeWriter section interceptors deal with Object instead of String. This allows for the toString() method of the intercepted text to be wrapped by classes that extend from CodeWriter in order to determine if any side effects from the original content should take effect or be discarded. The general idea is that if toString() was called on the original content of an intercepted section, then original contents are also going to be written to the CodeWriter, meaning any side effects should also occur (for example, adding imports).
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters