https://issues.apache.org/bugzilla/show_bug.cgi?id=55330

            Bug ID: 55330
           Summary: Enhance Type Safety of org.apache.poi.ss.usermodel
                    Interface APIs
           Product: POI
           Version: 3.9
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: POI Overall
          Assignee: [email protected]
          Reporter: [email protected]

(Filed under POI Overall component as this applies to the user model shared by
both HSSF and XSSF)

There are various API definitions in interfaces from the
org.apache.poi.ss.usermodel package which could be made significantly more
type-safe by replacing short/int arguments with various Java enumerations. Some
of these methods have been type safe for particular implementations in a way
which could be expanded to include both implementations (both meaning the xssf
and hssf implementations of the interfaces)

The most prominent example(s) of this are (all from the
org.apache.poi.ss.usermodel package):

- Cell
   - get/setCellType
- CellStyle
   - get/setAlignment
   - get/setVerticalAlignment
   - get/setBorderLeft
   - get/setBorderRight
   - get/setBorderTop
   - get/setBorderBottom
   - get/setFillPattern
Font
   - get/setTypeOffset
   - get/setUnderline
   - get/setCharSet
   - get/setBoldweight
Sheet
   - get/setMargin

The proposal for this enhancement is to create/fully utilize enumerations for
the various sets of numeric constants which are meant to be used with these
methods to create alternate APIs, and to deprecate the APIs which are not type
safe in favor of the new ones.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to