JavaNCSS Metric Results

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

The following document contains the results of a JavaNCSS metric analysis, using JavaNCSS version 32.53.
JavaNCSS web site.

Packages

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

Packages sorted by NCSS.

PackageClassesMethodsNCSSJavadocsJavadoc linesSingle lines commentMulti lines comment
org.slasoi.businessManager.postSale.reporting.impl10961981639238270
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms19150598140592
org.slasoi.businessManager.postSale.reporting.impl.mapping4361794142133
org.slasoi.businessManager.postSale.reporting.impl.util312167630884
org.slasoi.businessManager.postSale.management1272261340
org.slasoi.businessManager.postSale.reporting.impl.types4744281161
org.slasoi.businessManager.postSale.reporting2132011123031
org.slasoi.businessManager.postSale.reporting.exception1390000
Classes totalMethods totalNCSS totalJavadocsJavadoc linesSingle lines commentMulti lines comment
443193070322242621311

Objects

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

TOP 30 classes containing the most NCSS.

ObjectNCSSMethodsClassesJavadocs
org.slasoi.businessManager.postSale.reporting.impl.BusinessSLAParser6881400
org.slasoi.businessManager.postSale.reporting.impl.CustomerRelationsImpl4994103
org.slasoi.businessManager.postSale.reporting.impl.PDFConversor3221401
org.slasoi.businessManager.postSale.reporting.impl.GraphsMaker94900
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Reporting822001
org.slasoi.businessManager.postSale.reporting.impl.util.JAXBUtils80605
org.slasoi.businessManager.postSale.reporting.impl.mapping.Report671501
org.slasoi.businessManager.postSale.management.CustomerManagement58202
org.slasoi.businessManager.postSale.reporting.impl.util.DateConverter57501
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.SupportProcedures52800
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Monitoring50600
org.slasoi.businessManager.postSale.reporting.impl.mapping.Specification49801
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Update48800
org.slasoi.businessManager.postSale.reporting.impl.ReportGenerator46301
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Support38700
org.slasoi.businessManager.postSale.reporting.impl.mapping.Group331001
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.BackupRecoveryMechanism31500
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Duration29900
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Parameter271000
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.SeverityLevel271000
org.slasoi.businessManager.postSale.reporting.impl.Mail26301
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.ReportFrecuency23700
org.slasoi.businessManager.postSale.reporting.impl.types.ParametersList23301
org.slasoi.businessManager.postSale.reporting.impl.FontType21500
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.BackupMechanismType21800
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.AggregationInterval20700
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.DataCollectionInterval20700
org.slasoi.businessManager.postSale.reporting.impl.DocumentFactory18300
org.slasoi.businessManager.postSale.reporting.impl.ImageFactory18200
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.DeliveryFrecuency17700

TOP 30 classes containing the most methods.

ObjectNCSSMethodsClassesJavadocs
org.slasoi.businessManager.postSale.reporting.impl.CustomerRelationsImpl4994103
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Reporting822001
org.slasoi.businessManager.postSale.reporting.impl.mapping.Report671501
org.slasoi.businessManager.postSale.reporting.impl.BusinessSLAParser6881400
org.slasoi.businessManager.postSale.reporting.impl.PDFConversor3221401
org.slasoi.businessManager.postSale.reporting.ICustomerRelations1211011
org.slasoi.businessManager.postSale.reporting.impl.mapping.Group331001
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Parameter271000
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.SeverityLevel271000
org.slasoi.businessManager.postSale.reporting.impl.GraphsMaker94900
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Duration29900
org.slasoi.businessManager.postSale.reporting.impl.mapping.Specification49801
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.BackupMechanismType21800
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.SupportProcedures52800
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Update48800
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.AggregationInterval20700
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.DataCollectionInterval20700
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.DeliveryFrecuency17700
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.ReportFrecuency23700
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.ResolutionTime17700
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.ResponseTime17700
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Support38700
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Content15600
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Monitoring50600
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.TimePeriod15600
org.slasoi.businessManager.postSale.reporting.impl.util.JAXBUtils80605
org.slasoi.businessManager.postSale.reporting.impl.FontType21500
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.AvailablePeriod12500
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.BackupRecoveryMechanism31500
org.slasoi.businessManager.postSale.reporting.impl.util.DateConverter57501

Averages.

NCSS averageProgram NCSSClasses averageMethods averageJavadocs average
61.643,070.000.007.250.73

Methods

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

TOP 30 Methods containing the most NCSS.

MethodsNCSSCCNJavadocs
org.slasoi.businessManager.postSale.reporting.impl.BusinessSLAParser.getReportingTerms(ParametersList,CustomAction)2921130
org.slasoi.businessManager.postSale.reporting.impl.BusinessSLAParser.loadAgreementTerms(ParametersList,SLATemplate)107320
org.slasoi.businessManager.postSale.reporting.impl.PDFConversor.createSlaInfoParagraph(ParametersList)9360
org.slasoi.businessManager.postSale.reporting.impl.PDFConversor.createTable(Group,ParametersList,ReportType)60130
org.slasoi.businessManager.postSale.reporting.impl.BusinessSLAParser.loadBusinessTerms(ParametersList,SLATemplate)56200
org.slasoi.businessManager.postSale.reporting.impl.CustomerRelationsImpl.readProductOffer(ParametersList,long)48110
org.slasoi.businessManager.postSale.reporting.impl.CustomerRelationsImpl.readBillingData(ParametersList,String,Date,Date)41100
org.slasoi.businessManager.postSale.reporting.impl.GraphsMaker.createChart(XYDataset)3610
org.slasoi.businessManager.postSale.management.CustomerManagement.checkAccess(SLATemplate)30151
org.slasoi.businessManager.postSale.reporting.impl.BusinessSLAParser.getPriceTerms(ParametersList,ProductOfferingPrice)2980
org.slasoi.businessManager.postSale.reporting.impl.CustomerRelationsImpl.generateFilename(ReportType,String)2751
org.slasoi.businessManager.postSale.management.CustomerManagement.customerPurchaseAuth(long,long)25111
org.slasoi.businessManager.postSale.reporting.impl.BusinessSLAParser.getSupportProceduresTerms(ParametersList,CustomAction)2570
org.slasoi.businessManager.postSale.reporting.impl.PDFConversor.toPDFFile(Report,ParametersList,String)2560
org.slasoi.businessManager.postSale.reporting.impl.PDFConversor.createProductOfferParagraph(EmSpProductsOffer)2550
org.slasoi.businessManager.postSale.reporting.impl.BusinessSLAParser.getMonitoringTerms(ParametersList,CustomAction)2470
org.slasoi.businessManager.postSale.reporting.impl.BusinessSLAParser.getSupportTerms(ParametersList,CustomAction)2480
org.slasoi.businessManager.postSale.reporting.impl.BusinessSLAParser.getBackupTerms(ParametersList,CustomAction)2470
org.slasoi.businessManager.postSale.reporting.impl.CustomerRelationsImpl.readSLAs(ParametersList)2480
org.slasoi.businessManager.postSale.reporting.impl.BusinessSLAParser.getTerminationTerms(ParametersList,TerminationClause)2350
org.slasoi.businessManager.postSale.reporting.impl.CustomerRelationsImpl.getSLA(String)2361
org.slasoi.businessManager.postSale.reporting.impl.PDFConversor.createParagraph(Group,ParametersList,ReportType)2380
org.slasoi.businessManager.postSale.reporting.impl.CustomerRelationsImpl.readSLA(String,ParametersList)2190
org.slasoi.businessManager.postSale.reporting.impl.PDFConversor.createBillingInfoParagraph(ParametersList)2120
org.slasoi.businessManager.postSale.reporting.impl.CustomerRelationsImpl.sendPenaltiesReportByProductOfferIdPartyIdYearMonthDay(long,long,int,int,int)2050
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Monitoring.fromXML(String)2030
org.slasoi.businessManager.postSale.reporting.impl.util.JAXBUtils.saveToFile(Object,String)2031
org.slasoi.businessManager.postSale.reporting.impl.BusinessSLAParser.getUpdateTerms(ParametersList,CustomAction)1950
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.Reporting.fromXML(String)1930
org.slasoi.businessManager.postSale.reporting.impl.types.businessTerms.SupportProcedures.fromXML(String)1930

Averages.

Program NCSSNCSS averageCCN averageJavadocs average
3,070.007.852.310.06

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 declarationpackage java.lang;
Import declarationimport java.awt.*;
Class declaration
  • public class Foo {
  • public class Foo extends Bla {
Interface declarationpublic interface Able ; {
Field declaration
  • int a;
  • int a, b, c = 5, d = 6;
Method declaration
  • public void cry();
  • public void gib() throws DeadException {
Constructor declarationpublic Foo() {
Constructor invocation
  • this();
  • super();
Statement declaration
  • i = 0;
  • if (ok)
  • if (exit) {
  • if (3 == 4);
  • if (4 == 4) { ;
  • } else {
Label declarationfine :

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