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.mylutece.modules.notification.business.folder 10 77 332 87 334 13 330
fr.paris.lutece.plugins.mylutece.modules.notification.business 5 65 320 70 313 4 165
fr.paris.lutece.plugins.mylutece.modules.notification.web 3 13 316 16 88 18 99
fr.paris.lutece.plugins.mylutece.modules.notification.business.portlet 4 21 207 25 103 6 135
fr.paris.lutece.plugins.mylutece.modules.notification.service 3 21 144 24 126 17 106
fr.paris.lutece.plugins.mylutece.modules.notification.web.portlet 1 5 89 6 30 7 33
fr.paris.lutece.plugins.mylutece.modules.notification.business.parameter 3 10 68 13 63 0 99
fr.paris.lutece.plugins.mylutece.modules.notification.rs 1 2 58 3 18 6 33
fr.paris.lutece.plugins.mylutece.modules.notification.service.folder 1 9 46 10 47 0 33
fr.paris.lutece.plugins.mylutece.modules.notification.service.parameter 1 6 24 7 29 0 33
fr.paris.lutece.plugins.mylutece.modules.notification.service.portlet 1 7 21 8 34 0 33
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
33 236 1625 269 1185 71 1099

Objects

Objects

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

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.mylutece.modules.notification.web.NotificationApp 228 11 0 12
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationDAO 171 11 0 12
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderDAO 130 7 0 8
fr.paris.lutece.plugins.mylutece.modules.notification.business.portlet.NotificationListPortlet 115 9 0 10
fr.paris.lutece.plugins.mylutece.modules.notification.service.NotificationService 94 16 0 17
fr.paris.lutece.plugins.mylutece.modules.notification.web.portlet.NotificationListPortletJspBean 76 5 0 6
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationFilter 57 20 0 21
fr.paris.lutece.plugins.mylutece.modules.notification.business.Notification 44 17 0 18
fr.paris.lutece.plugins.mylutece.modules.notification.business.portlet.NotificationListPortletDAO 40 4 0 5
fr.paris.lutece.plugins.mylutece.modules.notification.business.parameter.NotificationParameterDAO 37 3 0 4
fr.paris.lutece.plugins.mylutece.modules.notification.rs.NotificationRest 37 2 0 3
fr.paris.lutece.plugins.mylutece.modules.notification.service.folder.FolderService 37 9 0 10
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.AbstractFolder 30 12 0 13
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationHome 21 9 0 10
fr.paris.lutece.plugins.mylutece.modules.notification.service.NotificationResourceIdService 21 4 0 5
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderArchive 20 6 0 7
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderInbox 20 6 0 7
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderOutbox 20 6 0 7
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderHome 19 8 0 9
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderType 18 7 0 8
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderPersonnal 18 5 0 6
fr.paris.lutece.plugins.mylutece.modules.notification.service.parameter.NotificationParameterService 18 6 0 7
fr.paris.lutece.plugins.mylutece.modules.notification.business.portlet.NotificationListPortletHome 15 4 0 5
fr.paris.lutece.plugins.mylutece.modules.notification.service.portlet.NotificationListPortletService 15 7 0 8
fr.paris.lutece.plugins.mylutece.modules.notification.web.NotificationJspBean 15 1 0 2
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.IFolder 14 13 0 14
fr.paris.lutece.plugins.mylutece.modules.notification.web.NotificationAdminDashboardComponent 12 1 0 2
fr.paris.lutece.plugins.mylutece.modules.notification.business.parameter.NotificationParameterHome 11 4 0 5
fr.paris.lutece.plugins.mylutece.modules.notification.business.INotificationDAO 9 8 0 9
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.IFolderDAO 8 7 0 8

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationFilter 57 20 0 21
fr.paris.lutece.plugins.mylutece.modules.notification.business.Notification 44 17 0 18
fr.paris.lutece.plugins.mylutece.modules.notification.service.NotificationService 94 16 0 17
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.IFolder 14 13 0 14
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.AbstractFolder 30 12 0 13
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationDAO 171 11 0 12
fr.paris.lutece.plugins.mylutece.modules.notification.web.NotificationApp 228 11 0 12
fr.paris.lutece.plugins.mylutece.modules.notification.business.portlet.NotificationListPortlet 115 9 0 10
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationHome 21 9 0 10
fr.paris.lutece.plugins.mylutece.modules.notification.service.folder.FolderService 37 9 0 10
fr.paris.lutece.plugins.mylutece.modules.notification.business.INotificationDAO 9 8 0 9
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderHome 19 8 0 9
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderDAO 130 7 0 8
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderType 18 7 0 8
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.IFolderDAO 8 7 0 8
fr.paris.lutece.plugins.mylutece.modules.notification.service.portlet.NotificationListPortletService 15 7 0 8
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderArchive 20 6 0 7
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderInbox 20 6 0 7
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderOutbox 20 6 0 7
fr.paris.lutece.plugins.mylutece.modules.notification.service.parameter.NotificationParameterService 18 6 0 7
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderPersonnal 18 5 0 6
fr.paris.lutece.plugins.mylutece.modules.notification.web.portlet.NotificationListPortletJspBean 76 5 0 6
fr.paris.lutece.plugins.mylutece.modules.notification.business.portlet.NotificationListPortletHome 15 4 0 5
fr.paris.lutece.plugins.mylutece.modules.notification.business.portlet.NotificationListPortletDAO 40 4 0 5
fr.paris.lutece.plugins.mylutece.modules.notification.business.portlet.INotificationListPortletDAO 5 4 0 5
fr.paris.lutece.plugins.mylutece.modules.notification.business.parameter.NotificationParameterHome 11 4 0 5
fr.paris.lutece.plugins.mylutece.modules.notification.service.NotificationResourceIdService 21 4 0 5
fr.paris.lutece.plugins.mylutece.modules.notification.business.parameter.NotificationParameterDAO 37 3 0 4
fr.paris.lutece.plugins.mylutece.modules.notification.business.parameter.INotificationParameterDAO 4 3 0 4
fr.paris.lutece.plugins.mylutece.modules.notification.rs.NotificationRest 37 2 0 3

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
41.88 1,625.00 0.00 7.15 8.15

