Skip to content

Commit

Permalink
HSEARCH-1938 DefaultDirectoryProviderService needs to use the platfor…
Browse files Browse the repository at this point in the history
…m neutral lowercase
  • Loading branch information
Sanne committed Jul 29, 2015
1 parent be8de4a commit a411f7b
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -6,6 +6,8 @@
*/
package org.hibernate.search.store.impl;

import java.util.Locale;

import org.hibernate.search.store.DirectoryProvider;
import org.hibernate.search.store.spi.BaseDirectoryProviderService;

Expand All @@ -23,7 +25,7 @@ public Class<? extends DirectoryProvider> getDefault() {

@Override
public String toFullyQualifiedClassName(String name) {
String maybeShortCut = name.toLowerCase();
String maybeShortCut = name.toLowerCase( Locale.ROOT );
if ( defaultProviderClasses.containsKey( maybeShortCut ) ) {
return defaultProviderClasses.get( maybeShortCut );
}
Expand Down

0 comments on commit a411f7b

Please sign in to comment.