Skip to content

Commit

Permalink
MMI-1622: modified Property constructors to use the agnostic Locale.ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
Draško Kokić authored and Christian Bauer committed Jan 21, 2014
1 parent 9c61ed1 commit 78608fe
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;

/**
* @author Christian Bauer
Expand All @@ -47,12 +48,12 @@ protected Property(String descriptorName) {

protected Property(V value, String descriptorName) {
this.value = value;
this.descriptorName = descriptorName == null ? getClass().getSimpleName().toLowerCase() : descriptorName;
this.descriptorName = descriptorName == null ? getClass().getSimpleName().toLowerCase(Locale.ROOT) : descriptorName;
}

protected Property(V value, String descriptorName, List<Property<DIDLAttribute>> attributes) {
this.value = value;
this.descriptorName = descriptorName == null ? getClass().getSimpleName().toLowerCase() : descriptorName;
this.descriptorName = descriptorName == null ? getClass().getSimpleName().toLowerCase(Locale.ROOT) : descriptorName;
this.attributes.addAll(attributes);
}

Expand Down

0 comments on commit 78608fe

Please sign in to comment.