Skip to content

Commit c74687e

Browse files
committed
Factor out constant answer in a singleton to save lots of memory on start up.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1154729 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2ba6771 commit c74687e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/java/org/apache/commons/codec/language/bm

src/java/org/apache/commons/codec/language/bm/Rule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public static interface RMatcher {
215215

216216
private static class TrueRMatcher implements RMatcher {
217217

218-
static TrueRMatcher INSTANCE = new TrueRMatcher();
218+
private static TrueRMatcher INSTANCE = new TrueRMatcher();
219219

220220
public boolean find() {
221221
return true;

0 commit comments

Comments
 (0)