@@ -131,7 +131,7 @@ public abstract class Info extends BoxResource.Info {
131131 private Date modifiedAt ;
132132 private String description ;
133133 private long size ;
134- private List <BoxFolder > pathCollection ;
134+ private List <BoxFolder . Info > pathCollection ;
135135 private BoxUser .Info createdBy ;
136136 private BoxUser .Info modifiedBy ;
137137 private Date trashedAt ;
@@ -237,7 +237,7 @@ public long getSize() {
237237 * Gets the path of folders to the item, starting at the root.
238238 * @return the path of folders to the item.
239239 */
240- public List <BoxFolder > getPathCollection () {
240+ public List <BoxFolder . Info > getPathCollection () {
241241 return this .pathCollection ;
242242 }
243243
@@ -417,14 +417,15 @@ protected void parseJSONMember(JsonObject.Member member) {
417417 }
418418 }
419419
420- private List <BoxFolder > parsePathCollection (JsonObject jsonObject ) {
420+ private List <BoxFolder . Info > parsePathCollection (JsonObject jsonObject ) {
421421 int count = jsonObject .get ("total_count" ).asInt ();
422- List <BoxFolder > pathCollection = new ArrayList <BoxFolder >(count );
422+ List <BoxFolder . Info > pathCollection = new ArrayList <BoxFolder . Info >(count );
423423 JsonArray entries = jsonObject .get ("entries" ).asArray ();
424424 for (JsonValue value : entries ) {
425425 JsonObject entry = value .asObject ();
426426 String id = entry .get ("id" ).asString ();
427- pathCollection .add (new BoxFolder (getAPI (), id ));
427+ BoxFolder folder = new BoxFolder (getAPI (), id );
428+ pathCollection .add (folder .new Info (entry ));
428429 }
429430
430431 return pathCollection ;
0 commit comments