Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
feat: Update lib and typo unit test for java17
Browse files Browse the repository at this point in the history
  • Loading branch information
DESKTOP-JF1FCFM\zzBBc committed Aug 30, 2023
1 parent f10b510 commit dc02cf7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<java.version>1.8</java.version>
<java.version>17</java.version>
<junit.version>4.13.2</junit.version>
<truth.version>1.1.5</truth.version>
<compile-testing.version>0.21.0</compile-testing.version>
Expand Down Expand Up @@ -51,6 +51,12 @@
</organization>

<dependencies>
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.1.2-jre</version>
</dependency>
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
Expand All @@ -75,12 +81,14 @@
<version>1.3.0</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mockito/mockito-inline -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.11.0</version>
<scope>test</scope>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>5.2.0</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.eclipse.jdt.core.compiler</groupId>
<artifactId>ecj</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/squareup/javapoet/ParameterSpecTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void foo(@Nullable final String bar) {
VariableElement parameterElement = element.getParameters().get(0);

assertThat(ParameterSpec.get(parameterElement).toString())
.isEqualTo("java.lang.String arg0");
.isEqualTo("java.lang.String bar");
}

@Test public void addNonFinalModifier() {
Expand Down

0 comments on commit dc02cf7

Please sign in to comment.