myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject [myfaces-tobago] branch master updated: checkstyle
Date Fri, 08 Mar 2019 06:04:54 GMT
This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new 214cf62  checkstyle
214cf62 is described below

commit 214cf623a98025f56e626bae6172163c9ee0ba52
Author: Udo Schnurpfeil <lofwyr@apache.org>
AuthorDate: Fri Mar 8 07:04:45 2019 +0100

    checkstyle
---
 .../org/apache/myfaces/tobago/apt/processor/ClassesGenerator.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/processor/ClassesGenerator.java
b/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/processor/ClassesGenerator.java
index 9868c47..a1b5a2f 100644
--- a/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/processor/ClassesGenerator.java
+++ b/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/processor/ClassesGenerator.java
@@ -92,7 +92,7 @@ public class ClassesGenerator extends AbstractGenerator {
       if (element.getAnnotation(UIComponentTag.class) != null) {
         try {
           createTagOrComponent(element);
-        } catch (final IOException|ClassNotFoundException|RuntimeException e) {
+        } catch (final IOException | ClassNotFoundException | RuntimeException e) {
           throw new TobagoGeneratorException(
               "Error during processing of " + element.getAnnotation(UIComponentTag.class).uiComponent(),
e);
         }
@@ -108,7 +108,7 @@ public class ClassesGenerator extends AbstractGenerator {
     if (componentTag.generate()) {
       final Tag tag = declaration.getAnnotation(Tag.class);
       final String generic = "org.apache.myfaces.tobago.internal.component.AbstractUI"
-          +  tag.name().substring(0,1).toUpperCase() + tag.name().substring(1);
+          + tag.name().substring(0, 1).toUpperCase() + tag.name().substring(1);
       final StringTemplate componentStringTemplate = componentStringTemplateGroup.getInstanceOf("component");
       final ComponentInfo componentInfo = new ComponentInfo(declaration, componentTag);
       String componentBaseClass = componentTag.uiComponentBaseClass();
@@ -118,7 +118,7 @@ public class ClassesGenerator extends AbstractGenerator {
       componentInfo.setSuperClass(componentBaseClass);
 
       // check
-      if (! componentBaseClass.equals(generic)) {
+      if (!componentBaseClass.equals(generic)) {
         warn("**********************************************************************************");
         warn("generic name is unequal to the defined name: " + componentBaseClass + " !=
" + generic);
         warn("**********************************************************************************");


Mime
View raw message