diff options
author | 2018-01-05 15:49:56 +0530 | |
---|---|---|
committer | 2018-01-05 16:02:40 +0530 | |
commit | 929c29a9c6a9a7e91fe01d18e353cdb6a29bc3d9 (patch) | |
tree | 96f45566c674fa4d71b048afd3813610ff318f50 /src/main/java/io/swagger/api/factories/DcaeServiceTypesApiServiceFactory.java | |
parent | c2671c5c1e249b513c2e624d65406e02d4986200 (diff) |
Add private constructor in all static member class
Add @override annotation to overridden functions
Issue-ID: DCAEGEN2-207
Change-Id: I7bf8ad7afec645cbe28fceaaa8f4c04001a0ef6a
Signed-off-by: libujacob <libu.jacob@huawei.com>
Diffstat (limited to 'src/main/java/io/swagger/api/factories/DcaeServiceTypesApiServiceFactory.java')
-rw-r--r-- | src/main/java/io/swagger/api/factories/DcaeServiceTypesApiServiceFactory.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/io/swagger/api/factories/DcaeServiceTypesApiServiceFactory.java b/src/main/java/io/swagger/api/factories/DcaeServiceTypesApiServiceFactory.java index fecd8fe..61d7638 100644 --- a/src/main/java/io/swagger/api/factories/DcaeServiceTypesApiServiceFactory.java +++ b/src/main/java/io/swagger/api/factories/DcaeServiceTypesApiServiceFactory.java @@ -24,9 +24,13 @@ import io.swagger.api.DcaeServiceTypesApiService; import io.swagger.api.impl.DcaeServiceTypesApiServiceImpl; @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2016-04-18T20:16:22.119Z") -public class DcaeServiceTypesApiServiceFactory { +public final class DcaeServiceTypesApiServiceFactory { - private final static DcaeServiceTypesApiService service = new DcaeServiceTypesApiServiceImpl(); + private static final DcaeServiceTypesApiService service = new DcaeServiceTypesApiServiceImpl(); + + //Utility classes, which are a collection of static members, are not meant to be instantiated. + private DcaeServiceTypesApiServiceFactory(){ + } public static DcaeServiceTypesApiService getDcaeServiceTypesApi() { |