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
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ final class Magic {
this.extensions = extensions;
}

public int getPriority() {
int getPriority() {
return priority;
}

public Clause getClause() {
Clause getClause() {
return clause;
}

public String getType() {
String getType() {
return type;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ void shouldReadEnvironmentPropertiesUtf8WithBom() throws Exception {

@SuppressWarnings("unchecked")
@Test
void shouldReturnEmptyMapWhenUtf8DecodingFails() throws Exception {
void shouldFallbackToIso88591WhenUtf8DecodingFails() throws Exception {
writeBytes(
"name=café\n".getBytes(StandardCharsets.ISO_8859_1));

Expand All @@ -406,7 +406,7 @@ void shouldReturnEmptyMapWhenUtf8DecodingFails() throws Exception {
(Supplier<Map<String, String>>) LinkedHashMap::new
);

assertThat(env).isEmpty();
assertThat(env).containsEntry("name", "café");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private EntityUtils() {
}

@SafeVarargs
public static <T> T firstNonNull(final T... items) {
static <T> T firstNonNull(final T... items) {
return Stream.of(items)
.filter(Objects::nonNull)
.findFirst()
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ subprojects {
dependency("commons-beanutils:commons-beanutils:1.11.0")
dependency("commons-io:commons-io:2.21.0")
dependency("javax.xml.bind:jaxb-api:2.3.1")
dependency("net.sourceforge.pmd:pmd-java:7.20.0")
dependency("net.sourceforge.pmd:pmd-java:7.22.0")
dependency("org.allurefw:allure1-model:1.0")
dependency("org.apache.commons:commons-collections4:4.5.0")
dependency("org.apache.commons:commons-lang3:3.20.0")
Expand Down
Loading