From: <ms...@us...> - 2010-01-04 15:26:22
|
Revision: 10456 http://wonder.svn.sourceforge.net/wonder/?rev=10456&view=rev Author: mschrag Date: 2010-01-04 15:26:15 +0000 (Mon, 04 Jan 2010) Log Message: ----------- WONDER-429 ERXAdapterChannelDelegate strongly typed lastStatements Modified Paths: -------------- trunk/Wonder/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/ERXAdaptorChannelDelegate.java Modified: trunk/Wonder/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/ERXAdaptorChannelDelegate.java =================================================================== --- trunk/Wonder/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/ERXAdaptorChannelDelegate.java 2010-01-04 15:24:48 UTC (rev 10455) +++ trunk/Wonder/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/ERXAdaptorChannelDelegate.java 2010-01-04 15:26:15 UTC (rev 10456) @@ -77,7 +77,7 @@ if (this.collectLastStatements()) { // this collects the last 10 statements executed for dumping them if (_lastStatements == null) { - _lastStatements = new LinkedList(); + _lastStatements = new LinkedList<String>(); } _lastStatements.addLast(ERXEOAccessUtilities.createLogString(channel, expression, System.currentTimeMillis() - _lastMilliseconds)); @@ -139,15 +139,16 @@ log.info("You have to set the property 'er.extensions.ERXSQLExpressionTracker.collectLastStatements = true'. to make this feature work."); } } - _lastStatements = new LinkedList(); + _lastStatements = new LinkedList<String>(); log.info("************************************************"); } /** * Return the last collected SQL statements * @author cug - Jun 20, 2007 + * @return The last collected SQL statements. */ - public LinkedList lastStatements () { + public LinkedList<String> lastStatements () { return this._lastStatements; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |