Merge pull request #87 from j0ach1mmall3/master
Remove unneccessary final
This commit is contained in:
commit
eb609105ea
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ public class Potato implements Tuber {
|
||||||
private final List<Condiment> condiments = new ArrayList<>();
|
private final List<Condiment> condiments = new ArrayList<>();
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
final Potato potato = new Potato();
|
Potato potato = new Potato();
|
||||||
try {
|
try {
|
||||||
potato.prepare();
|
potato.prepare();
|
||||||
System.out.println("Of course potato is prepared and delicious.");
|
System.out.println("Of course potato is prepared and delicious.");
|
||||||
|
@ -77,7 +77,7 @@ public class Potato implements Tuber {
|
||||||
*/
|
*/
|
||||||
public boolean isPutIntoOven() throws OvenException {
|
public boolean isPutIntoOven() throws OvenException {
|
||||||
try {
|
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();
|
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
|
||||||
connection.setRequestMethod("GET");
|
connection.setRequestMethod("GET");
|
||||||
connection.addRequestProperty("User-Agent", "Potato");
|
connection.addRequestProperty("User-Agent", "Potato");
|
||||||
|
|
Loading…
Reference in a new issue