-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #841 from lonvia/update-deps
Update dependencies and overhaul command line parsing
- Loading branch information
Showing
7 changed files
with
80 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/de/komoot/photon/utils/CorsMutuallyExclusiveValidator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package de.komoot.photon.utils; | ||
|
||
import com.beust.jcommander.IParametersValidator; | ||
import com.beust.jcommander.ParameterException; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import static java.lang.Boolean.TRUE; | ||
|
||
public class CorsMutuallyExclusiveValidator implements IParametersValidator { | ||
@Override | ||
public void validate(Map<String, Object> parameters) throws ParameterException { | ||
if (parameters.get("-cors-any") == TRUE && parameters.get("-cors-origin") != null) { | ||
throw new ParameterException("Use only one cors configuration type."); | ||
} | ||
} | ||
} |
22 changes: 0 additions & 22 deletions
22
src/main/java/de/komoot/photon/utils/StringArrayConverter.java
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
src/test/java/de/komoot/photon/utils/StringArrayConverterTest.java
This file was deleted.
Oops, something went wrong.