File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
odfdom/src/main/java/org/odftoolkit/odfdom/doc/table Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2424import java .util .Calendar ;
2525import java .util .Date ;
2626import java .util .List ;
27+ import java .util .Objects ;
2728import java .util .logging .Level ;
2829import java .util .logging .Logger ;
2930import org .odftoolkit .odfdom .doc .OdfDocument ;
@@ -508,10 +509,8 @@ public TableTableCellElementBase getOdfElement() {
508509 */
509510 public String getCurrencyCode () {
510511 String t = mCellElement .getOfficeValueTypeAttribute ();
511- if (t == null ) {
512- LOG .log (Level .WARNING ,"@office:value-type attribute was expected to be set!" );
513- } else if (!t .equals (OfficeValueTypeAttribute .Value .CURRENCY .toString ())) {
514- LOG .log (Level .WARNING ,"@office:value-type attribute expected to be of type CURRENCY!" );
512+ if (!Objects .equals (t , OfficeValueTypeAttribute .Value .CURRENCY .toString ())) {
513+ LOG .log (Level .WARNING ,"@office:value-type attribute expected to be of type CURRENCY but was {0}" , t );
515514 }
516515 return mCellElement .getOfficeCurrencyAttribute ();
517516 }
You can’t perform that action at this time.
0 commit comments