Author: chris.laprun(a)jboss.com
Date: 2008-06-13 11:42:20 -0400 (Fri, 13 Jun 2008)
New Revision: 11048
Modified:
modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/google/GoogleClippingPortlet.java
Log:
- Minor refactoring.
Modified:
modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/google/GoogleClippingPortlet.java
===================================================================
---
modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/google/GoogleClippingPortlet.java 2008-06-13
15:36:55 UTC (rev 11047)
+++
modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/google/GoogleClippingPortlet.java 2008-06-13
15:42:20 UTC (rev 11048)
@@ -80,14 +80,14 @@
int begIndex = html.indexOf(beg);
if (begIndex != -1)
{
- html = process(renderResponse, html, beg, end, begIndex);
+ html = process(html, beg, end, begIndex);
}
else
{
begIndex = html.indexOf(alternateBeg);
if (begIndex != -1)
{
- html = process(renderResponse, html, alternateBeg, end, begIndex);
+ html = process(html, alternateBeg, end, begIndex);
}
else
{
@@ -100,8 +100,7 @@
printWriter.print(html);
}
- private String process(RenderResponse renderResponse, String html, String beg, String
end, int begIndex)
- throws IOException
+ private String process(String html, String beg, String end, int begIndex) throws
IOException
{
// extract table containing specific first result
int endIndex = html.indexOf(end, begIndex);
Show replies by date