Methods

Methods

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

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.mylutece.modules.notification.web.NotificationApp.getPage(HttpServletRequest,int,Plugin) 47 12 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.portlet.NotificationListPortlet.getXml(HttpServletRequest) 42 12 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderDAO.selectByUserGuid(String,Plugin) 29 7 1
fr.paris.lutece.plugins.mylutece.modules.notification.service.NotificationService.notify(String,String,String,String) 29 10 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderDAO.selectAll(Plugin) 28 7 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationDAO.selectNotificationsByFilter(NotificationFilter,Plugin) 27 3 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderDAO.load(int,Plugin) 27 7 1
fr.paris.lutece.plugins.mylutece.modules.notification.web.NotificationApp.getHtmlViewNotification(HttpServletRequest,int,LuteceUser) 23 7 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationDAO.selectAll(Plugin) 22 2 1
fr.paris.lutece.plugins.mylutece.modules.notification.web.portlet.NotificationListPortletJspBean.doModify(HttpServletRequest) 22 5 1
fr.paris.lutece.plugins.mylutece.modules.notification.web.NotificationApp.doCreateNotification(HttpServletRequest,LuteceUser) 22 8 1
fr.paris.lutece.plugins.mylutece.modules.notification.web.portlet.NotificationListPortletJspBean.doCreate(HttpServletRequest) 20 4 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.portlet.NotificationListPortlet.getNotificationsListXml(StringBuffer,LuteceUser,Locale,int,int) 18 5 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationDAO.insert(Notification,Plugin) 18 2 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationDAO.load(int,Plugin) 18 2 1
fr.paris.lutece.plugins.mylutece.modules.notification.web.portlet.NotificationListPortletJspBean.getModify(HttpServletRequest) 17 4 1
fr.paris.lutece.plugins.mylutece.modules.notification.web.NotificationApp.getHtmlManageNotifications(HttpServletRequest,int,LuteceUser) 17 1 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationDAO.buildSQLQuery(NotificationFilter,String) 16 5 1
fr.paris.lutece.plugins.mylutece.modules.notification.web.NotificationApp.getHtmlCreateNotification(HttpServletRequest,int,LuteceUser) 16 5 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderDAO.insert(IFolder,Plugin) 15 2 1
fr.paris.lutece.plugins.mylutece.modules.notification.rs.NotificationRest.doNotify(String,String,String,String) 15 4 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.parameter.NotificationParameterDAO.selectAll(Plugin) 13 3 1
fr.paris.lutece.plugins.mylutece.modules.notification.web.NotificationApp.getDeleteNotifications(HttpServletRequest,int) 13 4 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.portlet.NotificationListPortletDAO.load(int) 12 2 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.parameter.NotificationParameterDAO.load(String,Plugin) 12 3 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationDAO.store(Notification,Plugin) 11 2 1
fr.paris.lutece.plugins.mylutece.modules.notification.service.NotificationResourceIdService.register() 11 1 1
fr.paris.lutece.plugins.mylutece.modules.notification.web.NotificationJspBean.doModifyNotificationParameterDefaultValues(HttpServletRequest) 11 5 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationDAO.countNotificationsByFilter(NotificationFilter,Plugin) 10 2 1
fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationDAO.setFilterValues(NotificationFilter,DAOUtil) 10 5 1

Averages.

Program NCSS NCSS average CCN average Javadocs average
1,625.00 4.86 1.70 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).