Browse Source

code clean up

pull/22/head
Jannik 5 years ago
parent
commit
fba6c703a3
  1. 18
      src/main/java/org/kellerkinder/Project_HomeFlix/tableData.java
  2. 2
      src/main/java/org/kellerkinder/Project_HomeFlix/updater.java

18
src/main/java/org/kellerkinder/Project_HomeFlix/tableData.java

@ -24,15 +24,15 @@ public class tableData {
/**
* tableData is the data-type of tree-table-view
* @param year: the release year of the film
* @param season: season if it's a series
* @param episode: episode if it's a series
* @param rating: indicator for favourites, used for sorting the items
* @param resolution: resolution of the film
* @param titel: title of the film
* @param streamUrl: the concrete path to the file or the URL
* @param image: the favourite icon
* @param cached: indicator for caching status
* @param year the release year of the film
* @param season season if it's a series
* @param episode episode if it's a series
* @param rating indicator for favourites, used for sorting the items
* @param resolution resolution of the film
* @param titel title of the film
* @param streamUrl the concrete path to the file or the URL
* @param image the favourite icon
* @param cached indicator for caching status
*/
public tableData (final int year, final int season, final int episode, final double rating, final String resolution, final String title, final String streamUrl, final ImageView image, final boolean cached) {
this.year.set(year);

2
src/main/java/org/kellerkinder/Project_HomeFlix/updater.java

@ -19,7 +19,6 @@ import com.eclipsesource.json.Json;
import com.eclipsesource.json.JsonArray;
import com.eclipsesource.json.JsonObject;
import com.eclipsesource.json.JsonValue;
import javafx.application.Platform;
public class updater implements Runnable{
@ -95,6 +94,7 @@ public class updater implements Runnable{
org.apache.commons.io.FileUtils.deleteQuietly(new File("ProjectHomeFlix_update.jar")); //delete update
Runtime.getRuntime().exec("java -jar ProjectHomeFlix.jar"); //start again
System.exit(0); //finishes itself
} catch (IOException e) {
Platform.runLater(() -> {
mainWindowController.showErrorMsg(mainWindowController.errorUpdateD, e);

Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close