Use simplified @Grab where possible

This commit is contained in:
Dave Syer
2013-10-09 10:16:01 -04:00
parent 1dd0cca294
commit 3adfdd34ec
8 changed files with 13 additions and 46 deletions

View File

@@ -6,15 +6,15 @@ class Example {
@RequestMapping("/")
@ResponseBody
public String helloWorld(Device device) {
String helloWorld(Device device) {
if (device.isNormal()) {
return "Hello Normal Device!"
"Hello Normal Device!"
} else if (device.isMobile()) {
return "Hello Mobile Device!"
"Hello Mobile Device!"
} else if (device.isTablet()) {
return "Hello Tablet Device!"
"Hello Tablet Device!"
} else {
return "Hello Unknown Device!"
"Hello Unknown Device!"
}
}