Skip to content

Commit

Permalink
SCANGRADLE-170 Replace JSR annotations with JSpecify annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
dorian-burihabwa-sonarsource committed Nov 4, 2024
1 parent 87493ab commit 81305b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions integrationTests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@
<version>3.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jspecify</groupId>
<artifactId>jspecify</artifactId>
<version>1.0.0</version>
<scope>test</scope>
</dependency>
</dependencies>

<profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@
import java.util.Optional;
import java.util.Properties;
import java.util.stream.Stream;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.jspecify.annotations.Nullable;
import org.junit.Rule;
import org.junit.rules.TemporaryFolder;

Expand Down Expand Up @@ -167,7 +166,7 @@ private static int getJavaVersion() {
return Integer.parseInt(version);
}

@CheckForNull
@Nullable
private static Properties getDumpedProperties(List<String> command) throws IOException {
for (String part : command) {
if (part.trim().startsWith("-Dsonar.scanner.internal.dumpToFile=")) {
Expand Down

0 comments on commit 81305b4

Please sign in to comment.