Author: emuckenhuber
Date: 2007-11-30 04:27:05 -0500 (Fri, 30 Nov 2007)
New Revision: 9214
Modified:
branches/JBoss_Portal_Branch_2_6/widget/src/main/org/jboss/portal/widget/google/provider/GGQueryResultBuilder.java
Log:
quick-and-dirty workarounded google directory lookup bug
Modified:
branches/JBoss_Portal_Branch_2_6/widget/src/main/org/jboss/portal/widget/google/provider/GGQueryResultBuilder.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/widget/src/main/org/jboss/portal/widget/google/provider/GGQueryResultBuilder.java 2007-11-30
07:09:29 UTC (rev 9213)
+++
branches/JBoss_Portal_Branch_2_6/widget/src/main/org/jboss/portal/widget/google/provider/GGQueryResultBuilder.java 2007-11-30
09:27:05 UTC (rev 9214)
@@ -112,7 +112,7 @@
throw new WidgetException("Cannot retrieve url: " + url);
}
- String string = new String(bytes);
+ String string = new String(bytes).replace("Fun & Games", "Fun
& Games");
List data = null;
@@ -122,7 +122,8 @@
ObjectModelFactory factory = new GGWidgetDirectoryFactory();
// let the object model factory to create an instance of List and populate it
with data from XML
- data = (List)unmarshaller.unmarshal(new
ByteArrayInputStream(string.getBytes("UTF-8")), factory, null);
+ data = (List) unmarshaller.unmarshal(new
ByteArrayInputStream(string.getBytes("UTF-8")), factory, null);
+
List entries = new ArrayList();
for (Iterator iterator = data.iterator(); iterator.hasNext();)
Show replies by date