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.fillingdirectory.web 4 23 781 22 95 45 176
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business 15 86 667 96 412 9 462
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service 15 73 475 82 355 26 396
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.utils 1 5 61 6 41 0 33
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
35 187 1984 206 903 80 1067

Objects

Objects

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

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.FillingDirectoryTaskComponent 290 6 0 7
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.HelpFillingTaskComponent 265 14 0 10
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskHelpFillingConfigDAO 185 15 0 11
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.RecordFieldHistoryDAO 103 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.TaskFillingDirectory 90 6 0 7
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskFillingDirectoryConfigDAO 74 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.TaskHelpFilling 71 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.FileHistoryDAO 65 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.HelpFillingJspBean 58 1 0 2
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.PhysicalFileHistoryDAO 46 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.utils.TaskFillingDirectoryUtils 40 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskFillingDirectoryConfig 36 14 0 15
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.ListEntries 36 14 0 15
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.FileImgService 28 6 0 7
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.RecordFieldHistoryService 28 4 0 5
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.DoDownloadHistoryFile 23 2 0 3
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskHelpFillingConfig 21 8 0 9
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.FileHistoryService 19 4 0 5
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.TaskHelpFillingConfigService 17 7 0 2
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskFillingRemovalListener 16 2 0 3
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.PhysicalFileHistoryService 11 4 0 5
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.EntryTypeImgHistory 8 2 0 3
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.ITaskHelpFillingConfigDAO 8 7 0 8
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.ITaskHelpFillingConfigService 8 7 0 8
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.FillingDirectoryPlugin 7 2 0 3
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.IPhysicalFileHistoryDAO 6 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.IFileHistoryDAO 6 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.EntryTypeFileHistory 6 2 0 3
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.IRecordFieldHistoryDAO 6 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.IPhysicalFileHistoryService 5 4 0 5

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskHelpFillingConfigDAO 185 15 0 11
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskFillingDirectoryConfig 36 14 0 15
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.ListEntries 36 14 0 15
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.HelpFillingTaskComponent 265 14 0 10
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskHelpFillingConfig 21 8 0 9
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.ITaskHelpFillingConfigDAO 8 7 0 8
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.TaskHelpFillingConfigService 17 7 0 2
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.ITaskHelpFillingConfigService 8 7 0 8
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.FileImgService 28 6 0 7
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.TaskFillingDirectory 90 6 0 7
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.FillingDirectoryTaskComponent 290 6 0 7
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.RecordFieldHistoryDAO 103 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.IPhysicalFileHistoryDAO 6 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.IFileHistoryDAO 6 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.FileHistoryDAO 65 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.IRecordFieldHistoryDAO 6 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.PhysicalFileHistoryDAO 46 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskFillingDirectoryConfigDAO 74 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.utils.TaskFillingDirectoryUtils 40 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.TaskHelpFilling 71 5 0 6
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.IPhysicalFileHistoryService 5 4 0 5
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.FileHistoryService 19 4 0 5
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.IFileHistoryService 5 4 0 5
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.IRecordFieldHistoryService 5 4 0 5
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.PhysicalFileHistoryService 11 4 0 5
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.RecordFieldHistoryService 28 4 0 5
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.EntryTypeImgHistory 8 2 0 3
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskFillingRemovalListener 16 2 0 3
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.EntryTypeFileHistory 6 2 0 3
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.FillingDirectoryPlugin 7 2 0 3

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
45.74 1,984.00 0.00 5.34 5.89

Methods

Methods

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

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.HelpFillingTaskComponent.getDisplayConfigForm(HttpServletRequest,Locale,ITask) 68 21 0
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.FillingDirectoryTaskComponent.doSaveConfig(HttpServletRequest,Locale,ITask) 65 26 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.TaskFillingDirectory.processTask(int,HttpServletRequest,Locale) 55 17 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.FillingDirectoryTaskComponent.getDisplayConfigForm(HttpServletRequest,Locale,ITask) 52 16 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.FillingDirectoryTaskComponent.doValidateTask(int,String,HttpServletRequest,Locale,ITask) 46 15 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.HelpFillingTaskComponent.doSaveConfig(HttpServletRequest,Locale,ITask) 44 8 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.HelpFillingJspBean.getModifyDirectoryRecordPopup(HttpServletRequest) 42 12 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.RecordFieldHistoryDAO.selectByHistory(int,int,Plugin) 34 4 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.HelpFillingTaskComponent.getDisplayTaskForm(int,String,HttpServletRequest,Locale,ITask) 34 9 0
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.RecordFieldHistoryDAO.selectByTask(int,Plugin) 33 4 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.FillingDirectoryTaskComponent.getDisplayTaskForm(int,String,HttpServletRequest,Locale,ITask) 31 10 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.FillingDirectoryTaskComponent.getTaskInformationXml(int,HttpServletRequest,Locale,ITask) 31 9 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.TaskHelpFilling.getDirectoryRecordData(Record,HttpServletRequest,Locale,Plugin) 28 10 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.FillingDirectoryTaskComponent.getDisplayTaskInformation(int,HttpServletRequest,Locale,ITask) 26 10 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.service.TaskHelpFilling.processTask(int,HttpServletRequest,Locale) 23 14 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.HelpFillingTaskComponent.createListEntries(HttpServletRequest,TaskHelpFillingConfig,ITask,int) 20 6 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskHelpFillingConfigDAO.loadListEntries(int,int) 19 2 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskHelpFillingConfigDAO.loadSelectedList(int,int) 19 5 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.RecordFieldHistoryDAO.insert(int,int,RecordField,Plugin) 19 3 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.DoDownloadHistoryFile.doDownloadFile(HttpServletRequest,HttpServletResponse) 19 4 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.FileHistoryDAO.load(int,Plugin) 18 3 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskFillingDirectoryConfigDAO.load(int) 18 2 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskFillingDirectoryConfigDAO.selectAll() 18 2 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskHelpFillingConfigDAO.load(int) 15 2 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskHelpFillingConfigDAO.insertListEntries(ListEntries,Plugin) 14 2 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskHelpFillingConfigDAO.selectAll() 14 2 0
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.FileHistoryDAO.insert(File,Plugin) 14 2 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskFillingDirectoryConfigDAO.store(TaskFillingDirectoryConfig) 14 1 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.web.HelpFillingTaskComponent.getAvailableItems(HttpServletRequest,TaskHelpFillingConfig) 14 7 1
fr.paris.lutece.plugins.workflow.modules.fillingdirectory.business.TaskHelpFillingConfigDAO.store(TaskHelpFillingConfig) 13 4 1

Averages.

Program NCSS NCSS average CCN average Javadocs average
1,984.00 7.41 2.48 0.91

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).