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.notifymylutece.service 6 39 411 45 215 23 199
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval 9 31 144 40 162 1 297
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification 7 30 129 37 150 4 231
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business 2 22 119 24 94 0 66
fr.paris.lutece.plugins.workflow.modules.notifymylutece.web 1 5 104 6 23 10 33
fr.paris.lutece.plugins.workflow.modules.notifymylutece.util.constants 1 1 63 2 8 5 33
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.user 2 6 37 8 36 0 66
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.notification 2 6 24 8 33 0 66
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.retrieval 2 6 24 8 33 0 66
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.user 2 6 24 8 33 0 66
fr.paris.lutece.plugins.workflow.modules.notifymylutece.util.validation 1 2 20 3 11 0 33
fr.paris.lutece.plugins.workflow.modules.notifymylutece.util.annotation 0 0 13 0 0 0 48
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.signrequest 1 2 8 3 12 0 33
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
36 156 1120 192 810 43 1237

Objects

Objects

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

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService 195 17 0 18
fr.paris.lutece.plugins.workflow.modules.notifymylutece.web.NotifyMyLuteceTaskComponent 73 5 0 6
fr.paris.lutece.plugins.workflow.modules.notifymylutece.util.constants.NotifyMyLuteceConstants 62 1 0 2
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.TaskNotifyMyLuteceConfigService 56 4 0 5
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.TaskNotifyMyLuteceConfig 54 18 0 19
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.TaskNotifyMyLuteceConfigDAO 48 4 0 5
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.NotificationTypeDAO 25 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.RetrievalTypeDAO 25 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.user.MyLuteceUserGuidDAO 25 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.AbstractNotificationType 24 8 0 9
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.TaskNotifyMyLutece 23 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.NotificationTypeFactory 20 6 0 7
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceWebService 19 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.RetrievalTypeDirectory 18 2 0 3
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.RetrievalTypeFactory 17 4 0 5
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.AbstractRetrievalType 15 5 0 6
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.NotificationTypeEmail 14 1 0 2
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.INotifyMyLuteceService 12 11 0 12
fr.paris.lutece.plugins.workflow.modules.notifymylutece.util.validation.NotifyMyLuteceConfigValidator 10 2 0 3
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.INotificationType 9 8 0 9
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.RetrievalTypeAllUsers 9 2 0 3
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.notification.NotificationTypeService 9 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.retrieval.RetrievalTypeService 9 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.user.MyLuteceUserGuidService 9 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.IRetrievalType 8 7 0 8
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.RetrievalTypeUsersList 5 2 0 3
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLutecePlugin 5 1 0 2
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.signrequest.NotifyMyLuteceRequestAuthenticatorService 5 2 0 3
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.INotificationTypeDAO 4 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.IRetrievalTypeFactory 4 3 0 4

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.TaskNotifyMyLuteceConfig 54 18 0 19
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService 195 17 0 18
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.INotifyMyLuteceService 12 11 0 12
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.AbstractNotificationType 24 8 0 9
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.INotificationType 9 8 0 9
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.IRetrievalType 8 7 0 8
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.NotificationTypeFactory 20 6 0 7
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.AbstractRetrievalType 15 5 0 6
fr.paris.lutece.plugins.workflow.modules.notifymylutece.web.NotifyMyLuteceTaskComponent 73 5 0 6
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.RetrievalTypeFactory 17 4 0 5
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.TaskNotifyMyLuteceConfigDAO 48 4 0 5
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.TaskNotifyMyLuteceConfigService 56 4 0 5
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.INotificationTypeDAO 4 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.NotificationTypeDAO 25 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.IRetrievalTypeFactory 4 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.IRetrievalTypeDAO 4 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.RetrievalTypeDAO 25 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.user.MyLuteceUserGuidDAO 25 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.user.IMyLuteceUserGuidDAO 4 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.notification.NotificationTypeService 9 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.notification.INotificationTypeService 4 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.retrieval.RetrievalTypeService 9 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.retrieval.IRetrievalTypeService 4 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.TaskNotifyMyLutece 23 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.user.IMyLuteceUserGuidService 4 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.user.MyLuteceUserGuidService 9 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceWebService 19 3 0 4
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.RetrievalTypeUsersList 5 2 0 3
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.RetrievalTypeDirectory 18 2 0 3
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.RetrievalTypeAllUsers 9 2 0 3

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
23.17 1,120.00 0.00 4.33 5.33

Methods

Methods

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

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService.fillModel(TaskNotifyMyLuteceConfig,Record,Directory,String,HttpServletRequest,int,int) 43 19 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.web.NotifyMyLuteceTaskComponent.doSaveConfig(HttpServletRequest,Locale,ITask) 23 8 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.web.NotifyMyLuteceTaskComponent.getDisplayConfigForm(HttpServletRequest,Locale,ITask) 21 1 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService.getRecordFieldValue(int,int,int) 20 7 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.TaskNotifyMyLuteceConfigService.update(ITaskConfig) 18 13 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.web.NotifyMyLuteceTaskComponent.getSelectedUsers(HttpServletRequest,TaskNotifyMyLuteceConfig) 18 14 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.TaskNotifyMyLuteceConfigDAO.load(int) 16 2 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.TaskNotifyMyLuteceConfigService.create(ITaskConfig) 15 13 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService.getListEntries(int,Locale) 15 4 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceWebService.notify(String,String,String,String) 14 3 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.NotificationTypeEmail.notify(String,String,String,String) 13 8 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.TaskNotifyMyLuteceConfigService.findByPrimaryKey(int) 13 8 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.RetrievalTypeDirectory.checkConfigData(TaskNotifyMyLuteceConfig) 12 8 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService.getListEntries(int) 12 4 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.TaskNotifyMyLuteceConfigDAO.insert(TaskNotifyMyLuteceConfig) 11 1 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.TaskNotifyMyLuteceConfigDAO.store(TaskNotifyMyLuteceConfig) 11 1 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.TaskNotifyMyLutece.processTask(int,HttpServletRequest,Locale) 11 6 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService.getListBelowTasks(ITask,Locale) 11 6 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService.fillModelWithUserAttributes(Object,String) 11 7 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService.sendMessage(HttpServletRequest,int,Locale,Record,Directory,TaskNotifyMyLuteceConfig,ITask) 10 4 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService.fillListEntryTypes(String) 10 5 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.NotificationTypeDAO.load(int,Plugin) 9 2 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.RetrievalTypeDAO.load(int,Plugin) 9 2 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.user.MyLuteceUserGuidDAO.load(int,Plugin) 9 2 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService.buildReferenceEntryToString(IEntry,Locale) 9 1 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService.getListDirectories() 8 2 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.util.validation.NotifyMyLuteceConfigValidator.isValid(TaskNotifyMyLuteceConfig,ConstraintValidatorContext) 8 4 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.notification.NotificationTypeDAO.insert(int,int,Plugin) 7 1 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.retrieval.RetrievalTypeDAO.insert(int,int,Plugin) 7 1 1
fr.paris.lutece.plugins.workflow.modules.notifymylutece.business.TaskNotifyMyLuteceConfig.getRetrievalTypes() 7 4 1

Averages.

Program NCSS NCSS average CCN average Javadocs average
1,120.00 4.34 2.08 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).