Jonathan LALOU 7 年 前
コミット
0ea0544548
共有1 個のファイルを変更した3 個の追加0 個の削除を含む
  1. 3
    0
      src/main/java/fr/sayasoft/fake/zinc/FakeZincController.java

+ 3
- 0
src/main/java/fr/sayasoft/fake/zinc/FakeZincController.java ファイルの表示

47
 
47
 
48
     private final AtomicLong counter = new AtomicLong();
48
     private final AtomicLong counter = new AtomicLong();
49
 
49
 
50
+    @SuppressWarnings("unused")
50
     @RequestMapping("/greeting")
51
     @RequestMapping("/greeting")
51
     public Greeting greeting(@RequestParam(value = "name", defaultValue = "World") String name) {
52
     public Greeting greeting(@RequestParam(value = "name", defaultValue = "World") String name) {
52
         return new Greeting(counter.incrementAndGet(),
53
         return new Greeting(counter.incrementAndGet(),
53
                 String.format(template, name));
54
                 String.format(template, name));
54
     }
55
     }
55
 
56
 
57
+    @SuppressWarnings("unused")
56
     @RequestMapping(
58
     @RequestMapping(
57
             value = "/order/{request_id}",
59
             value = "/order/{request_id}",
58
             method = RequestMethod.GET,
60
             method = RequestMethod.GET,
62
         return GET_ORDER_RESPONSE;
64
         return GET_ORDER_RESPONSE;
63
     }
65
     }
64
 
66
 
67
+    @SuppressWarnings("unused")
65
     @RequestMapping(
68
     @RequestMapping(
66
             value = "/order",
69
             value = "/order",
67
             method = RequestMethod.POST,
70
             method = RequestMethod.POST,