diff options
author | root1 <srinivasa.mohan@huawei.com> | 2018-01-12 14:44:46 +0530 |
---|---|---|
committer | root1 <srinivasa.mohan@huawei.com> | 2018-01-12 14:45:48 +0530 |
commit | 802c346cd78a9fa65051698670f2fbe0c54ea180 (patch) | |
tree | 17e69e3cb1157dcc000d2780809bed43269ea8f9 /POLICY-SDK-APP/src/main/java | |
parent | cedb4478c6ff50a61dc1d1b445d39401606061b5 (diff) |
Fixed as per Java Code Conventions
*Moved the constructors after the variables
Change-Id: I099f75aea285f0bb845d464065d1e5f031d44a13
Issue-ID: POLICY-336
Signed-off-by: SRINIVAS V <srinivasa.mohan@huawei.com>
Diffstat (limited to 'POLICY-SDK-APP/src/main/java')
-rw-r--r-- | POLICY-SDK-APP/src/main/java/org/onap/policy/controller/AdminTabController.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/AdminTabController.java b/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/AdminTabController.java index 1a43c7646..4893522ef 100644 --- a/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/AdminTabController.java +++ b/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/AdminTabController.java @@ -55,23 +55,23 @@ public class AdminTabController extends RestrictedBaseController{ private static CommonClassDao commonClassDao; - public static CommonClassDao getCommonClassDao() { - return commonClassDao; + public AdminTabController() { + //default constructor } - public static void setCommonClassDao(CommonClassDao commonClassDao) { - AdminTabController.commonClassDao = commonClassDao; - } - @Autowired private AdminTabController(CommonClassDao commonClassDao){ AdminTabController.commonClassDao = commonClassDao; } - - public AdminTabController() { - //default constructor + + public static CommonClassDao getCommonClassDao() { + return commonClassDao; } + public static void setCommonClassDao(CommonClassDao commonClassDao) { + AdminTabController.commonClassDao = commonClassDao; + } + @RequestMapping(value={"/get_LockDownData"}, method={org.springframework.web.bind.annotation.RequestMethod.GET} , produces=MediaType.APPLICATION_JSON_VALUE) public void getAdminTabEntityData(HttpServletRequest request, HttpServletResponse response){ try{ |