Skip to content

Commit

Permalink
fix: vulnerable dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Sep 24, 2024
1 parent 71b20e3 commit c96cacb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
9 changes: 1 addition & 8 deletions dependency-check-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@
Below vulnerabilities are from outdated Protocol Buffers which is the dependency of Error Prone.
This will not affect our code.
-->
<vulnerabilityName>CVE-2022-3171</vulnerabilityName>
<vulnerabilityName>CVE-2022-3509</vulnerabilityName>
<vulnerabilityName>CVE-2022-3510</vulnerabilityName>
<vulnerabilityName>CVE-2023-2976</vulnerabilityName>
<!--
Vulnerability in the Dependency Check itself, used during testing.
Will not affect end-users.
Ref: https://github.com/jeremylong/DependencyCheck/issues/5943 -->
<vulnerabilityName>CVE-2023-4759</vulnerabilityName>
<vulnerabilityName>CVE-2024-7254</vulnerabilityName>
</suppress>
</suppressions>
8 changes: 3 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.19.0</version>
<version>2.32.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -225,14 +225,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<version>3.13.0</version>
<configuration>
<release>8</release>
<encoding>UTF-8</encoding>
<fork>true</fork>
<compilerArgs>
<arg>-XDcompilePolicy=simple</arg>
<arg>-Xplugin:ErrorProne</arg>
<arg>-XDcompilePolicy=simple</arg>
<arg>-Xplugin:ErrorProne</arg>
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
Expand All @@ -250,7 +248,7 @@
<path>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.17.0</version>
<version>2.32.0</version>
</path>
<path>
<groupId>org.projectlombok</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/easypost/service/AddressService.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public Address retrieve(final String id) throws EasyPostException {
*
* @param params Map of parameters.
* @return AddressCollection object.
* @throws APIException when the request fails.
* @throws EasyPostException when the request fails.
*/
public AddressCollection all(final Map<String, Object> params) throws EasyPostException {
String endpoint = "addresses";
Expand Down

0 comments on commit c96cacb

Please sign in to comment.