Closed GoogleCodeExporter closed 9 years ago
It looks like the sample you are using was built using an old version of the
library.
The above will compile with 1.9.0-beta if you change
HttpResponse.isSuccessStatusCode(code) to HttpStatusCodes.isSuccess(code)
Original comment by rmis...@google.com
on 21 May 2012 at 2:42
The libraries I am using are the ones that came with the v1.9.0 download. Here
are the results of your suggested change:
./structuredcontent_public/src/java/com/google/api/client/sample/structuredconte
nt/batchinsert/WorkerThread.java:211: cannot find symbol
symbol : variable HttpStatusCodes
location: class
com.google.api.client.sample.structuredcontent.batchinsert.WorkerThread
if (HttpStatusCodes.isSuccess(response.getStatusCode())) {
^
./structuredcontent_public/src/java/com/google/api/client/sample/structuredconte
nt/batchinsert/WorkerThread.java:262: cannot find symbol
symbol : variable HttpStatusCodes
location: class
com.google.api.client.sample.structuredcontent.batchinsert.WorkerThread
if (!HttpStatusCodes.isSuccess(p.batchStatus.code)) {
^
2 errors
./structuredcontent_public/src/java/com/google/api/client/sample/structuredconte
nt/batchdelete/BatchDeleteSample.java:206: cannot find symbol
symbol : variable HttpStatusCodes
location: class
com.google.api.client.sample.structuredcontent.batchdelete.BatchDeleteSample
if (HttpStatusCodes.isSuccess(response.getStatusCode())) {
^
./structuredcontent_public/src/java/com/google/api/client/sample/structuredconte
nt/batchdelete/BatchDeleteSample.java:237: cannot find symbol
symbol : variable HttpStatusCodes
location: class
com.google.api.client.sample.structuredcontent.batchdelete.BatchDeleteSample
if (!HttpStatusCodes.isSuccess(p.batchStatus.code)) {
^
2 errors
Phil
Original comment by philmo...@yahoo.com
on 22 May 2012 at 4:55
You are missing an import:
import com.google.api.client.http.HttpStatusCodes;
Original comment by rmis...@google.com
on 22 May 2012 at 4:59
Works...!
Many Thanks....
Phil
Original comment by philmo...@yahoo.com
on 22 May 2012 at 5:16
Original issue reported on code.google.com by
philmo...@yahoo.com
on 20 May 2012 at 2:23