diff options
author | libujacob <libu.jacob@huawei.com> | 2018-01-05 15:49:56 +0530 |
---|---|---|
committer | libujacob <libu.jacob@huawei.com> | 2018-01-05 16:02:40 +0530 |
commit | 929c29a9c6a9a7e91fe01d18e353cdb6a29bc3d9 (patch) | |
tree | 96f45566c674fa4d71b048afd3813610ff318f50 /src/main/java/io/swagger/api/factories/DcaeServicesApiServiceFactory.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/DcaeServicesApiServiceFactory.java')
-rw-r--r-- | src/main/java/io/swagger/api/factories/DcaeServicesApiServiceFactory.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/io/swagger/api/factories/DcaeServicesApiServiceFactory.java b/src/main/java/io/swagger/api/factories/DcaeServicesApiServiceFactory.java index 47f213d..3c47b84 100644 --- a/src/main/java/io/swagger/api/factories/DcaeServicesApiServiceFactory.java +++ b/src/main/java/io/swagger/api/factories/DcaeServicesApiServiceFactory.java @@ -26,12 +26,16 @@ import io.swagger.api.DcaeServicesApiService; import io.swagger.api.impl.DcaeServicesApiServiceImpl; @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2016-04-18T20:16:22.119Z") -public class DcaeServicesApiServiceFactory { +public final class DcaeServicesApiServiceFactory { // Yes I agree this code is not great and I blame for Swagger for putting me in this spot. private static DCAEControllerClient dcaeControllerClient; private static DatabusControllerClient databusControllerClient; + //Utility classes, which are a collection of static members, are not meant to be instantiated. + private DcaeServicesApiServiceFactory(){ + } + public static void setDcaeControllerClient(DCAEControllerClient dcaeControllerClient) { DcaeServicesApiServiceFactory.dcaeControllerClient = dcaeControllerClient; } |