From ff9e283b33a6533d59c5d6aef5a8555e0b7b3ef6 Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Fri, 28 Oct 2016 13:29:56 -0700 Subject: [PATCH] Revert "Remove unneccessary final" This reverts commit 54ef2913989096a6cddce1d92500e96a2bab68c3. --- src/main/java/org/drtshock/Potato.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/drtshock/Potato.java b/src/main/java/org/drtshock/Potato.java index 9e2123e..fc591bd 100644 --- a/src/main/java/org/drtshock/Potato.java +++ b/src/main/java/org/drtshock/Potato.java @@ -14,7 +14,7 @@ public class Potato implements Tuber { private final List condiments = new ArrayList<>(); public static void main(String[] args) { - Potato potato = new Potato(); + final Potato potato = new Potato(); try { potato.prepare(); System.out.println("Of course potato is prepared and delicious."); @@ -77,7 +77,7 @@ public class Potato implements Tuber { */ public boolean isPutIntoOven() throws OvenException { try { - URL url = new URL("https://www.google.com/search?q=potato"); + final URL url = new URL("https://www.google.com/search?q=potato"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.addRequestProperty("User-Agent", "Potato");