aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hugh...@apache.org
Subject svn commit: r1477840 - /aries/trunk/samples/twitter/twitter-bundle/src/main/java/org/apache/aries/sample/twitter/TwitterQuery.java
Date Tue, 30 Apr 2013 21:35:31 GMT
Author: hughesj
Date: Tue Apr 30 21:35:31 2013
New Revision: 1477840

URL: http://svn.apache.org/r1477840
Log:
ARIES-1060 Java 7 compile problem with twitter sample

Modified:
    aries/trunk/samples/twitter/twitter-bundle/src/main/java/org/apache/aries/sample/twitter/TwitterQuery.java

Modified: aries/trunk/samples/twitter/twitter-bundle/src/main/java/org/apache/aries/sample/twitter/TwitterQuery.java
URL: http://svn.apache.org/viewvc/aries/trunk/samples/twitter/twitter-bundle/src/main/java/org/apache/aries/sample/twitter/TwitterQuery.java?rev=1477840&r1=1477839&r2=1477840&view=diff
==============================================================================
--- aries/trunk/samples/twitter/twitter-bundle/src/main/java/org/apache/aries/sample/twitter/TwitterQuery.java
(original)
+++ aries/trunk/samples/twitter/twitter-bundle/src/main/java/org/apache/aries/sample/twitter/TwitterQuery.java
Tue Apr 30 21:35:31 2013
@@ -42,7 +42,7 @@ public class TwitterQuery implements Bun
 			QueryResult result = twitter.search(query);
 		    List<Tweet> tweets = result.getTweets(); 
 		    System.out.println("hits:" + tweets.size());
-		    for (Tweet tweet : result.getTweets()) {
+		    for (Tweet tweet : tweets) {
 		        System.out.println(tweet.getFromUser() + ":" + StringEscapeUtils.unescapeXml(tweet.getText()));
 		    }
 		} catch (Exception e) {



Mime
View raw message