Skip to content

Commit

Permalink
Merge pull request #453 from mivek/fix/Support_Android
Browse files Browse the repository at this point in the history
Fix/support android
  • Loading branch information
mivek authored Jan 16, 2023
2 parents 18244a1 + c6c8c4a commit 3e85e87
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion metarParser-parsers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<description>Module containing the parsers.</description>

<properties>
<jacoco.coverage.instruction.minimum>1</jacoco.coverage.instruction.minimum>
<jacoco.coverage.instruction.minimum>0.99</jacoco.coverage.instruction.minimum>
<jacoco.coverage.branch.minimum>0.98</jacoco.coverage.branch.minimum>
<jacoco.coverage.complexity.minimum>0.99</jacoco.coverage.complexity.minimum>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import io.github.mivek.model.Airport;
import io.github.mivek.provider.airport.AirportProvider;
import io.github.mivek.provider.airport.impl.DefaultAirportProvider;

import java.util.ServiceLoader;

/**
Expand All @@ -22,7 +21,7 @@ public AirportSupplier() {

@Override
public Airport get(final String string) {
AirportProvider provider = airportLoader.findFirst().orElseGet(DefaultAirportProvider::new);
AirportProvider provider = airportLoader.iterator().hasNext() ? airportLoader.iterator().next() : new DefaultAirportProvider();
return provider.getAirports().get(string);
}
}
Expand Down
6 changes: 3 additions & 3 deletions metarParser-spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<artifactId>metarParser-spi</artifactId>

<properties>
<jacoco.coverage.instruction.minimum>0.45</jacoco.coverage.instruction.minimum>
<jacoco.coverage.complexity.minimum>0.5</jacoco.coverage.complexity.minimum>
<jacoco.coverage.branch.minimum>0.5</jacoco.coverage.branch.minimum>
<jacoco.coverage.instruction.minimum>0.96</jacoco.coverage.instruction.minimum>
<jacoco.coverage.complexity.minimum>1</jacoco.coverage.complexity.minimum>
<jacoco.coverage.branch.minimum>1</jacoco.coverage.branch.minimum>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
package io.github.mivek.provider.airport.impl;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.anEmptyMap;
import static org.hamcrest.Matchers.hasKey;
import static org.hamcrest.Matchers.not;
import static org.junit.jupiter.api.Assertions.assertNotNull;

import io.github.mivek.model.Airport;
import io.github.mivek.provider.airport.AirportProvider;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.Map;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.junit.jupiter.api.Test;

/**
* @author mivek
*/
@Disabled
class OurAirportsAirportProviderTest {

@Test
Expand Down
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,24 @@
<jacoco.coverage.branch.minimum>0.96</jacoco.coverage.branch.minimum>
<jacoco.coverage.complexity.minimum>0.97</jacoco.coverage.complexity.minimum>
<archunit-junit5.version>1.0.1</archunit-junit5.version>
<checkstyle.version>10.5.0</checkstyle.version>
<checkstyle.version>10.6.0</checkstyle.version>
<commons-lang3.version>3.12.0</commons-lang3.version>
<hamcrest.version>2.2</hamcrest.version>
<jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
<junit.version>5.9.1</junit.version>
<maven-checkstyle-plugin.version>3.2.0</maven-checkstyle-plugin.version>
<junit.version>5.9.2</junit.version>
<maven-checkstyle-plugin.version>3.2.1</maven-checkstyle-plugin.version>
<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
<maven.gpg.plugin.version>3.0.1</maven.gpg.plugin.version>
<maven.javadoc.plugin.version>3.4.1</maven.javadoc.plugin.version>
<maven-project-info-reports-plugin.version>3.4.1</maven-project-info-reports-plugin.version>
<maven-project-info-reports-plugin.version>3.4.2</maven-project-info-reports-plugin.version>
<maven-site-plugin.version>3.12.1</maven-site-plugin.version>
<maven.source.plugin.version>3.2.1</maven.source.plugin.version>
<maven-surefire-plugin.version>3.0.0-M7</maven-surefire-plugin.version>
<maven-surefire-plugin.version>3.0.0-M8</maven-surefire-plugin.version>
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
<commons-csv.version>1.9.0</commons-csv.version>
<pitest-junit5-plugin.version>1.1.0</pitest-junit5-plugin.version>
<pitest-maven.version>1.9.11</pitest-maven.version>
<slf4j-nop.version>2.0.5</slf4j-nop.version>
<pitest-junit5-plugin.version>1.1.2</pitest-junit5-plugin.version>
<pitest-maven.version>1.10.4</pitest-maven.version>
<slf4j-nop.version>2.0.6</slf4j-nop.version>
<spotbugs-maven-plugin.version>4.7.3.0</spotbugs-maven-plugin.version>
<sonar.organization>mivek-github</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
Expand Down

0 comments on commit 3e85e87

Please sign in to comment.