Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-15612 Replace usages of getParameterTypes().length with getParameterCount()
  3. WFLY-15614

Replace usages of getParameterTypes().length with getParameterCount() (EJB)

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Minor Minor
    • 26.0.0.Beta1, 26.0.0.Final
    • None
    • EJB
    • None

      wildfly-ejb3  (27 usages found)
                  ejb3/src/main/java/org/jboss/as/ejb3/component/session  (6 usages found)
                      SessionBeanObjectViewConfigurator.java  (6 usages found)
                          configure(DeploymentPhaseContext, ComponentConfiguration, ViewDescription, ViewConfiguration)  (6 usages found)
                              70 if (method.getName().equals("getPrimaryKey") && method.getParameterTypes().length == 0) {
                              73 } else if (method.getName().equals("remove") && method.getParameterTypes().length == 0) {
                              76 } else if (method.getName().equals("getEJBLocalHome") && method.getParameterTypes().length == 0) {
                              92 } else if (method.getName().equals("getEJBHome") && method.getParameterTypes().length == 0) {
                              108 } else if (method.getName().equals("getHandle") && method.getParameterTypes().length == 0) {
                              110 getName().equals("isIdentical") && method.getParameterTypes().length == 1 && (method.getParameterTypes()[0].equals(EJBObject.class) || method.getParameterTypes()[0].equals
                  ejb3/src/main/java/org/jboss/as/ejb3/component/singleton  (2 usages found)
                      SingletonComponentDescription.java  (2 usages found)
                          setupViewInterceptors(EJBViewDescription)  (2 usages found)
                              221 if ((method.getName().equals("hashCode") && method.getParameterTypes().length == 0) ||
                              222 method.getName().equals("equals") && method.getParameterTypes().length == 1 &&
                  ejb3/src/main/java/org/jboss/as/ejb3/component/stateful  (5 usages found)
                      StatefulComponentDescription.java  (5 usages found)
                          addStatefulInstanceAssociatingInterceptor(EJBViewDescription)  (4 usages found)
                              345 if ((method.getName().equals("hashCode") && method.getParameterTypes().length == 0) ||
                              346 method.getName().equals("equals") && method.getParameterTypes().length == 1 &&
                              359 if ((method.getName().equals("hashCode") && method.getParameterTypes().length == 0) ||
                              360 method.getName().equals("equals") && method.getParameterTypes().length == 1 &&
                          addRemoveMethodInterceptor(ViewDescription)  (1 usage found)
                              396 if (!object || !viewMethodIdentifier.getName().equals("remove") || viewMethodIdentifier.getParameterTypes().length != 0) {
                  ejb3/src/main/java/org/jboss/as/ejb3/component/stateless  (2 usages found)
                      StatelessComponentDescription.java  (2 usages found)
                          setupViewInterceptors(EJBViewDescription)  (2 usages found)
                              182 if ((method.getName().equals("hashCode") && method.getParameterTypes().length == 0) ||
                              183 method.getName().equals("equals") && method.getParameterTypes().length == 1 &&
                  ejb3/src/main/java/org/jboss/as/ejb3/deployment  (2 usages found)
                      ApplicableMethodInformation.java  (2 usages found)
                          resolveRealMethod(Method)  (2 usages found)
                              196 && m.getParameterTypes().length == method.getParameterTypes().length
                              202 for(int i = 0; i < method.getParameterTypes().length; ++i) {
                  ejb3/src/main/java/org/jboss/as/ejb3/deployment/processors  (3 usages found)
                      SessionBeanHomeProcessor.java  (3 usages found)
                          configureHome(ComponentDescription, SessionBeanComponentDescription, EJBViewDescription, EJBViewDescription)  (3 usages found)
                              120 } else if (method.getName().equals("getEJBMetaData") && method.getParameterTypes().length == 0 && ((EJBViewDescription)description).getMethodIntf() == MethodIntf.HOME) {
                              141 } else if (method.getName().equals("remove") && method.getParameterTypes().length == 1 && method.getParameterTypes()[0] == Object.class) {
                              144 } else if (method.getName().equals("remove") && method.getParameterTypes().length == 1 && method.getParameterTypes()[0] == Handle.class) {
                  ejb3/src/main/java/org/jboss/as/ejb3/deployment/processors/dd  (3 usages found)
                      ContainerInterceptorBindingsDDProcessor.java  (1 usage found)
                          deploy(DeploymentPhaseContext)  (1 usage found)
                              183 for (int i = 0; i < method.getParameterTypes().length; ++i) {
                      DeploymentDescriptorInterceptorBindingsProcessor.java  (1 usage found)
                          deploy(DeploymentPhaseContext)  (1 usage found)
                              210 for (int i = 0; i < method.getParameterTypes().length; ++i) {
                      MethodResolutionUtils.java  (1 usage found)
                          resolveMethods(String, MethodParametersMetaData, Class<?>, DeploymentReflectionIndex)  (1 usage found)
                              76 for (int i = 0; i < method.getParameterTypes().length; ++i) {
                  ejb3/src/main/java/org/jboss/as/ejb3/deployment/processors/merging  (1 usage found)
                      EjbConcurrencyMergingProcessor.java  (1 usage found)
                          resolveMethod(DeploymentReflectionIndex, Class<?>, Class<?>, NamedMethodMetaData)  (1 usage found)
                              148 for (int i = 0; i < method.getParameterTypes().length; ++i) {
                  ejb3/src/main/java/org/jboss/as/ejb3/timerservice  (3 usages found)
                      TimedObjectInvokerImpl.java  (1 usage found)
                          callTimeout(TimerImpl, Method)  (1 usage found)
                              88 if(timeoutMethod.getParameterTypes().length == 0) {
                      TimerServiceImpl.java  (2 usages found)
                          restoreTimers(List<ScheduleTimer>)  (2 usages found)
                              759 final String[] params = new String[timer.getMethod().getParameterTypes().length];
                              760 for (int i = 0; i < timer.getMethod().getParameterTypes().length; ++i) {
              wildfly
      

              Unassigned Unassigned
              clara0 Clara Fang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: