Fork me on GitHub

JavaNCSS Metric Results

[ package ] [ object ] [ method ] [ explanation ]

The following document contains the results of a JavaNCSS metric analysis, using JavaNCSS version 33.54.
JavaNCSS web site.

Packages

Packages

[ package ] [ object ] [ method ] [ explanation ]

Packages sorted by NCSS.

Package Classes Methods NCSS Javadocs Javadoc lines Single lines comment Multi lines comment
fr.paris.lutece.plugins.workflow.modules.notifycrm.service 3 38 284 41 203 18 100
fr.paris.lutece.plugins.workflow.modules.notifycrm.business 2 16 100 18 70 0 66
fr.paris.lutece.plugins.workflow.modules.notifycrm.web 1 4 83 5 17 3 33
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.taskinfo 1 2 48 3 11 1 33
fr.paris.lutece.plugins.workflow.modules.notifycrm.util.constants 1 1 40 2 8 5 33
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.notification 1 1 34 2 8 1 33
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.convert 1 1 27 2 8 1 33
fr.paris.lutece.plugins.workflow.modules.notifycrm.util.annotation 0 0 13 0 0 0 48
fr.paris.lutece.plugins.workflow.modules.notifycrm.util.validation 1 2 12 3 11 0 33
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
11 65 641 76 336 29 412

Objects

Objects

[ package ] [ object ] [ method ] [ explanation ]

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService 209 21 0 22
fr.paris.lutece.plugins.workflow.modules.notifycrm.business.TaskNotifyCRMConfigDAO 60 4 0 5
fr.paris.lutece.plugins.workflow.modules.notifycrm.web.NotifyCRMTaskComponent 51 4 0 5
fr.paris.lutece.plugins.workflow.modules.notifycrm.util.constants.NotifyCRMConstants 39 1 0 2
fr.paris.lutece.plugins.workflow.modules.notifycrm.business.TaskNotifyCRMConfig 31 12 0 13
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.taskinfo.NotifyCRMTaskInfoProvider 22 2 0 3
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.notification.NotifyService 17 1 0 2
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.INotifyCRMService 17 16 0 17
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.convert.MessageConverter 13 1 0 2
fr.paris.lutece.plugins.workflow.modules.notifycrm.util.validation.NotifyCRMConfigValidator 6 2 0 3
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMPlugin 5 1 0 2

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService 209 21 0 22
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.INotifyCRMService 17 16 0 17
fr.paris.lutece.plugins.workflow.modules.notifycrm.business.TaskNotifyCRMConfig 31 12 0 13
fr.paris.lutece.plugins.workflow.modules.notifycrm.business.TaskNotifyCRMConfigDAO 60 4 0 5
fr.paris.lutece.plugins.workflow.modules.notifycrm.web.NotifyCRMTaskComponent 51 4 0 5
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.taskinfo.NotifyCRMTaskInfoProvider 22 2 0 3
fr.paris.lutece.plugins.workflow.modules.notifycrm.util.validation.NotifyCRMConfigValidator 6 2 0 3
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.notification.NotifyService 17 1 0 2
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMPlugin 5 1 0 2
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.convert.MessageConverter 13 1 0 2
fr.paris.lutece.plugins.workflow.modules.notifycrm.util.constants.NotifyCRMConstants 39 1 0 2

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
42.73 641.00 0.00 5.91 6.91

Methods

Methods

[ package ] [ object ] [ method ] [ explanation ]

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.fillModel(TaskNotifyCRMConfig,Record,Directory,HttpServletRequest,int,int) 44 19 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.web.NotifyCRMTaskComponent.doSaveConfig(HttpServletRequest,Locale,ITask) 22 8 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.business.TaskNotifyCRMConfigDAO.load(int) 20 2 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.getRecordFieldValue(int,int,int) 20 7 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.web.NotifyCRMTaskComponent.getDisplayConfigForm(HttpServletRequest,Locale,ITask) 20 1 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.business.TaskNotifyCRMConfigDAO.insert(TaskNotifyCRMConfig) 15 1 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.business.TaskNotifyCRMConfigDAO.store(TaskNotifyCRMConfig) 15 1 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.taskinfo.NotifyCRMTaskInfoProvider.getTaskResourceInfo(int,int,HttpServletRequest) 14 2 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.notification.NotifyService.sendMessage(String,String,String,TaskNotifyConfig,ResourceHistory) 14 5 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.getListBelowTasks(ITask,Locale) 11 6 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.fillModelWithUserAttributes(Object,String) 11 7 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.convert.MessageConverter.convert(MessageData) 11 3 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.fillListEntryTypes(String) 10 5 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.getListEntries(int) 9 2 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.buildReferenceEntryToString(IEntry,Locale) 9 1 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.getListDirectories() 8 2 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.getListEntriesIdDemand(int,Locale) 8 3 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.getListEntriesUserGuid(int,Locale) 8 3 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.getListEntriesCrmWebAppCode(int,Locale) 8 3 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.getListEntriesFreemarker(int) 7 3 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.getLocale(HttpServletRequest) 7 2 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.business.TaskNotifyCRMConfigDAO.delete(int) 5 1 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.NotifyCRMService() 5 1 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.isEntryTypeRefused(int) 5 3 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.isEntryTypeIdDemandAccepted(int) 5 3 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.isEntryTypeUserGuidAccepted(int) 5 3 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.isEntryTypeCrmWebAppCodeAccepted(int) 5 3 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.getIdDemand(TaskNotifyCRMConfig,int,int) 5 2 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.getUserGuid(TaskNotifyCRMConfig,int,int) 5 2 1
fr.paris.lutece.plugins.workflow.modules.notifycrm.service.NotifyCRMService.getCrmWebAppCode(TaskNotifyCRMConfig,int,int) 5 2 1

Averages.

Program NCSS NCSS average CCN average Javadocs average
641.00 6.00 2.23 1.00

Explanations

Explanations

[ package ] [ object ] [ method ] [ explanation ]

Non Commenting Source Statements (NCSS)

Statements for JavaNCSS are not statements as specified in the Java Language Specification but include all kinds of declarations too. Roughly spoken, NCSS is approximately equivalent to counting ';' and '{' characters in Java source files.

Not counted are empty statements, empty blocks or semicolons after closing brackets. Of course, comments don't get counted too. Closing brackets also never get counted, the same applies to blocks in general.

Examples
Package declaration package java.lang;
Import declaration import java.awt.*;
Class declaration
  • public class Foo {
  • public class Foo extends Bla {
Interface declaration public interface Able ; {
Field declaration
  • int a;
  • int a, b, c = 5, d = 6;
Method declaration
  • public void cry();
  • public void gib() throws DeadException {
Constructor declaration public Foo() {
Constructor invocation
  • this();
  • super();
Statement declaration
  • i = 0;
  • if (ok)
  • if (exit) {
  • if (3 == 4);
  • if (4 == 4) { ;
  • } else {
Label declaration fine :

In some cases consecutive semicolons are illegal according to the JLS but JavaNCSS still tolerates them (thought JavaNCSS is still more strict as 'javac'). Nevertheless they are never counted as two statements.

Cyclomatic Complexity Number (CCN)

CCN is also know as McCabe Metric. There exists a much hyped theory behind it based on graph theory, but it all comes down to simply counting 'if', 'for', 'while' statements etc. in a method. Whenever the control flow of a method splits, the "CCN counter" gets incremented by one.

Each method has a minimum value of 1 per default. For each of the following Java keywords/statements this value gets incremented by one:

  • if
  • for
  • while
  • case
  • catch

Also if the control flow of a method returns abortively the CCNvalue will be incremented by one:

  • if
  • for

An ordinary return at the end of method will not be counted.

Note that 'else', 'default', and 'finally' don't increment the CCN value any further. On the other hand, a simple method with a 'switch' statement and a huge block of 'case' statements can have a surprisingly high CCN value (still it has the same value when converting a 'switch' block to an equivalent sequence of 'if' statements).