Remove unneccessary final

This commit is contained in:
j0ach1mmall3 2016-09-28 13:00:20 +02:00
parent 862099b76b
commit 54ef291398

View file

@ -14,7 +14,7 @@ public class Potato implements Tuber {
private final List<Condiment> condiments = new ArrayList<Condiment>();
public static void main(String[] args) {
final Potato potato = new Potato();
Potato potato = new Potato();
try {
potato.prepare();
System.out.println("Of course potato is prepared and delicious.");
@ -76,7 +76,7 @@ public class Potato implements Tuber {
*/
public boolean isPutIntoOven() throws OvenException {
try {
final URL url = new URL("https://www.google.com/search?q=potato");
URL url = new URL("https://www.google.com/search?q=potato");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET");
connection.addRequestProperty("User-Agent", "Potato");