db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Created: (DERBY-2920) Share code between readExternal() and readExternalFromArray()
Date Wed, 11 Jul 2007 08:01:04 GMT
Share code between readExternal() and readExternalFromArray()

                 Key: DERBY-2920
                 URL: https://issues.apache.org/jira/browse/DERBY-2920
             Project: Derby
          Issue Type: Improvement
          Components: Services, SQL
            Reporter: Knut Anders Hatlen
            Priority: Minor

Most of the implementations of DataValueDescriptor.readExternalFromArray(ArrayInputStream)
are identical to their corresponding Externalizable.readExternal(ObjectInput) methods. Since
ArrayInputStream implements ObjectInput, readExternalFromArray() could in those cases just
have forwarded calls to readExternal() instead of duplicating the code. A default forwarding
implementation of readExternalFromArray() could be placed in org.apache.derby.iapi.types.DataType,
and all the existing implementations, except those with optimizations for ArrayInputStream,
could be removed.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message