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.upload.services 5 32 247 36 172 17 170
fr.paris.lutece.plugins.workflow.modules.upload.web 2 9 227 10 52 13 73
fr.paris.lutece.plugins.workflow.modules.upload.business.file 3 19 108 21 114 3 105
fr.paris.lutece.plugins.workflow.modules.upload.services.download 3 9 81 12 79 5 102
fr.paris.lutece.plugins.workflow.modules.upload.business.task 2 12 73 14 66 0 66
fr.paris.lutece.plugins.workflow.modules.upload.business.history 3 14 71 15 82 3 116
fr.paris.lutece.plugins.workflow.modules.upload.services.provider 1 4 53 5 16 4 33
fr.paris.lutece.plugins.workflow.modules.upload.services.taskinfo 1 2 30 3 11 0 33
fr.paris.lutece.plugins.workflow.modules.upload.factory 2 5 17 7 27 0 66
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
22 106 907 123 619 45 764

Objects

Objects

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

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.workflow.modules.upload.web.UploadTaskComponent 98 6 0 6
fr.paris.lutece.plugins.workflow.modules.upload.services.TaskUploadAsynchronousUploadHandler 79 10 0 10
fr.paris.lutece.plugins.workflow.modules.upload.business.file.UploadFileDAO 69 6 0 6
fr.paris.lutece.plugins.workflow.modules.upload.web.UploadJspBean 65 3 0 4
fr.paris.lutece.plugins.workflow.modules.upload.business.task.TaskUploadConfigDAO 46 4 0 5
fr.paris.lutece.plugins.workflow.modules.upload.business.history.UploadHistoryDAO 39 4 0 5
fr.paris.lutece.plugins.workflow.modules.upload.services.download.UploadWorkflowFileServlet 39 5 0 6
fr.paris.lutece.plugins.workflow.modules.upload.services.UploadHistoryService 38 7 0 8
fr.paris.lutece.plugins.workflow.modules.upload.services.provider.UploadMarkerProvider 37 4 0 5
fr.paris.lutece.plugins.workflow.modules.upload.services.TaskUpload 29 6 0 7
fr.paris.lutece.plugins.workflow.modules.upload.business.task.TaskUploadConfig 21 8 0 9
fr.paris.lutece.plugins.workflow.modules.upload.business.file.UploadFile 21 8 0 9
fr.paris.lutece.plugins.workflow.modules.upload.services.UploadResourceIdService 21 4 0 5
fr.paris.lutece.plugins.workflow.modules.upload.business.history.UploadHistory 19 6 0 5
fr.paris.lutece.plugins.workflow.modules.upload.services.taskinfo.UploadTaskInfoProvider 19 2 0 3
fr.paris.lutece.plugins.workflow.modules.upload.services.download.DownloadFileService 16 2 0 3
fr.paris.lutece.plugins.workflow.modules.upload.business.file.IUploadFileDAO 7 5 0 6
fr.paris.lutece.plugins.workflow.modules.upload.services.IUploadHistoryService 7 5 0 6
fr.paris.lutece.plugins.workflow.modules.upload.business.history.IUploadHistoryDAO 6 4 0 5
fr.paris.lutece.plugins.workflow.modules.upload.factory.FactoryDOA 6 3 0 4
fr.paris.lutece.plugins.workflow.modules.upload.services.download.RequestAuthenticationService 5 2 0 3
fr.paris.lutece.plugins.workflow.modules.upload.factory.FactoryService 4 2 0 3

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.workflow.modules.upload.services.TaskUploadAsynchronousUploadHandler 79 10 0 10
fr.paris.lutece.plugins.workflow.modules.upload.business.task.TaskUploadConfig 21 8 0 9
fr.paris.lutece.plugins.workflow.modules.upload.business.file.UploadFile 21 8 0 9
fr.paris.lutece.plugins.workflow.modules.upload.services.UploadHistoryService 38 7 0 8
fr.paris.lutece.plugins.workflow.modules.upload.web.UploadTaskComponent 98 6 0 6
fr.paris.lutece.plugins.workflow.modules.upload.business.file.UploadFileDAO 69 6 0 6
fr.paris.lutece.plugins.workflow.modules.upload.business.history.UploadHistory 19 6 0 5
fr.paris.lutece.plugins.workflow.modules.upload.services.TaskUpload 29 6 0 7
fr.paris.lutece.plugins.workflow.modules.upload.business.file.IUploadFileDAO 7 5 0 6
fr.paris.lutece.plugins.workflow.modules.upload.services.IUploadHistoryService 7 5 0 6
fr.paris.lutece.plugins.workflow.modules.upload.services.download.UploadWorkflowFileServlet 39 5 0 6
fr.paris.lutece.plugins.workflow.modules.upload.business.task.TaskUploadConfigDAO 46 4 0 5
fr.paris.lutece.plugins.workflow.modules.upload.business.history.UploadHistoryDAO 39 4 0 5
fr.paris.lutece.plugins.workflow.modules.upload.business.history.IUploadHistoryDAO 6 4 0 5
fr.paris.lutece.plugins.workflow.modules.upload.services.provider.UploadMarkerProvider 37 4 0 5
fr.paris.lutece.plugins.workflow.modules.upload.services.UploadResourceIdService 21 4 0 5
fr.paris.lutece.plugins.workflow.modules.upload.web.UploadJspBean 65 3 0 4
fr.paris.lutece.plugins.workflow.modules.upload.factory.FactoryDOA 6 3 0 4
fr.paris.lutece.plugins.workflow.modules.upload.services.download.DownloadFileService 16 2 0 3
fr.paris.lutece.plugins.workflow.modules.upload.services.download.RequestAuthenticationService 5 2 0 3
fr.paris.lutece.plugins.workflow.modules.upload.services.taskinfo.UploadTaskInfoProvider 19 2 0 3
fr.paris.lutece.plugins.workflow.modules.upload.factory.FactoryService 4 2 0 3

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
31.41 907.00 0.00 4.82 5.59

