Fix violation

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1385173 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2012-09-15 20:47:25 +00:00
parent 95fea9de64
commit 6b54b1a712
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public class UpdateLog implements PluginInfoInitialized {
return SyncLevel.FLUSH;
}
try{
return SyncLevel.valueOf(level.toUpperCase());
return SyncLevel.valueOf(level.toUpperCase(Locale.ROOT));
} catch(Exception ex){
log.warn("There was an error reading the SyncLevel - default to " + SyncLevel.FLUSH, ex);
return SyncLevel.FLUSH;