Skip to content

Commit

Permalink
[issue-145] - update to java 17 (finnyb#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
finnyb authored Apr 8, 2023
1 parent 2f1d3a5 commit a964df1
Show file tree
Hide file tree
Showing 17 changed files with 52 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>11</source>
<target>11</target>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -205,7 +205,7 @@
</formats>
<java>
<googleJavaFormat>
<version>1.8</version>
<version>1.15.0</version>
<reflowLongStrings>true</reflowLongStrings>
</googleJavaFormat>
</java>
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/org/bff/javampd/command/CommandExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
import java.util.List;
import org.bff.javampd.server.MPD;

/** @author bill */
/**
* @author bill
*/
public interface CommandExecutor {
static String COMMAND_TERMINATION = "OK";
String COMMAND_TERMINATION = "OK";
/**
* Sends a command with no parameters to the {@link org.bff.javampd.server.MPD} server returning
* the response as a <CODE>List</CODE> of <CODE>Strings</CODE>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import org.bff.javampd.server.MPDProperties;

/** @author bill */
/**
* @author bill
*/
public class DatabaseProperties extends MPDProperties {
private enum Command {
FIND("db.find"),
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/bff/javampd/monitor/StandAloneMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
import org.bff.javampd.server.ConnectionChangeListener;
import org.bff.javampd.server.ErrorListener;

/** @author bill */
/**
* @author bill
*/
public interface StandAloneMonitor {
/**
* Adds a {@link org.bff.javampd.player.TrackPositionChangeListener} to this object to receive
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/org/bff/javampd/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import org.bff.javampd.audioinfo.MPDAudioInfo;
import org.bff.javampd.playlist.MPDPlaylistSong;

/** @author bill */
/**
* @author bill
*/
public interface Player {

/** The status of the player. */
Expand All @@ -13,7 +15,7 @@ enum Status {
STATUS_PLAYING("play"),
STATUS_PAUSED("pause");

private String prefix;
private final String prefix;

Status(String prefix) {
this.prefix = prefix;
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/bff/javampd/playlist/Playlist.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
import org.bff.javampd.genre.MPDGenre;
import org.bff.javampd.song.MPDSong;

/** @author bill */
/**
* @author bill
*/
public interface Playlist {
/**
* Adds a {@link PlaylistChangeListener} to this object to receive {@link PlaylistChangeEvent}s.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import org.bff.javampd.server.MPDProperties;

/** @author bill */
/**
* @author bill
*/
public class PlaylistProperties extends MPDProperties {

private enum Command {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import java.util.List;
import org.bff.javampd.song.MPDSong;

/** @author bill */
/**
* @author bill
*/
public interface PlaylistSongConverter {
/**
* Converts the response from the MPD server into {@link MPDSong}s.
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/bff/javampd/server/MPDSocket.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/** @author bill */
/**
* @author bill
*/
@Slf4j
public class MPDSocket {
private static final Logger LOGGER = LoggerFactory.getLogger(MPDSocket.class);
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/bff/javampd/server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
import org.bff.javampd.song.SongSearcher;
import org.bff.javampd.statistics.ServerStatistics;

/** @author bill */
/**
* @author bill
*/
public interface Server {
/**
* Clears the current error message in the MPD status
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/bff/javampd/server/ServerProperties.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.bff.javampd.server;

/** @author bill */
/**
* @author bill
*/
public class ServerProperties extends MPDProperties {

private enum Command {
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/bff/javampd/song/SearchProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import org.bff.javampd.server.MPDProperties;

/** @author bill */
/**
* @author bill
*/
public class SearchProperties extends MPDProperties {
private enum Command {
FIND("db.find"),
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/bff/javampd/song/SongConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import java.util.List;

/** @author bill */
/**
* @author bill
*/
public interface SongConverter {
/**
* Converts the response from the MPD server into {@link MPDSong}s.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
import org.bff.javampd.command.CommandExecutor;
import org.bff.javampd.server.ServerProperties;

/** @author bill */
/**
* @author bill
*/
@Slf4j
public class MPDServerStatistics implements ServerStatistics {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.bff.javampd.statistics;

/** @author bill */
/**
* @author bill
*/
public interface ServerStatistics {
MPDStatistics getStatistics();
}
4 changes: 3 additions & 1 deletion src/test/java/org/bff/javampd/album/MPDAlbumTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

/** @author Bill */
/**
* @author Bill
*/
class MPDAlbumTest {
@Test
@DisplayName("add artist using default list")
Expand Down

0 comments on commit a964df1

Please sign in to comment.