Methods

Methods

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

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.workflow.modules.upload.web.UploadJspBean.doRemoveUpload(HttpServletRequest) 29 8 1
fr.paris.lutece.plugins.workflow.modules.upload.services.download.UploadWorkflowFileServlet.processRequest(HttpServletRequest,HttpServletResponse) 26 9 1
fr.paris.lutece.plugins.workflow.modules.upload.web.UploadTaskComponent.validateConfig(ITaskConfig,HttpServletRequest) 22 8 0
fr.paris.lutece.plugins.workflow.modules.upload.services.TaskUploadAsynchronousUploadHandler.canUploadFiles(HttpServletRequest,String,FileItem,Locale) 21 13 1
fr.paris.lutece.plugins.workflow.modules.upload.web.UploadTaskComponent.getDisplayTaskInformation(int,HttpServletRequest,Locale,ITask) 19 3 1
fr.paris.lutece.plugins.workflow.modules.upload.business.file.UploadFileDAO.load(int,Plugin) 18 3 1
fr.paris.lutece.plugins.workflow.modules.upload.services.provider.UploadMarkerProvider.provideMarkerValues(ResourceHistory,ITask,HttpServletRequest) 18 5 1
fr.paris.lutece.plugins.workflow.modules.upload.business.task.TaskUploadConfigDAO.load(int) 15 2 1
fr.paris.lutece.plugins.workflow.modules.upload.business.file.UploadFileDAO.findbyprimaryKey(int,Plugin) 15 2 0
fr.paris.lutece.plugins.workflow.modules.upload.business.history.UploadHistoryDAO.load(int,int,Plugin) 14 2 1
fr.paris.lutece.plugins.workflow.modules.upload.services.TaskUploadAsynchronousUploadHandler.addFileItemToUploadedFilesList(FileItem,String,HttpServletRequest) 14 7 1
fr.paris.lutece.plugins.workflow.modules.upload.web.UploadJspBean.getConfirmRemoveUpload(HttpServletRequest) 13 3 1
fr.paris.lutece.plugins.workflow.modules.upload.services.taskinfo.UploadTaskInfoProvider.getTaskResourceInfo(int,int,HttpServletRequest) 13 3 1
fr.paris.lutece.plugins.workflow.modules.upload.services.TaskUploadAsynchronousUploadHandler.initMap(String,String) 12 4 1
fr.paris.lutece.plugins.workflow.modules.upload.services.UploadHistoryService.create(int,int,FileItem,Plugin) 12 2 1
fr.paris.lutece.plugins.workflow.modules.upload.web.UploadTaskComponent.getDisplayTaskForm(int,String,HttpServletRequest,Locale,ITask) 11 1 1
fr.paris.lutece.plugins.workflow.modules.upload.business.task.TaskUploadConfigDAO.store(TaskUploadConfig) 11 1 1
fr.paris.lutece.plugins.workflow.modules.upload.services.UploadResourceIdService.register() 11 1 1
fr.paris.lutece.plugins.workflow.modules.upload.web.UploadTaskComponent.doValidateTask(int,String,HttpServletRequest,Locale,ITask) 10 6 1
fr.paris.lutece.plugins.workflow.modules.upload.web.UploadJspBean.canDeleteUpload(HttpServletRequest) 10 2 1
fr.paris.lutece.plugins.workflow.modules.upload.business.task.TaskUploadConfigDAO.insert(TaskUploadConfig) 10 1 1
fr.paris.lutece.plugins.workflow.modules.upload.services.download.DownloadFileService.getUrlDownloadFile(int,String) 10 1 1
fr.paris.lutece.plugins.workflow.modules.upload.business.file.UploadFileDAO.insert(UploadFile,Plugin) 9 1 1
fr.paris.lutece.plugins.workflow.modules.upload.services.UploadHistoryService.buildFileWithPhysicalFile(FileItem) 9 2 1
fr.paris.lutece.plugins.workflow.modules.upload.web.UploadTaskComponent.getTaskInformationXml(int,HttpServletRequest,Locale,ITask) 8 2 1
fr.paris.lutece.plugins.workflow.modules.upload.business.file.UploadFileDAO.newPrimaryKey(Plugin) 8 2 1
fr.paris.lutece.plugins.workflow.modules.upload.business.history.UploadHistoryDAO.insert(UploadHistory,Plugin) 7 1 1
fr.paris.lutece.plugins.workflow.modules.upload.business.history.UploadHistoryDAO.deleteByHistory(int,int,Plugin) 7 1 1
fr.paris.lutece.plugins.workflow.modules.upload.services.TaskUpload.getTaskFormEntries(Locale) 7 2 1
fr.paris.lutece.plugins.workflow.modules.upload.web.UploadTaskComponent.getDisplayConfigForm(HttpServletRequest,Locale,ITask) 6 1 1

Averages.

Program NCSS NCSS average CCN average Javadocs average
907.00 5.39 1.77 0.95

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