Skip to content

Commit

Permalink
quick fix for performance degradation due to some overlooked code
Browse files Browse the repository at this point in the history
  • Loading branch information
jzell committed Sep 19, 2015
1 parent 635bb1f commit 8d0447b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private NormalizationManager(String language) {
* @return singleton instance of NormalizationManager
*/
public static NormalizationManager getInstance(Language language) {
if(!instances.containsKey(language)) {
if(!instances.containsKey(language.getName())) {
NormalizationManager nm = new NormalizationManager(language.getResourceFolder());
instances.put(language.getName(), nm);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private RePatternManager(String language) {
* @return singleton instance of RePatternManager
*/
public static RePatternManager getInstance(Language language) {
if(!instances.containsKey(language)) {
if(!instances.containsKey(language.getName())) {
RePatternManager nm = new RePatternManager(language.getResourceFolder());
instances.put(language.getName(), nm);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected RuleManager(String language) {
* @return singleton instance of RuleManager
*/
public static RuleManager getInstance(Language language) {
if(!instances.containsKey(language)) {
if(!instances.containsKey(language.getName())) {
RuleManager nm = new RuleManager(language.getResourceFolder());
instances.put(language.getName(), nm);
}
Expand Down

0 comments on commit 8d0447b

Please sign in to comment.