File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
main/java/com/github/pjfanning/xlsx/impl
test/java/com/github/pjfanning/xlsx Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -340,6 +340,11 @@ public LocalDateTime getLocalDateTimeCellValue() {
340
340
return rawContents == null ? null : DateUtil .getLocalDateTime (getNumericCellValue (), use1904Dates );
341
341
}
342
342
343
+ @ Override
344
+ public CellAddress getAddress () {
345
+ return new CellAddress (this );
346
+ }
347
+
343
348
/* Not supported */
344
349
345
350
/**
@@ -460,14 +465,6 @@ public void setAsActiveCell() {
460
465
throw new NotSupportedException ("update operations are not supported" );
461
466
}
462
467
463
- /**
464
- * Not supported
465
- */
466
- @ Override
467
- public CellAddress getAddress () {
468
- throw new NotSupportedException ();
469
- }
470
-
471
468
/**
472
469
* Update operations are not supported
473
470
*/
Original file line number Diff line number Diff line change @@ -643,6 +643,8 @@ public void testIteration() throws Exception {
643
643
for (Cell c : r ) {
644
644
assertNotNull ("cell row is set" , c .getRow ());
645
645
assertEquals (r , c .getRow ());
646
+ assertNotNull ("cell address is set" , c .getAddress ());
647
+ assertEquals (r .getRowNum (), c .getAddress ().getRow ());
646
648
}
647
649
}
648
650
}
You can’t perform that action at this time.
0 commit comments