Author: ggregory Date: Sun Aug 7 17:10:34 2011 New Revision: 1154729 URL: http://svn.apache.org/viewvc?rev=1154729&view=rev Log: Factor out constant answer in a singleton to save lots of memory on start up.
Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Rule.java Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Rule.java URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Rule.java?rev=1154729&r1=1154728&r2=1154729&view=diff ============================================================================== --- commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Rule.java (original) +++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Rule.java Sun Aug 7 17:10:34 2011 @@ -215,7 +215,7 @@ public class Rule { private static class TrueRMatcher implements RMatcher { - static TrueRMatcher INSTANCE = new TrueRMatcher(); + private static TrueRMatcher INSTANCE = new TrueRMatcher(); public boolean find() { return true;