Skip to content

Commit

Permalink
Code: Add JavaDoc comments. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
smarkwal committed Sep 20, 2024
1 parent 5f8947b commit d844d50
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jarhc/src/main/java/org/jarhc/artifacts/MavenArtifactFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@

public class MavenArtifactFinder implements ArtifactFinder {

// Example request URLs:
// https://search.maven.org/solrsearch/select?q=1:%22d74d4ba0dee443f68fb2dcb7fcdb945a2cd89912%22&rows=20&wt=json (org.ow2.asm:asm:7.0)
// https://search.maven.org/solrsearch/select?q=1:%22815893df5f31da2ece4040fe0a12fd44b577afaf%22&rows=20&wt=json (commons-io:commons-io:2.6)
// https://search.maven.org/solrsearch/select?q=1:%22093ee1760aba62d6896d578bd7d247d0fa52f0e7%22&rows=20&wt=json (commons-codec:commons-codec:1.11)
// https://search.maven.org/solrsearch/select?q=1:%229d920ed18833e7275ba688d88242af4c3711fbea%22&rows=20&wt=json (org.eclipse.jetty:test-jetty-webapp:9.4.20.v20190813)
// https://search.maven.org/solrsearch/select?q=1:%221234567890123456789012345678901234567890%22&rows=20&wt=json (not found)

private static final String SEARCH_URL = "https://search.maven.org/solrsearch/select?q=1:%%22%s%%22&rows=20&wt=json";
private static final int SEARCH_TIMEOUT = 65;
private static final String SEARCH_USER_AGENT = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0";
Expand Down Expand Up @@ -286,6 +293,8 @@ public static class Settings {

/**
* Read settings from Java System Properties.
*
* @return Settings loaded from Java System Properties.
*/
public static Settings fromSystemProperties() {
Properties systemProperties = System.getProperties();
Expand All @@ -294,6 +303,9 @@ public static Settings fromSystemProperties() {

/**
* Read settings from Java properties.
*
* @param properties Java properties
* @return Settings loaded Java properties.
*/
public static Settings fromProperties(Properties properties) {

Expand Down

0 comments on commit d844d50

Please sign in to comment.