Phoenixasuga / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

Typo in Hello Analytics example #585

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client (e.g. 1.5.0-beta)?
1.10.3-beta

Describe the problem.
There's a typo in the hello analytics java code:
https://developers.google.com/analytics/resources/tutorials/hello-analytics-api

 private static void printResults(GaData results) {
    if (results != null &l;& !result.getRows().isEmpty()) {
      System.out.println("Profile Name: " + results.getProfileInfo().getProfileName());
      System.out.println("Total Visits: " + results.getRows()[0][0]);
    } else {
      System.out.println("No results found");
    }

How would you expect it to be fixed?
Instead of !result.getRows().isEmpty()
it is !results.getRows().isEmpty()

Original issue reported on code.google.com by anand...@gmail.com on 8 Aug 2012 at 12:39

GoogleCodeExporter commented 9 years ago
Reported it to the owners of the page.

Original comment by rmis...@google.com on 8 Aug 2012 at 12:48