src/main/java/de/uapcore/lightpit/LightPITModule.java

changeset 36
0f4f8f255c32
parent 34
824d4042c857
child 51
dd0a45ae25d7
     1.1 --- a/src/main/java/de/uapcore/lightpit/LightPITModule.java	Sun May 10 10:11:10 2020 +0200
     1.2 +++ b/src/main/java/de/uapcore/lightpit/LightPITModule.java	Sun May 10 10:11:37 2020 +0200
     1.3 @@ -128,24 +128,13 @@
     1.4      class ELProxy {
     1.5          private final String bundleBaseName, modulePath, menuKey, titleKey, nameKey, descKey;
     1.6  
     1.7 -        public static ELProxy convert(LightPITModule annotation) {
     1.8 -            return new ELProxy(
     1.9 -                    annotation.bundleBaseName(),
    1.10 -                    annotation.modulePath(),
    1.11 -                    annotation.menuKey(),
    1.12 -                    annotation.titleKey(),
    1.13 -                    annotation.nameKey(),
    1.14 -                    annotation.descKey()
    1.15 -            );
    1.16 -        }
    1.17 -
    1.18 -        private ELProxy(String bundleBaseName, String modulePath, String menuKey, String titleKey, String nameKey, String descKey) {
    1.19 -            this.bundleBaseName = bundleBaseName;
    1.20 -            this.modulePath = modulePath;
    1.21 -            this.menuKey = menuKey;
    1.22 -            this.titleKey = titleKey;
    1.23 -            this.nameKey = nameKey;
    1.24 -            this.descKey = descKey;
    1.25 +        public ELProxy(LightPITModule annotation) {
    1.26 +            bundleBaseName = annotation.bundleBaseName();
    1.27 +            modulePath = annotation.modulePath();
    1.28 +            menuKey = annotation.menuKey();
    1.29 +            titleKey = annotation.titleKey();
    1.30 +            nameKey = annotation.nameKey();
    1.31 +            descKey = annotation.descKey();
    1.32          }
    1.33  
    1.34          public String getBundleBaseName() {

mercurial