Remove unnecessary prints
This commit is contained in:
@@ -209,7 +209,6 @@ public class User {
|
|||||||
throw new ApplicationException("Cannot add yourself as a friend");
|
throw new ApplicationException("Cannot add yourself as a friend");
|
||||||
} else {
|
} else {
|
||||||
friends.add(user);
|
friends.add(user);
|
||||||
System.out.print("Friend added!");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -222,7 +221,6 @@ public class User {
|
|||||||
throw new ApplicationException("This user is not your friend!");
|
throw new ApplicationException("This user is not your friend!");
|
||||||
} else {
|
} else {
|
||||||
friends.remove(user);
|
friends.remove(user);
|
||||||
System.out.print("Friend removed");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,7 +114,6 @@ public class UserController {
|
|||||||
*/
|
*/
|
||||||
@RequestMapping("/getFirst")
|
@RequestMapping("/getFirst")
|
||||||
public Float getFirstFootprint(@RequestParam(value = "name") String name) {
|
public Float getFirstFootprint(@RequestParam(value = "name") String name) {
|
||||||
System.out.println("hello");
|
|
||||||
Float footprint = userService.getFirstFootprint(name);
|
Float footprint = userService.getFirstFootprint(name);
|
||||||
return footprint;
|
return footprint;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ public class CalculatorService {
|
|||||||
.indexOf("<result_grand_total>")
|
.indexOf("<result_grand_total>")
|
||||||
+ 20, response.getBody().indexOf("</result_grand_total>"));
|
+ 20, response.getBody().indexOf("</result_grand_total>"));
|
||||||
// to do: in not HTTP 200 or exception case throws exception
|
// to do: in not HTTP 200 or exception case throws exception
|
||||||
System.out.println(Float.parseFloat(result));
|
|
||||||
return Float.parseFloat(result);
|
return Float.parseFloat(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user