From f8d2794a1d2cc7001c764cb1e604a29577aefd67 Mon Sep 17 00:00:00 2001 From: Coffeemakr Date: Thu, 30 Nov 2017 11:57:09 +0100 Subject: [PATCH 1/2] Fix javadoc errors. (warnings still not fixed) --- src/main/java/org/schabi/newpipe/extractor/Info.java | 2 +- .../services/soundcloud/SoundcloudParsingHelper.java | 7 ++++--- .../java/org/schabi/newpipe/extractor/utils/Utils.java | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/schabi/newpipe/extractor/Info.java b/src/main/java/org/schabi/newpipe/extractor/Info.java index c704717e6..c2445bd61 100644 --- a/src/main/java/org/schabi/newpipe/extractor/Info.java +++ b/src/main/java/org/schabi/newpipe/extractor/Info.java @@ -10,7 +10,7 @@ public abstract class Info implements Serializable { public final int service_id; /** * Id of this Info object
- * e.g. Youtube: https://www.youtube.com/watch?v=RER5qCTzZ7 > RER5qCTzZ7 + * e.g. Youtube: https://www.youtube.com/watch?v=RER5qCTzZ7 > RER5qCTzZ7 */ public final String id; public final String url; diff --git a/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java b/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java index 770305376..d2381bc5f 100644 --- a/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java +++ b/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java @@ -63,7 +63,8 @@ public class SoundcloudParsingHelper { } /** - * Call the endpoint "/resolve" of the api.
+ * Call the endpoint "/resolve" of the api.

+ * * See https://developers.soundcloud.com/docs/api/reference#resolve */ public static JsonObject resolveFor(String url) throws IOException, ReCaptchaException, ParsingException { @@ -79,7 +80,7 @@ public class SoundcloudParsingHelper { } /** - * Fetch the embed player with the apiUrl and return the canonical url (like the permalink_url from the json api).
+ * Fetch the embed player with the apiUrl and return the canonical url (like the permalink_url from the json api). * * @return the url resolved */ @@ -92,7 +93,7 @@ public class SoundcloudParsingHelper { } /** - * Fetch the embed player with the url and return the id (like the id from the json api).
+ * Fetch the embed player with the url and return the id (like the id from the json api). * * @return the id resolved */ diff --git a/src/main/java/org/schabi/newpipe/extractor/utils/Utils.java b/src/main/java/org/schabi/newpipe/extractor/utils/Utils.java index 9c4d352c3..be52a5ab8 100644 --- a/src/main/java/org/schabi/newpipe/extractor/utils/Utils.java +++ b/src/main/java/org/schabi/newpipe/extractor/utils/Utils.java @@ -12,9 +12,9 @@ public class Utils { /** * Remove all non-digit characters from a string.

- * Examples:
- *

+ * Examples:

+ *

* * @param toRemove string to remove non-digit chars * @return a string that contains only digits From 9842744f22c5e4e6b03fa711e92e6a5e1fcffa9b Mon Sep 17 00:00:00 2001 From: Coffeemakr Date: Thu, 30 Nov 2017 11:58:17 +0100 Subject: [PATCH 2/2] Add travis configuration --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index dff5f3a5d..0b1d0a2a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1 +1,13 @@ language: java + +script: + - ./gradlew check + - ./gradlew javadoc + +deploy: + provider: pages + skip_cleanup: true + github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard + local_dir: build/docs + on: + branch: master