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

Various cleanup in java.io code

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: