From 44fe9885abbd6d20328a811714c2cd2425fba6e7 Mon Sep 17 00:00:00 2001 From: Gaboso Date: Thu, 18 May 2017 01:44:51 -0400 Subject: [PATCH 1/2] Removed public modifier for methods on interfaces because it is redundant. --- .../ripme/ripper/RipperInterface.java | 21 ++++++++++++------- .../rarchives/ripme/ui/RipStatusHandler.java | 6 ++---- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/RipperInterface.java b/src/main/java/com/rarchives/ripme/ripper/RipperInterface.java index 5c4e6e0d..8e46ca76 100644 --- a/src/main/java/com/rarchives/ripme/ripper/RipperInterface.java +++ b/src/main/java/com/rarchives/ripme/ripper/RipperInterface.java @@ -9,10 +9,17 @@ import java.net.URL; * Oh well, here's to encapsulation and abstraction! (raises glass) */ public interface RipperInterface { - public void rip() throws IOException; - public boolean canRip(URL url); - public URL sanitizeURL(URL url) throws MalformedURLException; - public void setWorkingDir(URL url) throws IOException; - public String getHost(); - public String getGID(URL url) throws MalformedURLException; -} + + void rip() throws IOException; + + boolean canRip(URL url); + + URL sanitizeURL(URL url) throws MalformedURLException; + + void setWorkingDir(URL url) throws IOException; + + String getHost(); + + String getGID(URL url) throws MalformedURLException; + +} \ No newline at end of file diff --git a/src/main/java/com/rarchives/ripme/ui/RipStatusHandler.java b/src/main/java/com/rarchives/ripme/ui/RipStatusHandler.java index d99d039d..1fec861d 100644 --- a/src/main/java/com/rarchives/ripme/ui/RipStatusHandler.java +++ b/src/main/java/com/rarchives/ripme/ui/RipStatusHandler.java @@ -1,14 +1,12 @@ - package com.rarchives.ripme.ui; import com.rarchives.ripme.ripper.AbstractRipper; /** - * * @author Mads */ public interface RipStatusHandler { - public void update(AbstractRipper ripper, RipStatusMessage message); + void update(AbstractRipper ripper, RipStatusMessage message); -} +} \ No newline at end of file From c4ee75688cd5cb4de04cd9bb2276d2f4ddd9689d Mon Sep 17 00:00:00 2001 From: Gaboso Date: Thu, 18 May 2017 13:33:56 -0400 Subject: [PATCH 2/2] Remove all blank lines added previously in RipperInterface --- .../java/com/rarchives/ripme/ripper/RipperInterface.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/RipperInterface.java b/src/main/java/com/rarchives/ripme/ripper/RipperInterface.java index 8e46ca76..9951f9bc 100644 --- a/src/main/java/com/rarchives/ripme/ripper/RipperInterface.java +++ b/src/main/java/com/rarchives/ripme/ripper/RipperInterface.java @@ -9,17 +9,10 @@ import java.net.URL; * Oh well, here's to encapsulation and abstraction! (raises glass) */ public interface RipperInterface { - void rip() throws IOException; - boolean canRip(URL url); - URL sanitizeURL(URL url) throws MalformedURLException; - void setWorkingDir(URL url) throws IOException; - String getHost(); - String getGID(URL url) throws MalformedURLException; - } \ No newline at end of file