OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 73 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 73 Rev 174
Line 67... Line 67...
67
    public String format(Object o, CellStyle defaultStyle, boolean lenient) {
67
    public String format(Object o, CellStyle defaultStyle, boolean lenient) {
68
        final Duration d = o instanceof Calendar ? TimeUtils.timePartToDuration((Calendar) o) : (Duration) o;
68
        final Duration d = o instanceof Calendar ? TimeUtils.timePartToDuration((Calendar) o) : (Duration) o;
69
        final Namespace numberNS = this.getElement().getNamespace();
69
        final Namespace numberNS = this.getElement().getNamespace();
70
        final StringBuilder sb = new StringBuilder();
70
        final StringBuilder sb = new StringBuilder();
71
 
71
 
72
        final Locale styleLocale = DateStyle.getLocale(getElement());
72
        final Locale styleLocale = this.getLocale();
73
        final boolean truncate = StyleProperties.parseBoolean(getElement().getAttributeValue("truncate-on-overflow", numberNS), true);
73
        final boolean truncate = StyleProperties.parseBoolean(getElement().getAttributeValue("truncate-on-overflow", numberNS), true);
74
        @SuppressWarnings("unchecked")
74
        @SuppressWarnings("unchecked")
75
        final List<Element> children = this.getElement().getChildren();
75
        final List<Element> children = this.getElement().getChildren();
76
        for (final Element elem : children) {
76
        for (final Element elem : children) {
77
            if (elem.getNamespace().equals(numberNS)) {
77
            if (elem.getNamespace().equals(numberNS)) {