You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <de...@db.apache.org> on 2006/04/17 23:59:17 UTC
[jira] Created: (DERBY-1224) Remove unused variables in
DatabaseMetaData
Remove unused variables in DatabaseMetaData
-------------------------------------------
Key: DERBY-1224
URL: http://issues.apache.org/jira/browse/DERBY-1224
Project: Derby
Type: Improvement
Components: JDBC, Network Client, Performance
Versions: 10.2.0.0
Reporter: Knut Anders Hatlen
Assigned to: Knut Anders Hatlen
Priority: Minor
org.apache.derby.client.am.DatabaseMetaData has a number of instance
variables which don't seem to have any purpose:
lastGetColumnPrivilegesResultSet_
lastGetColumnsResultSet_
lastGetForeignKeysResultSet_
lastGetPrimaryKeysResultSet_
lastGetProcedureColumnsResultSet_
lastGetProceduresResultSet_
lastGetSpecialColumnsResultSet_
lastGetStatisticsResultSet_
lastGetTablePrivilegesResultSet_
lastGetTablesResultSet_
lastGetUDTsResultSet_
lastGetTypeInfoResultSet_
lastGetAttrResultSet_
lastGetSuperTypesResultSet_
lastGetSuperTablesResultSet_
Each lastGetXXXResultSet_ variable is set when the corresponding
getXXX method is invoked. However, the variables are never read, so
they could just as well be removed. Removing them will reduce the
memory footprint.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (DERBY-1224) Remove unused variables in
DatabaseMetaData
Posted by "Knut Anders Hatlen (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-1224?page=all ]
Knut Anders Hatlen updated DERBY-1224:
--------------------------------------
Derby Info: [Patch Available]
> Remove unused variables in DatabaseMetaData
> -------------------------------------------
>
> Key: DERBY-1224
> URL: http://issues.apache.org/jira/browse/DERBY-1224
> Project: Derby
> Type: Improvement
> Components: JDBC, Network Client, Performance
> Versions: 10.2.0.0
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Minor
> Attachments: derby-1224-v1.diff, derby-1224-v1.stat
>
> org.apache.derby.client.am.DatabaseMetaData has a number of instance
> variables which don't seem to have any purpose:
> lastGetColumnPrivilegesResultSet_
> lastGetColumnsResultSet_
> lastGetForeignKeysResultSet_
> lastGetPrimaryKeysResultSet_
> lastGetProcedureColumnsResultSet_
> lastGetProceduresResultSet_
> lastGetSpecialColumnsResultSet_
> lastGetStatisticsResultSet_
> lastGetTablePrivilegesResultSet_
> lastGetTablesResultSet_
> lastGetUDTsResultSet_
> lastGetTypeInfoResultSet_
> lastGetAttrResultSet_
> lastGetSuperTypesResultSet_
> lastGetSuperTablesResultSet_
> Each lastGetXXXResultSet_ variable is set when the corresponding
> getXXX method is invoked. However, the variables are never read, so
> they could just as well be removed. Removing them will reduce the
> memory footprint.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (DERBY-1224) Remove unused variables in
DatabaseMetaData
Posted by "Knut Anders Hatlen (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-1224?page=all ]
Knut Anders Hatlen updated DERBY-1224:
--------------------------------------
Attachment: derby-1224-v1.diff
derby-1224-v1.stat
The attached patch removes the unused variables in
DatabaseMetaData. Derbyall passed on Sun JVM 1.5 (Solaris 10
x86). Please review.
> Remove unused variables in DatabaseMetaData
> -------------------------------------------
>
> Key: DERBY-1224
> URL: http://issues.apache.org/jira/browse/DERBY-1224
> Project: Derby
> Type: Improvement
> Components: JDBC, Network Client, Performance
> Versions: 10.2.0.0
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Minor
> Attachments: derby-1224-v1.diff, derby-1224-v1.stat
>
> org.apache.derby.client.am.DatabaseMetaData has a number of instance
> variables which don't seem to have any purpose:
> lastGetColumnPrivilegesResultSet_
> lastGetColumnsResultSet_
> lastGetForeignKeysResultSet_
> lastGetPrimaryKeysResultSet_
> lastGetProcedureColumnsResultSet_
> lastGetProceduresResultSet_
> lastGetSpecialColumnsResultSet_
> lastGetStatisticsResultSet_
> lastGetTablePrivilegesResultSet_
> lastGetTablesResultSet_
> lastGetUDTsResultSet_
> lastGetTypeInfoResultSet_
> lastGetAttrResultSet_
> lastGetSuperTypesResultSet_
> lastGetSuperTablesResultSet_
> Each lastGetXXXResultSet_ variable is set when the corresponding
> getXXX method is invoked. However, the variables are never read, so
> they could just as well be removed. Removing them will reduce the
> memory footprint.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (DERBY-1224) Remove unused variables in
DatabaseMetaData
Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dag H. Wanvik updated DERBY-1224:
---------------------------------
Derby Categories: [Performance]
> Remove unused variables in DatabaseMetaData
> -------------------------------------------
>
> Key: DERBY-1224
> URL: https://issues.apache.org/jira/browse/DERBY-1224
> Project: Derby
> Issue Type: Improvement
> Components: JDBC, Network Client
> Affects Versions: 10.2.1.6
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Minor
> Fix For: 10.2.1.6
>
> Attachments: derby-1224-v1.diff, derby-1224-v1.stat
>
>
> org.apache.derby.client.am.DatabaseMetaData has a number of instance
> variables which don't seem to have any purpose:
> lastGetColumnPrivilegesResultSet_
> lastGetColumnsResultSet_
> lastGetForeignKeysResultSet_
> lastGetPrimaryKeysResultSet_
> lastGetProcedureColumnsResultSet_
> lastGetProceduresResultSet_
> lastGetSpecialColumnsResultSet_
> lastGetStatisticsResultSet_
> lastGetTablePrivilegesResultSet_
> lastGetTablesResultSet_
> lastGetUDTsResultSet_
> lastGetTypeInfoResultSet_
> lastGetAttrResultSet_
> lastGetSuperTypesResultSet_
> lastGetSuperTablesResultSet_
> Each lastGetXXXResultSet_ variable is set when the corresponding
> getXXX method is invoked. However, the variables are never read, so
> they could just as well be removed. Removing them will reduce the
> memory footprint.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (DERBY-1224) Remove unused variables in
DatabaseMetaData
Posted by "Knut Anders Hatlen (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-1224?page=all ]
Knut Anders Hatlen closed DERBY-1224:
-------------------------------------
Fix Version: 10.2.0.0
Resolution: Fixed
Committed revision 394861.
> Remove unused variables in DatabaseMetaData
> -------------------------------------------
>
> Key: DERBY-1224
> URL: http://issues.apache.org/jira/browse/DERBY-1224
> Project: Derby
> Type: Improvement
> Components: JDBC, Network Client, Performance
> Versions: 10.2.0.0
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Minor
> Fix For: 10.2.0.0
> Attachments: derby-1224-v1.diff, derby-1224-v1.stat
>
> org.apache.derby.client.am.DatabaseMetaData has a number of instance
> variables which don't seem to have any purpose:
> lastGetColumnPrivilegesResultSet_
> lastGetColumnsResultSet_
> lastGetForeignKeysResultSet_
> lastGetPrimaryKeysResultSet_
> lastGetProcedureColumnsResultSet_
> lastGetProceduresResultSet_
> lastGetSpecialColumnsResultSet_
> lastGetStatisticsResultSet_
> lastGetTablePrivilegesResultSet_
> lastGetTablesResultSet_
> lastGetUDTsResultSet_
> lastGetTypeInfoResultSet_
> lastGetAttrResultSet_
> lastGetSuperTypesResultSet_
> lastGetSuperTablesResultSet_
> Each lastGetXXXResultSet_ variable is set when the corresponding
> getXXX method is invoked. However, the variables are never read, so
> they could just as well be removed. Removing them will reduce the
> memory footprint.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (DERBY-1224) Remove unused variables in
DatabaseMetaData
Posted by "Bryan Pendleton (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-1224?page=comments#action_12374836 ]
Bryan Pendleton commented on DERBY-1224:
----------------------------------------
I'm all in favor of removing unused code. I think this is a good change.
> Remove unused variables in DatabaseMetaData
> -------------------------------------------
>
> Key: DERBY-1224
> URL: http://issues.apache.org/jira/browse/DERBY-1224
> Project: Derby
> Type: Improvement
> Components: JDBC, Network Client, Performance
> Versions: 10.2.0.0
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Minor
> Attachments: derby-1224-v1.diff, derby-1224-v1.stat
>
> org.apache.derby.client.am.DatabaseMetaData has a number of instance
> variables which don't seem to have any purpose:
> lastGetColumnPrivilegesResultSet_
> lastGetColumnsResultSet_
> lastGetForeignKeysResultSet_
> lastGetPrimaryKeysResultSet_
> lastGetProcedureColumnsResultSet_
> lastGetProceduresResultSet_
> lastGetSpecialColumnsResultSet_
> lastGetStatisticsResultSet_
> lastGetTablePrivilegesResultSet_
> lastGetTablesResultSet_
> lastGetUDTsResultSet_
> lastGetTypeInfoResultSet_
> lastGetAttrResultSet_
> lastGetSuperTypesResultSet_
> lastGetSuperTablesResultSet_
> Each lastGetXXXResultSet_ variable is set when the corresponding
> getXXX method is invoked. However, the variables are never read, so
> they could just as well be removed. Removing them will reduce the
> memory footprint.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira