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

            Bug ID: 63805
           Summary: RFE: Leverage language features introduced in Java 8,
                    remove use of deprecated methods
           Product: POI
           Version: 4.0.x-dev
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POI Overall
          Assignee: dev@poi.apache.org
          Reporter: a...@dua3.com
  Target Milestone: ---

While I still have time working on POI, I'd like to contribute patches to
update the codebase to take advantage of features introduced in Java 8 and
replace parts of the code that use deprecated methods.

I would do so in a way that does not change semantics or behaviour (other than
hopefully positive impact on performance). Examples I have seen in the code
are:

- use of StringBuffer instead of StringBuilder
- Map lookup and get/put in two steps which can be done in a single operation
since in the meantime computeIfAbsent() and other methods were introduced
- toArray() with an argument of T[0] (I know it's faster than pre-allocating an
array with the correct size, but now we can pass a method reference to the
array constructor instead which is even faster and puts less stress on the GC)
- places where single operation collection creation could be used, i.e.
List.of() for creating an immutable list

and many more.

If I get a positive feedback, I'll create patches and collect them here (or
pull requests if github mirroring works again soon).

-- 
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