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.eudonetrestdirectory.business 9 84 431 78 320 0 132
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service 8 49 423 37 212 12 171
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.web 1 15 342 9 41 8 33
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.threadService 1 15 263 4 20 4 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.daemon 1 5 54 4 18 1 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.utils 2 7 31 9 47 2 66
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
22 175 1544 141 658 27 402

Objects

Objects

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

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.web.EudonetRestTaskComponent 304 15 0 9
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.threadService.AcdpThread 239 15 0 4
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.BuildJsonBodyService 187 12 0 5
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.TaskEudonetRestConfigDAO 122 9 0 10
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.EudonetLinkDAO 119 9 0 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.EudonetRestWsService 64 7 0 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.TaskEudonetRestConfig 56 22 0 23
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.EudonetClient 44 15 0 12
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.daemon.PurgeResourceDaemon 40 5 0 4
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.EudonetRestData 36 14 0 14
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.EudonetLink 26 10 0 10
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.TaskExportDemand 20 2 0 3
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.EudonetLinkHome 18 8 0 8
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.utils.EudonetRestException 17 6 0 7
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.utils.EudonetRestDirctoryConstants 12 1 0 2
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.EudonetRestWsEudonetRest 11 3 0 4
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.IEudonetLinkDAO 9 8 0 8
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.TaskEudonetRestConfigHome 8 3 0 4
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.IEudonetRestWsService 7 6 0 7
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.EudonetRestConfigService 7 3 0 4
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.ReferenceItemSorted 6 1 0 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.EudonetRestDirectoryPlugin 5 1 0 2

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.TaskEudonetRestConfig 56 22 0 23
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.threadService.AcdpThread 239 15 0 4
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.EudonetClient 44 15 0 12
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.web.EudonetRestTaskComponent 304 15 0 9
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.EudonetRestData 36 14 0 14
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.BuildJsonBodyService 187 12 0 5
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.EudonetLink 26 10 0 10
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.TaskEudonetRestConfigDAO 122 9 0 10
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.EudonetLinkDAO 119 9 0 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.IEudonetLinkDAO 9 8 0 8
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.EudonetLinkHome 18 8 0 8
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.EudonetRestWsService 64 7 0 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.utils.EudonetRestException 17 6 0 7
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.IEudonetRestWsService 7 6 0 7
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.daemon.PurgeResourceDaemon 40 5 0 4
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.TaskEudonetRestConfigHome 8 3 0 4
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.EudonetRestWsEudonetRest 11 3 0 4
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.EudonetRestConfigService 7 3 0 4
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.TaskExportDemand 20 2 0 3
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.ReferenceItemSorted 6 1 0 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.utils.EudonetRestDirctoryConstants 12 1 0 2
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.EudonetRestDirectoryPlugin 5 1 0 2

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
61.68 1,544.00 0.00 7.95 6.41

Methods

Methods

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

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.web.EudonetRestTaskComponent.doSaveConfig(HttpServletRequest,Locale,ITask) 56 17 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.BuildJsonBodyService.getRecordFieldValue(int,int,int) 43 23 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.web.EudonetRestTaskComponent.getListEntries(int,HttpServletRequest) 38 9 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.threadService.AcdpThread.createRecords(String) 35 9 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.threadService.AcdpThread.createRecordsLink(String) 30 9 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.web.EudonetRestTaskComponent.getEudonetAttribut() 28 7 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.threadService.AcdpThread.createAnnexes(String,int,int) 26 6 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.threadService.AcdpThread.run() 24 4 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.TaskEudonetRestConfigDAO.load(int) 24 3 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.web.EudonetRestTaskComponent.getDisplayConfigForm(HttpServletRequest,Locale,ITask) 24 4 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.BuildJsonBodyService.getCreateRecordJsonBodyLink(int,EudonetRestData,int,int,Integer) 23 7 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.BuildJsonBodyService.getCreateAnnexeJsonBody(int,int,EudonetRestData,int,int) 23 7 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.threadService.AcdpThread.getTableListNotLink(String) 20 7 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.web.EudonetRestTaskComponent.getEudonetTables() 20 4 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.threadService.AcdpThread.getTableListLinked(String,Integer) 18 5 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.threadService.AcdpThread.getResourceDTO() 18 1 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.web.EudonetRestTaskComponent.getAttributListJson(String,String) 18 7 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.TaskEudonetRestConfigDAO.selectEntryList(int) 17 2 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.EudonetLinkDAO.loadBy(int,int) 17 3 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.threadService.AcdpThread.token() 16 5 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.EudonetLinkDAO.load(int) 16 3 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.EudonetLinkDAO.loadAll(int,int) 16 2 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.BuildJsonBodyService.getCreateRecordJsonBody(int,EudonetRestData,int,int) 16 5 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.web.EudonetRestTaskComponent.token() 16 5 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.web.EudonetRestTaskComponent.getTableListJson(String) 16 6 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.TaskEudonetRestConfigDAO.insert(TaskEudonetRestConfig) 15 1 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.TaskEudonetRestConfigDAO.store(TaskEudonetRestConfig) 15 1 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.EudonetLinkDAO.loadAll(int) 15 2 0
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.service.BuildJsonBodyService.getRecordFileValue(int,int,int) 15 5 1
fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business.EudonetLinkDAO.loadAll() 14 2 0

Averages.

Program NCSS NCSS average CCN average Javadocs average
1,544.00 6.90 2.14 0.74

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