This change updates DocumentUtil to be entirely a static utility class. The reason that this was originally non-static was due to the use of its _transparentColorPattern field, which was stored to cache the regex. However, this can just as easily be assigned to the class itself for the same functionality. This simplifies the class API quite a bit and will no longer require instantiating and sharing instances across various classes.
This change updates
DocumentUtil
to be entirely a static utility class. The reason that this was originally non-static was due to the use of its_transparentColorPattern
field, which was stored to cache the regex. However, this can just as easily be assigned to the class itself for the same functionality. This simplifies the class API quite a bit and will no longer require instantiating and sharing instances across various classes.