Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8163517

Various cleanup in java.io code

    XMLWordPrintable

    Details

      Description

      A cleanup pass over code under src/java.base/share/classes/java/io:

      - special handling of a null arg can be replaced with using String.valueOf()
      - in ObjectInput[Output]Stream checking/putting into map can be replaced with a single call to computeIfAbsent();
      - in ObjectStreamClass.getPackageName() one call to String.substing() can be avoided;

      and a few other cleanups.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              igerasim Ivan Gerasimov
              Reporter:
              igerasim Ivan Gerasimov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: