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
com.tvnavig.server.user.service.common 5 67 416 47 205 5 195
com.tvnavig.server.user 5 39 398 8 28 10 195
com.tvnavig.server.searchengine 5 37 364 8 28 10 195
com.tvnavig.server.searchengine.service.common 2 37 237 28 128 2 78
fr.paris.lutece.plugins.parisvideo.web 2 9 184 8 29 11 66
fr.paris.lutece.plugins.parisvideo.business 4 17 98 10 45 3 132
com.tvnavig.server.asset.service.common 1 13 79 9 39 1 39
fr.paris.lutece.plugins.parisvideo.service 2 5 61 4 27 0 66
com.tvnavig.server.util 1 10 56 6 22 1 39
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
27 234 1893 128 551 43 1005

Objects

Objects

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

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
com.tvnavig.server.user.UserServiceSoapBindingStub 284 9 0 0
com.tvnavig.server.searchengine.SearchAssetServiceSoapBindingStub 251 8 0 0
com.tvnavig.server.searchengine.service.common.AssetOGC 170 26 0 21
com.tvnavig.server.user.service.common.UserServiceResult 106 17 0 13
fr.paris.lutece.plugins.parisvideo.web.ParisvideoJspBean 106 6 0 6
com.tvnavig.server.user.service.common.MetaDataResult 93 15 0 11
com.tvnavig.server.asset.service.common.MetaValueResult 78 13 0 9
com.tvnavig.server.user.service.common.UserGroupResult 78 13 0 9
com.tvnavig.server.user.service.common.UserGroupandMetaDataResult 70 11 0 7
com.tvnavig.server.searchengine.service.common.AssetPlayer 64 11 0 7
com.tvnavig.server.user.service.common.UserDomainResult 64 11 0 7
com.tvnavig.server.searchengine.SearchAssetServiceServiceLocator 61 15 0 4
com.tvnavig.server.user.UserServiceServiceLocator 61 15 0 4
com.tvnavig.server.util.ServiceException 55 10 0 6
fr.paris.lutece.plugins.parisvideo.web.ManageParisVideoJspBean 43 3 0 2
fr.paris.lutece.plugins.parisvideo.business.ParisVideoDAO 42 4 0 4
com.tvnavig.server.searchengine.SearchAssetServiceException 39 8 0 4
com.tvnavig.server.user.UserServiceException 39 8 0 4
fr.paris.lutece.plugins.parisvideo.business.ParisVideoAccount 31 8 0 1
fr.paris.lutece.plugins.parisvideo.service.ParisvideoService 23 3 0 4
fr.paris.lutece.plugins.parisvideo.service.SingleSessionHttpTransport 13 2 0 0
fr.paris.lutece.plugins.parisvideo.business.ParisVideoHome 8 2 0 2
com.tvnavig.server.user.UserService 5 4 0 0
com.tvnavig.server.searchengine.SearchAssetService 4 3 0 0
com.tvnavig.server.searchengine.SearchAssetServiceService 4 3 0 0
com.tvnavig.server.user.UserServiceService 4 3 0 0
fr.paris.lutece.plugins.parisvideo.business.IParisVideoDAO 4 3 0 3

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
com.tvnavig.server.searchengine.service.common.AssetOGC 170 26 0 21
com.tvnavig.server.user.service.common.UserServiceResult 106 17 0 13
com.tvnavig.server.searchengine.SearchAssetServiceServiceLocator 61 15 0 4
com.tvnavig.server.user.service.common.MetaDataResult 93 15 0 11
com.tvnavig.server.user.UserServiceServiceLocator 61 15 0 4
com.tvnavig.server.asset.service.common.MetaValueResult 78 13 0 9
com.tvnavig.server.user.service.common.UserGroupResult 78 13 0 9
com.tvnavig.server.searchengine.service.common.AssetPlayer 64 11 0 7
com.tvnavig.server.user.service.common.UserDomainResult 64 11 0 7
com.tvnavig.server.user.service.common.UserGroupandMetaDataResult 70 11 0 7
com.tvnavig.server.util.ServiceException 55 10 0 6
com.tvnavig.server.user.UserServiceSoapBindingStub 284 9 0 0
com.tvnavig.server.searchengine.SearchAssetServiceException 39 8 0 4
com.tvnavig.server.searchengine.SearchAssetServiceSoapBindingStub 251 8 0 0
com.tvnavig.server.user.UserServiceException 39 8 0 4
fr.paris.lutece.plugins.parisvideo.business.ParisVideoAccount 31 8 0 1
fr.paris.lutece.plugins.parisvideo.web.ParisvideoJspBean 106 6 0 6
com.tvnavig.server.user.UserService 5 4 0 0
fr.paris.lutece.plugins.parisvideo.business.ParisVideoDAO 42 4 0 4
com.tvnavig.server.searchengine.SearchAssetService 4 3 0 0
com.tvnavig.server.searchengine.SearchAssetServiceService 4 3 0 0
com.tvnavig.server.user.UserServiceService 4 3 0 0
fr.paris.lutece.plugins.parisvideo.business.IParisVideoDAO 4 3 0 3
fr.paris.lutece.plugins.parisvideo.service.ParisvideoService 23 3 0 4
fr.paris.lutece.plugins.parisvideo.web.ManageParisVideoJspBean 43 3 0 2
fr.paris.lutece.plugins.parisvideo.business.ParisVideoHome 8 2 0 2
fr.paris.lutece.plugins.parisvideo.service.SingleSessionHttpTransport 13 2 0 0

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
66.67 1,893.00 0.00 8.67 4.74

Methods

Methods

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

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
com.tvnavig.server.user.UserServiceSoapBindingStub.UserServiceSoapBindingStub(javax.xml.rpc.Service) 93 2 0
com.tvnavig.server.searchengine.SearchAssetServiceSoapBindingStub.SearchAssetServiceSoapBindingStub(javax.xml.rpc.Service) 73 2 0
com.tvnavig.server.searchengine.SearchAssetServiceSoapBindingStub._initOperationDesc1() 48 1 0
com.tvnavig.server.user.UserServiceSoapBindingStub._initOperationDesc1() 44 1 0
com.tvnavig.server.searchengine.SearchAssetServiceSoapBindingStub.createCall() 38 15 0
com.tvnavig.server.user.UserServiceSoapBindingStub.createCall() 38 15 0
com.tvnavig.server.searchengine.service.common.AssetOGC.hashCode() 30 17 0
fr.paris.lutece.plugins.parisvideo.web.ParisvideoJspBean.doAuth2(HttpServletRequest) 27 5 1
com.tvnavig.server.searchengine.SearchAssetServiceSoapBindingStub.getAsset(int,int) 26 15 0
com.tvnavig.server.searchengine.SearchAssetServiceSoapBindingStub.getAssetsList(int,java.lang.String,com.tvnavig.server.asset.service.common.MetaValueResult[],java.util.Calendar,java.util.Calendar,java.lang.String) 26 15 0
com.tvnavig.server.searchengine.SearchAssetServiceSoapBindingStub.getAssetPlayer(int) 26 15 0
com.tvnavig.server.user.UserServiceSoapBindingStub.authenticate(java.lang.String,java.lang.String) 26 15 0
com.tvnavig.server.user.UserServiceSoapBindingStub.getDomainsFromUser(int) 26 15 0
com.tvnavig.server.user.UserServiceSoapBindingStub.getGroupsandMetaDatasFromDomain(int) 26 15 0
fr.paris.lutece.plugins.parisvideo.web.ParisvideoJspBean.getInsertServiceSelectorUI(HttpServletRequest) 21 4 1
com.tvnavig.server.user.service.common.UserGroupandMetaDataResult.hashCode() 17 11 0
com.tvnavig.server.user.service.common.UserServiceResult.hashCode() 17 8 0
com.tvnavig.server.user.UserServiceSoapBindingStub.isAlive() 17 7 0
com.tvnavig.server.user.service.common.MetaDataResult.hashCode() 16 8 0
com.tvnavig.server.asset.service.common.MetaValueResult.equals(java.lang.Object) 15 21 0
com.tvnavig.server.searchengine.SearchAssetServiceException.equals(java.lang.Object) 15 9 0
com.tvnavig.server.searchengine.service.common.AssetOGC.equals(java.lang.Object) 15 42 0
com.tvnavig.server.searchengine.service.common.AssetPlayer.equals(java.lang.Object) 15 17 0
com.tvnavig.server.util.ServiceException.equals(java.lang.Object) 15 13 0
com.tvnavig.server.user.UserServiceException.equals(java.lang.Object) 15 9 0
com.tvnavig.server.user.service.common.UserDomainResult.equals(java.lang.Object) 15 17 0
com.tvnavig.server.user.service.common.UserGroupandMetaDataResult.equals(java.lang.Object) 15 17 0
com.tvnavig.server.user.service.common.UserGroupResult.equals(java.lang.Object) 15 21 0
com.tvnavig.server.user.service.common.MetaDataResult.equals(java.lang.Object) 15 19 0
com.tvnavig.server.user.service.common.UserServiceResult.equals(java.lang.Object) 15 29 0

Averages.

Program NCSS NCSS average CCN average Javadocs average
1,893.00 6.14 2.92 0.52

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