File tree Expand file tree Collapse file tree 5 files changed +10
-36
lines changed
src/main/java/com/listennotes/podcast_api Expand file tree Collapse file tree 5 files changed +10
-36
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ jobs:
1515 runs-on : ubuntu-latest
1616
1717 steps :
18- - uses : actions/checkout@v2
19- - name : Set up JDK 11
18+ - uses : actions/checkout@v4
19+ - name : Set up JDK 21
2020 uses : actions/setup-java@v2
2121 with :
22- java-version : ' 11 '
22+ java-version : ' 21 '
2323 distribution : ' adopt'
2424 cache : gradle
2525 - name : Grant execute permission for gradlew
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-7.4.1-bin .zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.13-all .zip
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ apply plugin: 'signing'
4242apply plugin : ' org.jetbrains.dokka'
4343
4444task sourcesJar (type : Jar ) {
45- classifier = ' sources'
45+ archiveClassifier . set( ' sources' )
4646 from sourceSets. main. allSource
4747}
4848
Original file line number Diff line number Diff line change 1818import java .net .HttpURLConnection ;
1919import java .net .MalformedURLException ;
2020import java .net .ProtocolException ;
21+ import java .net .URI ;
22+ import java .net .URISyntaxException ;
2123
2224
2325public final class Client {
@@ -182,7 +184,9 @@ protected String getUrl(String strPath) {
182184 public HttpURLConnection getConnection (String strUrl ) throws ListenApiException {
183185 URL url ;
184186 try {
185- url = new URL (strUrl );
187+ url = new URI (strUrl ).toURL ();
188+ } catch (URISyntaxException e ) {
189+ throw new InvalidRequestException ("URI Syntax error" );
186190 } catch (MalformedURLException e ) {
187191 throw new InvalidRequestException ("Malformed Url" );
188192 }
You can’t perform that action at this time.
0 commit comments