Skip to content

Commit

Permalink
Upgrade Guava to 33.0.0-jre
Browse files Browse the repository at this point in the history
Summary: [BizSDK][Java] Upgrade Guava to 33.0.0-jre

Reviewed By: rafaelsbatista

Differential Revision: D54516515

fbshipit-source-id: 6504b1665166c4520e3970154bb5c23a5dd3c2c7
  • Loading branch information
stcheng authored and facebook-github-bot committed Mar 5, 2024
1 parent 4d3173d commit dc1a722
Show file tree
Hide file tree
Showing 496 changed files with 2,868 additions and 1,187 deletions.
1 change: 0 additions & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,5 @@
<artifactId>guava</artifactId>
<version>20.0</version>
</dependency>

</dependencies>
</project>
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>20.0</version>
<version>33.0.0-jre</version>
</dependency>
<dependency>
<groupId>com.squareup.okio</groupId>
Expand Down
7 changes: 5 additions & 2 deletions src/main/java/com/facebook/ads/sdk/APIRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.MoreExecutors;
import com.google.common.util.concurrent.SettableFuture;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
Expand Down Expand Up @@ -146,7 +147,8 @@ public APIResponse apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down Expand Up @@ -227,7 +229,8 @@ public void onSuccess(ResponseWrapper result) {
}
public void onFailure(Throwable t) {
}
}
},
MoreExecutors.directExecutor()
);
} catch(IOException e) {
throw new APIException.FailedRequestException(e);
Expand Down
40 changes: 27 additions & 13 deletions src/main/java/com/facebook/ads/sdk/Ad.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.google.common.base.Function;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.MoreExecutors;
import com.google.common.util.concurrent.SettableFuture;
import com.google.gson.JsonObject;
import com.google.gson.JsonArray;
Expand Down Expand Up @@ -649,7 +650,8 @@ public APINodeList<AdCreative> apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down Expand Up @@ -1217,7 +1219,8 @@ public Ad apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down Expand Up @@ -1350,7 +1353,8 @@ public APINodeList<AdRule> apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down Expand Up @@ -1574,7 +1578,8 @@ public APINodeList<Ad> apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down Expand Up @@ -1976,7 +1981,8 @@ public Ad apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down Expand Up @@ -2124,7 +2130,8 @@ public APINodeList<AdsInsights> apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down Expand Up @@ -2426,7 +2433,8 @@ public AdReportRun apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down Expand Up @@ -2726,7 +2734,8 @@ public APINodeList<Lead> apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down Expand Up @@ -2979,7 +2988,8 @@ public APINodeList<AdPreview> apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down Expand Up @@ -3210,7 +3220,8 @@ public APINodeList<TargetingSentenceLine> apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down Expand Up @@ -3335,7 +3346,8 @@ public APINode apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down Expand Up @@ -3481,7 +3493,8 @@ public Ad apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down Expand Up @@ -3906,7 +3919,8 @@ public Ad apply(ResponseWrapper result) {
throw new RuntimeException(e);
}
}
}
},
MoreExecutors.directExecutor()
);
};

Expand Down
Loading

0 comments on commit dc1a722

Please sign in to comment.