Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<pmd.skip>false</pmd.skip>

<!-- Project Dependencies Configuration -->
<spotbugs.version>4.9.8</spotbugs.version>
<spotbugs.version>4.10.1</spotbugs.version>
<commons.lang.version>3.20.0</commons.lang.version>
<commons.io.version>2.22.0</commons.io.version>
<byte-buddy.version>1.18.10-jdk5</byte-buddy.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CSharpNamespaceDetector extends PackageDetector {
}

@Override
public boolean accepts(final String fileName) {
boolean accepts(final String fileName) {
return fileName.endsWith(".cs");
}

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/edu/hm/hafner/util/JavaPackageDetector.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package edu.hm.hafner.util;

import java.util.regex.Pattern;

import edu.hm.hafner.util.PackageDetectorFactory.FileSystemFacade;

import java.util.regex.Pattern;

/**
* Detects the package name of a Java file.
*
Expand All @@ -23,7 +23,7 @@ Pattern getPattern() {
}

@Override
public boolean accepts(final String fileName) {
boolean accepts(final String fileName) {
return fileName.endsWith(".java");
}
}
10 changes: 5 additions & 5 deletions src/main/java/edu/hm/hafner/util/ResourceExtractor.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package edu.hm.hafner.util;

import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;

import java.io.File;
import java.io.IOException;
import java.io.UncheckedIOException;
Expand All @@ -15,9 +18,6 @@
import java.util.jar.JarFile;
import java.util.stream.Collectors;

import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;

/**
* A proxy for resources. Extracts a given collection of files from the classpath and copies them to a target path.
*
Expand Down Expand Up @@ -117,7 +117,7 @@ private static class FolderExtractor extends Extractor {
}

@Override
public void extractFiles(final Path targetDirectory, final String... sources) {
void extractFiles(final Path targetDirectory, final String... sources) {
try {
for (String source : sources) {
var targetFile = targetDirectory.resolve(source);
Expand Down Expand Up @@ -149,7 +149,7 @@ private static class JarExtractor extends Extractor {
}

@Override
public void extractFiles(final Path targetDirectory, final String... sources) {
void extractFiles(final Path targetDirectory, final String... sources) {
Set<String> remaining = Arrays.stream(sources).collect(Collectors.toSet());
try (var jar = new JarFile(getEntryPoint().toFile())) {
Enumeration<JarEntry> entries = jar.entries();
Expand Down
Loading