https://bz.apache.org/bugzilla/show_bug.cgi?id=59264

--- Comment #4 from Javen O'Neal <one...@apache.org> ---
Implemented in r1737751, r1737752, r1737879, r1737884, r1737885, r1737886

Backwards-incompatible changes:
* Change: BorderStyle.MEDIUM_DASH_DOT_DOTC renamed to MEDIUM_DASH_DOT_DOT
  Affected classes:
    o.a.p.ss.usermodel.BorderStyle
* Change: getBorderX returns BorderStyle instead of short.
  Affected classes:
    o.a.p.hssf.usermodel.HSSFBorderFormatting
    o.a.p.hssf.usermodel.HSSFCellStyle
    o.a.p.ss.usermodel.BorderFormatting
    o.a.p.ss.usermodel.BorderStyle
    o.a.p.ss.usermodel.CellStyle
    o.a.p.xssf.usermodel.XSSFBorderFormatting
    o.a.p.xssf.usermodel.XSSFCellStyle

Deprecated features (will be removed in a future release):
* Change: short BORDER_* constants deprecated. Use BorderStyle enum values
instead.
  Affected classes:
    o.a.p.ss.usermodel.BorderFormatting
    o.a.p.ss.usermodel.CellStyle
* Change: setBorderX(short) deprecated. Use setBorderX(BorderStyle) instead.
  Affected classes:
    o.a.p.hssf.usermodel.HSSFBorderFormatting
    o.a.p.hssf.usermodel.HSSFCellStyle
    o.a.p.ss.usermodel.BorderFormatting
    o.a.p.ss.usermodel.BorderStyle
    o.a.p.ss.usermodel.CellStyle
    o.a.p.xssf.usermodel.XSSFBorderFormatting
    o.a.p.xssf.usermodel.XSSFCellStyle
* Change: getBorderLeftEnum deprecated. Use getBorderLeft instead.
  Affected classes:
    o.a.p.xssf.usermodel.XSSFCellStyle
* Change: CellUtil.getFormatProperties/setFormatProperties operate on
BorderStyle enums instead of shorts for border line styles
  Affected classes:
    o.a.p.ss.util.CellUtil
  Side-note: This deprecation warning is inside a private method. How do I
alert developers that setting BorderStyles with short/Short will be deprecated
besides raising an runtime ClassCastException when BorderStyles become
required?

Per comment 1, BaseTestBorderStyle [1] tests to make sure that HAIR and DOTTED
enums are as expected. HAIR is smaller dots than DOTTED. Anyone wondering what
each border style looks like can open test-data/spreadsheet/59264.xls or
59264.xlsx.

[1]
https://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestBorderStyle.java?view=markup&pathrev=1737879

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to