The following document contains the results of PMD 5.3.2.

Files

premon - eu/fbk/dkm/premon/premonitor/BankConverter.java

Violation Line
Possible God class (WMC=101, ATFD=101, TCC=0.010526315789473684) 1720
The class 'BankConverter' has a Modified Cyclomatic Complexity of 4 (Highest = 38). 57720
The class 'BankConverter' has a Standard Cyclomatic Complexity of 4 (Highest = 38). 57720
The class 'BankConverter' has a Cyclomatic Complexity of 4 (Highest = 41). 57720
Avoid using redundant field initializer for 'nonVerbsToo' 64
Avoid using redundant field initializer for 'isOntoNotes' 65
Avoid using redundant field initializer for 'noDef' 66
Avoid using redundant field initializer for 'mapArgLabel' 87
Parameter 'properties' is not assigned and could be declared final 108
Parameter 'language' is not assigned and could be declared final 108
Parameter 'sink' is not assigned and could be declared final 108
Parameter 'path' is not assigned and could be declared final 108
Parameter 'resource' is not assigned and could be declared final 108
The constructor 'BankConverter' has a Cyclomatic Complexity of 10. 108154
Parameter 'wnInfo' is not assigned and could be declared final 109
Local variable 'vnPath' could be declared final 114
Local variable 'vnFile' could be declared final 117
Local variable 'thisClass' could be declared final 130
Local variable 'id' could be declared final 131
Local variable 'mID' could be declared final 132
Deeply nested if..then statements are hard to read 133137
Parameter 'isOntoNotes' is not assigned and could be declared final 156
Parameter 'file' is not assigned and could be declared final 156
Parameter 'onlyVerbs' is not assigned and could be declared final 156
These nested if statements could be combined 168171
The method convert() has an NPath complexity of 20244674 178510
Avoid really long methods. 178510
The method 'convert' has a Cyclomatic Complexity of 41. 178510
The method convert() has an NCSS line count of 186 178510
The method 'convert' has a Modified Cyclomatic Complexity of 38. 178510
The method 'convert' has a Standard Cyclomatic Complexity of 38. 178510
Local variable 'jaxbContext' could be declared final 188
Local variable 'jaxbUnmarshaller' could be declared final 189
Local variable 'file' could be declared final 191
Avoid instantiating new objects inside loops 199
Local variable 'type' could be declared final 223
Local variable 'origLemma' could be declared final 224
Local variable 'uriOrigLemma' could be declared final 225
Local variable 'noteOrPredicate' could be declared final 227
Local variable 'predicate' could be declared final 229
Local variable 'replacedLemma' could be declared final 232
Local variable 'uriLemma' could be declared final 233
Local variable 'goodLemma' could be declared final 234
Local variable 'tokens' could be declared final 236
Avoid instantiating new objects inside loops 236
Local variable 'pos' could be declared final 237
Avoid instantiating new objects inside loops 237
Local variable 'lexicalEntryURI' could be declared final 241242
Local variable 'noteOrRoleset' could be declared final 244
Local variable 'roleset' could be declared final 245
Local variable 'rolesetURI' could be declared final 253
Local variable 'conceptualizationURI' could be declared final 264
Local variable 'rolesOrExample' could be declared final 274275
Local variable 'functionMap' could be declared final 277
Local variable 'key' could be declared final 278
Local variable 'argumentURI' could be declared final 279
Local variable 'examples' could be declared final 284
Avoid instantiating new objects inside loops 284
Local variable 'rOrE' could be declared final 286
Local variable 'noteOrRole' could be declared final 288
Local variable 'role' could be declared final 289
Deeply nested if..then statements are hard to read 290328
Local variable 'n' could be declared final 291
Local variable 'f' could be declared final 292
Local variable 'descr' could be declared final 293
Avoid instantiating new objects inside loops 295
Local variable 'nf' could be declared final 295
Local variable 'argumentURI' could be declared final 317
Local variable 'example' could be declared final 344
Local variable 'exName' could be declared final 348
Local variable 'exSrc' could be declared final 349
Local variable 'myRels' could be declared final 351
Avoid instantiating new objects inside loops 351
Local variable 'myArgs' could be declared final 352
Avoid instantiating new objects inside loops 352
Local variable 'exThings' could be declared final 354355
Local variable 'thing' could be declared final 356
Local variable 'exampleURI' could be declared final 378
Local variable 'annotationSetURI' could be declared final 379
Deeply nested if..then statements are hard to read 386388
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 392
Local variable 'rel' could be declared final 397
Local variable 'origValue' could be declared final 399400
Local variable 'start' could be declared final 403
Deeply nested if..then statements are hard to read 404409
Local variable 'end' could be declared final 410
Local variable 'markableURI' could be declared final 412
Local variable 'annotationURI' could be declared final 413
Avoid instantiating new objects inside loops 434
Local variable 'nf' could be declared final 434
Local variable 'argName' could be declared final 435
Local variable 'argType' could be declared final 436
Local variable 'arg' could be declared final 442
Local variable 'value' could be declared final 443444
Local variable 'start' could be declared final 446
Deeply nested if..then statements are hard to read 447451
Local variable 'end' could be declared final 452
Local variable 'markableURI' could be declared final 454
Local variable 'annotationURI' could be declared final 455
Avoid instantiating new objects inside loops 471
Local variable 'nf' could be declared final 471
Deeply nested if..then statements are hard to read 474477
Deeply nested if..then statements are hard to read 480482
Local variable 'argumentURI' could be declared final 492493
Parameter 'roleset' is not assigned and could be declared final 514
Local variable 'ret' could be declared final 516
Local variable 'source' could be declared final 518
Local variable 'parts' could be declared final 521
Local variable 'part' could be declared final 522
String.trim().length()==0 is an inefficient way to validate an empty String. 523
Local variable 'matcher' could be declared final 527
Avoid reassigning parameters such as 'vnList' 539
Avoid reassigning parameters such as 'vnList' 539
Local variable 'vnClasses' could be declared final 541
Local variable 'tmpClasses' could be declared final 547
Position literals first in String comparisons 553
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 561
Local variable 'matcher' could be declared final 562
Parameter 'argumentURI' is not assigned and could be declared final 578
Parameter 'vnLemmas' is not assigned and could be declared final 578
Parameter 'rolesetID' is not assigned and could be declared final 578
Parameter 'uriLemma' is not assigned and could be declared final 578
Parameter 'role' is not assigned and could be declared final 578
Parameter 'type' is not assigned and could be declared final 578
Local variable 'rolesetURI' could be declared final 580
Local variable 'conceptualizationURI' could be declared final 581
Local variable 'vnroleList' could be declared final 583
Local variable 'vnrole' could be declared final 584
Local variable 'vnClasses' could be declared final 585
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 591
Local variable 'vnClass' could be declared final 593
Local variable 'vnLink' could be declared final 594
Local variable 'vnLemma' could be declared final 595
Local variable 'vnClassURI' could be declared final 599
Local variable 'vnConceptualizationURI' could be declared final 600601
Local variable 'vnArgumentURI' could be declared final 602
Parameter 'lemmaFromPredicate' is not assigned and could be declared final 617
Parameter 'lemma' is not assigned and could be declared final 626
Parameter 'key' is not assigned and could be declared final 626
Parameter 'argumentURI' is not assigned and could be declared final 626
Parameter 'keyURI' is not assigned and could be declared final 626
Parameter 'role' is not assigned and could be declared final 627
Parameter 'lexicalEntryURI' is not assigned and could be declared final 627
Parameter 'rolesetID' is not assigned and could be declared final 627
Parameter 'vnLemmas' is not assigned and could be declared final 627
Parameter 'type' is not assigned and could be declared final 627
Parameter 'exampleText' is not assigned and could be declared final 644
Parameter 'rolesetID' is not assigned and could be declared final 644
Avoid long parameter lists. 686687
Parameter 'textualPOS' is not assigned and could be declared final 696
Switch statements should have a default label 701708

premon - eu/fbk/dkm/premon/premonitor/Converter.java

Violation Line
Possible God class (WMC=99, ATFD=55, TCC=0.11942959001782531) 1669
Avoid unused imports such as 'org.openrdf.query.algebra.evaluation.function.hash.MD5' 22
Too many fields 38669
Avoid using redundant field initializer for 'total' 50
Avoid using redundant field initializer for 'added' 50
Avoid using redundant field initializer for 'notadded' 50
Avoid using redundant field initializer for 'ncon' 51
Avoid using redundant field initializer for 'nrole' 51
Avoid using redundant field initializer for 'nclass' 51
Avoid using redundant field initializer for 'website' 61
Avoid using redundant field initializer for 'baseResource' 62
Avoid using redundant field initializer for 'extractExamples' 70
Avoid instantiating new objects inside loops 87
Avoid using redundant field initializer for 'onlyOne' 113
Parameter 'onlyOne' is not assigned and could be declared final 119
Parameter 'resource' is not assigned and could be declared final 123
Parameter 'wnInfo' is not assigned and could be declared final 128
Parameter 'newSink' is not assigned and could be declared final 155
Parameter 'linkString' is not assigned and could be declared final 161
Parameter 'linkList' is not assigned and could be declared final 161
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 166
Parameter 'object' is not assigned and could be declared final 174
Parameter 'predicate' is not assigned and could be declared final 174
Parameter 'subject' is not assigned and could be declared final 174
Parameter 'statement' is not assigned and could be declared final 178
Parameter 'object' is not assigned and could be declared final 186
Parameter 'predicate' is not assigned and could be declared final 186
Parameter 'graph' is not assigned and could be declared final 186
Parameter 'subject' is not assigned and could be declared final 186
Local variable 'statement' could be declared final 194
Ensure that resources like this Statement object are closed after use 194
Parameter 'subject' is not assigned and could be declared final 202
Parameter 'objectValue' is not assigned and could be declared final 202
Parameter 'predicate' is not assigned and could be declared final 202
Parameter 'predicate' is not assigned and could be declared final 206
Parameter 'objectValue' is not assigned and could be declared final 206
Parameter 'subject' is not assigned and could be declared final 206
Parameter 'graph' is not assigned and could be declared final 207
Parameter 'predicate' is not assigned and could be declared final 211
Parameter 'objectValue' is not assigned and could be declared final 211
Parameter 'subject' is not assigned and could be declared final 211
Parameter 'useLanguage' is not assigned and could be declared final 212
Parameter 'predicate' is not assigned and could be declared final 216
Parameter 'subject' is not assigned and could be declared final 216
Parameter 'objectValue' is not assigned and could be declared final 216
Parameter 'useLanguage' is not assigned and could be declared final 217
Parameter 'graph' is not assigned and could be declared final 217
Parameter 'objectValue' is not assigned and could be declared final 234
Parameter 'subject' is not assigned and could be declared final 234
Parameter 'predicate' is not assigned and could be declared final 234
Local variable 'object' could be declared final 235
Parameter 'objectValue' is not assigned and could be declared final 239
Parameter 'subject' is not assigned and could be declared final 239
Parameter 'predicate' is not assigned and could be declared final 239
Local variable 'object' could be declared final 240
Parameter 'subject' is not assigned and could be declared final 244
Parameter 'objectValue' is not assigned and could be declared final 244
Parameter 'predicate' is not assigned and could be declared final 244
Local variable 'object' could be declared final 245
Parameter 'graph' is not assigned and could be declared final 249
Parameter 'predicate' is not assigned and could be declared final 249
Parameter 'subject' is not assigned and could be declared final 249
Parameter 'objectValue' is not assigned and could be declared final 249
Local variable 'object' could be declared final 250
Parameter 'rolesetID' is not assigned and could be declared final 254
Parameter 'rolesetID' is not assigned and could be declared final 258
Parameter 'prefix' is not assigned and could be declared final 258
Local variable 'builder' could be declared final 259
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 260
Parameter 'rolesetID' is not assigned and could be declared final 265
Avoid reassigning parameters such as 'prefix' 269
Parameter 'rolesetID' is not assigned and could be declared final 269
Local variable 'builder' could be declared final 273
Parameter 'uriLemma' is not assigned and could be declared final 282
Parameter 'tokens' is not assigned and could be declared final 282
Parameter 'goodLemma' is not assigned and could be declared final 282
Parameter 'pos' is not assigned and could be declared final 283
Parameter 'mainPos' is not assigned and could be declared final 283
Parameter 'lexiconURI' is not assigned and could be declared final 283
Local variable 'leURI' could be declared final 285
Local variable 'token' could be declared final 288
Local variable 'thisURI' could be declared final 295
Parameter 'uriLemma' is not assigned and could be declared final 304
Parameter 'pos' is not assigned and could be declared final 304
Parameter 'lexiconURI' is not assigned and could be declared final 304
Parameter 'goodLemma' is not assigned and could be declared final 304
Local variable 'posURI' could be declared final 305
Local variable 'leURI' could be declared final 306
Local variable 'formURI' could be declared final 307
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 322
Local variable 'wnPos' could be declared final 323
Local variable 'wnLemma' could be declared final 325
Local variable 'wnURI' could be declared final 326
Parameter 'lemma' is not assigned and could be declared final 368
Parameter 'type' is not assigned and could be declared final 368
Local variable 'builder' could be declared final 369
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 370
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 371
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 372
Parameter 'type' is not assigned and could be declared final 377
Parameter 'lemma' is not assigned and could be declared final 377
Local variable 'builder' could be declared final 378
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 379
Parameter 'lemma' is not assigned and could be declared final 384
Parameter 'type' is not assigned and could be declared final 384
Local variable 'builder' could be declared final 386
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 387
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 388
Position literals first in String comparisons 389
Parameter 'type' is not assigned and could be declared final 397
Parameter 'rolesetID' is not assigned and could be declared final 397
Parameter 'lemma' is not assigned and could be declared final 397
Parameter 'prefix' is not assigned and could be declared final 401
Parameter 'lemma' is not assigned and could be declared final 401
Parameter 'type' is not assigned and could be declared final 401
Parameter 'rolesetID' is not assigned and could be declared final 401
Parameter 'lemma' is not assigned and could be declared final 410
Parameter 'type' is not assigned and could be declared final 410
Parameter 'rolesetID' is not assigned and could be declared final 410
Local variable 'posURI' could be declared final 412
Local variable 'builder' could be declared final 414
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 415
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 416
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 417
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 418
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 419
Parameter 'rolesetID' is not assigned and could be declared final 424
Parameter 'argName' is not assigned and could be declared final 424
Parameter 'prefix' is not assigned and could be declared final 424
Local variable 'builder' could be declared final 425
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 426
Parameter 'rolesetID' is not assigned and could be declared final 431
Parameter 'argName' is not assigned and could be declared final 431
Parameter 'argName' is not assigned and could be declared final 439
Parameter 'rolesetID' is not assigned and could be declared final 439
Local variable 'builder' could be declared final 440
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 441
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 442
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 443
Parameter 'argName' is not assigned and could be declared final 448
Parameter 'prefix' is not assigned and could be declared final 448
Parameter 'rolesetID' is not assigned and could be declared final 448
Local variable 'builder' could be declared final 449
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 450
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 451
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 452
Parameter 'class2' is not assigned and could be declared final 457
Parameter 'conceptualization1' is not assigned and could be declared final 457
Parameter 'class1' is not assigned and could be declared final 457
Parameter 'conceptualization2' is not assigned and could be declared final 458
Local variable 'classes' could be declared final 463
Local variable 'conceptualizations' could be declared final 466
Parameter 'class1' is not assigned and could be declared final 482
Parameter 'conceptualization1' is not assigned and could be declared final 482
Parameter 'class2' is not assigned and could be declared final 482
Parameter 'argument2' is not assigned and could be declared final 483
Parameter 'conceptualization2' is not assigned and could be declared final 483
Parameter 'argument1' is not assigned and could be declared final 483
Local variable 'classes' could be declared final 490
Local variable 'conceptualizations' could be declared final 493
Local variable 'arguments' could be declared final 498
Parameter 'conceptualizations' is not assigned and could be declared final 515
The method addMappings() has an NPath complexity of 1000 515539
Parameter 'arguments' is not assigned and could be declared final 515
Parameter 'classes' is not assigned and could be declared final 515
Local variable 'nClasses' could be declared final 516
Local variable 'nConceptualization' could be declared final 517
Local variable 'nArguments' could be declared final 518
Parameter 'uris' is not assigned and could be declared final 541
Parameter 'parentMapping' is not assigned and could be declared final 550
Parameter 'suffix' is not assigned and could be declared final 550
Parameter 'prefix' is not assigned and could be declared final 550
Parameter 'uris' is not assigned and could be declared final 550
Local variable 'cluster' could be declared final 551
Local variable 'uri' could be declared final 552
Parameter 'suffix' is not assigned and could be declared final 559
Parameter 'uris' is not assigned and could be declared final 559
Parameter 'prefix' is not assigned and could be declared final 559
Parameter 'parentMapping' is not assigned and could be declared final 559
Local variable 'cluster' could be declared final 560
Local variable 'uri' could be declared final 561
Parameter 'mapping' is not assigned and could be declared final 568
Parameter 'parentMapping' is not assigned and could be declared final 568
Parameter 'prefix' is not assigned and could be declared final 568
Parameter 'suffix' is not assigned and could be declared final 568
Local variable 'mappingURI' could be declared final 575
Local variable 'uri' could be declared final 593
Parameter 'mapping' is not assigned and could be declared final 600
Parameter 'suffix' is not assigned and could be declared final 600
Parameter 'prefix' is not assigned and could be declared final 600
Local variable 'strings' could be declared final 601
Local variable 'uri' could be declared final 602
Local variable 'hash' could be declared final 606
Local variable 'builder' could be declared final 608
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 609
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 610
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 611
Parameter 'arg' is not assigned and could be declared final 616
Avoid reassigning parameters such as 'text' 624
Avoid reassigning parameters such as 'namespace' 629
Avoid reassigning parameters such as 'text' 629
Parameter 'end' is not assigned and could be declared final 635
Parameter 'start' is not assigned and could be declared final 635
Parameter 'base' is not assigned and could be declared final 635
Local variable 'markableURI' could be declared final 636
Consider simply returning the value vs storing it in local variable 'markableURI' 637
Parameter 'addendum' is not assigned and could be declared final 642
Parameter 'exampleURI' is not assigned and could be declared final 642
Local variable 'builder' could be declared final 643
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 644

premon - eu/fbk/dkm/premon/premonitor/FramebaseConverter.java

Violation Line
Possible God class (WMC=89, ATFD=83, TCC=0.0) 1443
The class 'FramebaseConverter' has a Cyclomatic Complexity of 5 (Highest = 11). 22443
The method 'compare' has a Cyclomatic Complexity of 11. 3461
Parameter 'wnInfo' is not assigned and could be declared final 66
Use block level rather than method level synchronization 126145
The class 'URIInfo' has a Standard Cyclomatic Complexity of 5 (Highest = 18). 177438
The class 'URIInfo' has a Cyclomatic Complexity of 5 (Highest = 18). 177438
The class 'URIInfo' has a Modified Cyclomatic Complexity of 5 (Highest = 18). 177438
The method 'update' has a Cyclomatic Complexity of 16. 242289
The method 'update' has a Standard Cyclomatic Complexity of 15. 242289
The method 'update' has a Modified Cyclomatic Complexity of 15. 242289
Avoid empty if statements 256265
The method 'emit' has a Cyclomatic Complexity of 18. 291364
The method 'emit' has a Standard Cyclomatic Complexity of 18. 291364
The method 'emit' has a Modified Cyclomatic Complexity of 18. 291364
The method emit() has an NPath complexity of 18432 291364
Avoid reassigning parameters such as 'set' 406
Avoid reassigning parameters such as 'set' 414
Parameter 'textualPOS' is not assigned and could be declared final 440

premon - eu/fbk/dkm/premon/premonitor/FramenetConverter.java

Violation Line
Possible God class (WMC=145, ATFD=214, TCC=0.0) 11039
The class 'FramenetConverter' has a Modified Cyclomatic Complexity of 6 (Highest = 83). 321039
The class 'FramenetConverter' has a Standard Cyclomatic Complexity of 8 (Highest = 101). 321039
The class 'FramenetConverter' has a Cyclomatic Complexity of 9 (Highest = 112). 321039
Avoid using redundant field initializer for 'retroMappings' 36
Private field 'retroMappings' could be made final; it is only initialized in the declaration or constructor. 36
Parameter 'properties' is not assigned and could be declared final 47
Parameter 'sink' is not assigned and could be declared final 47
Parameter 'wnInfo' is not assigned and could be declared final 47
Parameter 'path' is not assigned and could be declared final 47
The method 'convert' has a Modified Cyclomatic Complexity of 83. 68867
The method 'convert' has a Cyclomatic Complexity of 112. 68867
The method convert() has an NPath complexity of 521130627 68867
Avoid really long methods. 68867
The method 'convert' has a Standard Cyclomatic Complexity of 101. 68867
The method convert() has an NCSS line count of 500 68867
Local variable 'key' could be declared final 74
Local variable 'value' could be declared final 75
Local variable 'added' could be declared final 84
Local variable 'changed' could be declared final 85
Local variable 'diff' could be declared final 95
Local variable 'diff' could be declared final 99
Local variable 'r15' could be declared final 100
Local variable 'r16' could be declared final 101
Local variable 'diff' could be declared final 106
Local variable 'diff' could be declared final 111
Local variable 'f16' could be declared final 112
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 117
Local variable 'r15' could be declared final 118
Local variable 'r16' could be declared final 119
Local variable 'statusTypes' could be declared final 128
Local variable 'statusType' could be declared final 129
Local variable 'semTypes' could be declared final 136
Local variable 'semType' could be declared final 137
Local variable 'typesFreqs' could be declared final 142
Local variable 'typesFreqsFER' could be declared final 143
Local variable 'frRelationTypes' could be declared final 147
Local variable 'frRelationType' could be declared final 148
Local variable 'name' could be declared final 149
Switch statements should have a default label 154186
Local variable 'frameRelations' could be declared final 193
Local variable 'frameRelation' could be declared final 194
Local variable 'subFrameName' could be declared final 195
Local variable 'superFrameName' could be declared final 196
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 199
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 200
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 202
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 203
Local variable 'feRelations' could be declared final 207
Local variable 'feRelation' could be declared final 208
Local variable 'relURI' could be declared final 211
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 213
Local variable 'arg1' could be declared final 213
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 214
Local variable 'arg2' could be declared final 214
Local variable 'semTypesFreq' could be declared final 233
Local variable 'semTypesForFrame' could be declared final 234
Local variable 'lus' could be declared final 235
These nested if statements could be combined 241243
Local variable 'element' could be declared final 250
Local variable 'cBy' could be declared final 251
Local variable 'cDate' could be declared final 252
Local variable 'identifier' could be declared final 253
Local variable 'frameName' could be declared final 254
Local variable 'lcFrameName' could be declared final 256
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 256
Local variable 'frameURI' could be declared final 258
Avoid unused local variables such as 'classMappingURI'. 260
Local variable 'classMappingURI' could be declared final 260
These nested if statements could be combined 262274
Local variable 'toMap' could be declared final 263
Local variable 'oldFrameURI' could be declared final 265
Static DateFormatter objects should be accessed in a synchronized manner 277
Local variable 'date' could be declared final 277
Local variable 'definition' could be declared final 279
Local variable 'defText' could be declared final 280
Local variable 'elements' could be declared final 282
Local variable 'cbyURI' could be declared final 285
Avoid instantiating new objects inside loops 294
Local variable 'FEs' could be declared final 294
Local variable 'fe' could be declared final 296
Local variable 'feName' could be declared final 298
Local variable 'lcFeName' could be declared final 302
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 302
Local variable 'completeRole' could be declared final 304
Local variable 'toMap' could be declared final 306
Local variable 'argumentURI' could be declared final 308
Local variable 'parts' could be declared final 310
Local variable 'oldFrameURI' could be declared final 311
Local variable 'oldArgumentURI' could be declared final 312
Local variable 'oldFrameURI' could be declared final 322
Local variable 'oldArgumentURI' could be declared final 323
Local variable 'coreType' could be declared final 333
Local variable 'feCBy' could be declared final 334
Local variable 'feCDate' could be declared final 335
Local variable 'feIdentifier' could be declared final 336
Local variable 'abbrev' could be declared final 337
Local variable 'feDate' could be declared final 339
Static DateFormatter objects should be accessed in a synchronized manner 339
Local variable 'feDefinition' could be declared final 341
Local variable 'feDefText' could be declared final 342
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 344
Local variable 'argumentURI' could be declared final 344
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 344
Switch statements should have a default label 346360
Local variable 'feCByURI' could be declared final 362
Local variable 'subElem' could be declared final 378
Local variable 'seName' could be declared final 379
Local variable 'subElURI' could be declared final 380
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 380
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 380
Local variable 'subElem' could be declared final 385
Local variable 'seName' could be declared final 386
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 387
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 387
Local variable 'subElURI' could be declared final 387
Local variable 'members' could be declared final 394
Local variable 'coresetURI' could be declared final 397
Local variable 'memberFEs' could be declared final 401
Local variable 'memberFE' could be declared final 402
Local variable 'mName' could be declared final 403
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 406
Local variable 'itemURI' could be declared final 406
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 406
Local variable 'frameRelation' could be declared final 413
Local variable 'relatedFrames' could be declared final 414
Local variable 'type' could be declared final 415
Switch statements should have a default label 418443
Local variable 'relatedFrame' could be declared final 449
Local variable 'relatedFrameName' could be declared final 450
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 456
Local variable 'lexUnit' could be declared final 463
Local variable 'leCBy' could be declared final 465
Local variable 'leCDate' could be declared final 466
Local variable 'leIdentifier' could be declared final 467
Local variable 'name' could be declared final 471
Local variable 'status' could be declared final 473
Local variable 'pos' could be declared final 474
Local variable 'leDefinition' could be declared final 475
Local variable 'builder' could be declared final 478
Avoid instantiating new objects inside loops 478
Avoid unused local variables such as 'builder'. 478
Local variable 'lexemes' could be declared final 479
Local variable 'lexemeList' could be declared final 481
Avoid instantiating new objects inside loops 481
Avoid instantiating new objects inside loops 482
Local variable 'posList' could be declared final 482
Local variable 'lexeme' could be declared final 483
Local variable 'lemmaName' could be declared final 484
Local variable 'lemmaPos' could be declared final 485
Local variable 'goodLemma' could be declared final 497
Local variable 'uriLemma' could be declared final 498
Local variable 'lexicalEntryURI' could be declared final 499500
Local variable 'luURI' could be declared final 501
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 501
Local variable 'stElements' could be declared final 522
Local variable 'statusURI' could be declared final 533
Local variable 'leCByURI' could be declared final 536
Static DateFormatter objects should be accessed in a synchronized manner 537
Local variable 'leDate' could be declared final 537
String.trim().length()==0 is an inefficient way to validate an empty String. 553
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 556
Local variable 'argumentURI' could be declared final 556557
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 557
Local variable 'uri' could be declared final 576
Local variable 'frameName' could be declared final 613
Local variable 'luID' could be declared final 614
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 622
Local variable 'frameURI' could be declared final 622
Avoid unused local variables such as 'luURI'. 623
Local variable 'luURI' could be declared final 623
Local variable 'example' could be declared final 627
Local variable 'tempStatements' could be declared final 634
Avoid instantiating new objects inside loops 634
Local variable 'tempSink' could be declared final 635
Local variable 'id' could be declared final 645
Local variable 'exampleURI' could be declared final 646
Local variable 'text' could be declared final 648
Local variable 'layers' could be declared final 650
Avoid instantiating new objects inside loops 652
Local variable 'starts' could be declared final 652
Local variable 'ends' could be declared final 653
Avoid instantiating new objects inside loops 653
Local variable 'matcher' could be declared final 655
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 662
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 662
Local variable 'layer' could be declared final 668
Local variable 'layerName' could be declared final 669
Position literals first in String comparisons 675
Local variable 'labels' could be declared final 676
Local variable 'label' could be declared final 681
Avoid empty catch blocks 688690
These nested if statements could be combined 703705
These nested if statements could be combined 708710
Local variable 'markableURI' could be declared final 727
Local variable 'anchor' could be declared final 728
Local variable 'aURI' could be declared final 730
Local variable 'layer' could be declared final 764
Local variable 'layerName' could be declared final 765
Position literals first in String comparisons 771
Local variable 'labels' could be declared final 772
Local variable 'label' could be declared final 773
Local variable 'roleName' could be declared final 774
Local variable 'argumentURI' could be declared final 775776
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 775
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 776
Avoid empty catch blocks 789791
Local variable 'aURI' could be declared final 808
Avoid empty if statements 815817
Local variable 'markableURI' could be declared final 819
Local variable 'statement' could be declared final 846
Ensure that resources like this Statement object are closed after use 846
Parameter 'stElements' is not assigned and could be declared final 869
Parameter 'semTypesFreq' is not assigned and could be declared final 869
Parameter 'frameURI' is not assigned and could be declared final 870
Parameter 'baseURI' is not assigned and could be declared final 870
Parameter 'semTypesForFrame' is not assigned and could be declared final 870
Local variable 'stElement' could be declared final 871
Local variable 'LUSemType' could be declared final 872
Parameter 'cBy' is not assigned and could be declared final 885
Local variable 'cbyURI' could be declared final 886
Parameter 'cBy' is not assigned and could be declared final 891
Local variable 'builder' could be declared final 892
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 893
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 894
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 894
Parameter 'exampleID' is not assigned and could be declared final 899
Local variable 'builder' could be declared final 900
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 901
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 902
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 903
Parameter 'semType' is not assigned and could be declared final 908
Local variable 'name' could be declared final 909
Local variable 'abbrev' could be declared final 910
Local variable 'id' could be declared final 911
Local variable 'definition' could be declared final 913
Local variable 'supID' could be declared final 914
Local variable 'superTypeName' could be declared final 915
Local variable 'semTypeURI' could be declared final 917
Local variable 'superSemTypeURI' could be declared final 926
Parameter 'name' is not assigned and could be declared final 931
Avoid reassigning parameters such as 'name' 935
Avoid reassigning parameters such as 'name' 935
Avoid reassigning parameters such as 'prefix' 935
Avoid reassigning parameters such as 'name' 935
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 940
Local variable 'builder' could be declared final 944
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 945
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 946
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 947
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 948
Parameter 'statusType' is not assigned and could be declared final 953
Local variable 'name' could be declared final 954
Local variable 'description' could be declared final 955
Local variable 'statusURI' could be declared final 957
Parameter 'frameName' is not assigned and could be declared final 963
Parameter 'luName' is not assigned and could be declared final 963
Parameter 'pos' is not assigned and could be declared final 963
Parameter 'frameName' is not assigned and could be declared final 967
Parameter 'luName' is not assigned and could be declared final 967
Avoid reassigning parameters such as 'prefix' 967
Parameter 'pos' is not assigned and could be declared final 967
Local variable 'builder' could be declared final 971
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 972
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 973
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 974
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 975
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 976
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 977
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 978
Parameter 'name' is not assigned and could be declared final 983
Avoid reassigning parameters such as 'prefix' 987
Parameter 'name' is not assigned and could be declared final 987
Local variable 'builder' could be declared final 991
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 992
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 993
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 994
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 995
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 995
The method 'getPosURI' has a Standard Cyclomatic Complexity of 12. 10001030
Avoid reassigning parameters such as 'pos' 1000
The method 'getPosURI' has a Cyclomatic Complexity of 12. 10001030
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1002
Switch statements should have a default label 10041027
Parameter 'arg' is not assigned and could be declared final 1036

premon - eu/fbk/dkm/premon/premonitor/NombankConverter.java

Violation Line
Avoid unused imports such as 'javax.annotation.Nullable' 13
Avoid unused imports such as 'com.google.common.base.Preconditions' 15
Avoid unused imports such as 'eu.fbk.dkm.premon.util.URITreeSet' 24
Parameter 'path' is not assigned and could be declared final 36
Parameter 'properties' is not assigned and could be declared final 36
Parameter 'wnInfo' is not assigned and could be declared final 36
Parameter 'sink' is not assigned and could be declared final 36
Parameter 'argName' is not assigned and could be declared final 45
Parameter 'argType' is not assigned and could be declared final 45
Parameter 'markableURI' is not assigned and could be declared final 45
Parameter 'rolesetID' is not assigned and could be declared final 46
Parameter 'f' is not assigned and could be declared final 46
Parameter 'asURI' is not assigned and could be declared final 46
Avoid declaring a variable if it is unreferenced before a possible exit point. 47
Local variable 'argumentURI' could be declared final 47
Local variable 'fType' could be declared final 52
Position literals first in String comparisons 55
Position literals first in String comparisons 59
Parameter 'markableURI' is not assigned and could be declared final 85
Parameter 'argName' is not assigned and could be declared final 85
Parameter 'argType' is not assigned and could be declared final 85
Parameter 'inflection' is not assigned and could be declared final 109
Parameter 'exampleURI' is not assigned and could be declared final 109
Document empty method body 109111
Parameter 'type' is not assigned and could be declared final 113
Parameter 'lemma' is not assigned and could be declared final 113
Avoid long parameter lists. 117118
Parameter 'f' is not assigned and could be declared final 117
Parameter 'argumentURI' is not assigned and could be declared final 117
Parameter 'argType' is not assigned and could be declared final 117
Parameter 'argName' is not assigned and could be declared final 117
Parameter 'lexicalEntryURI' is not assigned and could be declared final 118
Parameter 'role' is not assigned and could be declared final 118
Parameter 'rolesetID' is not assigned and could be declared final 118
Parameter 'lemma' is not assigned and could be declared final 118
Parameter 'type' is not assigned and could be declared final 118
Parameter 'roleset' is not assigned and could be declared final 118
Local variable 'vnLemmas' could be declared final 137
Local variable 'matcher' could be declared final 138
Local variable 'matchers' could be declared final 147
Local variable 'rolesetURI' could be declared final 149
Local variable 'conceptualizationURI' could be declared final 150
Local variable 'matcher' could be declared final 152
Local variable 'pbPredicate' could be declared final 154
Local variable 'source' could be declared final 157
Local variable 'pbLink' could be declared final 162
Local variable 'pbRolesetURI' could be declared final 167
Local variable 'pbConceptualizationURI' could be declared final 168
Local variable 'pbArgumentURI' could be declared final 169
Parameter 'code' is not assigned and could be declared final 176
Local variable 'matcher' could be declared final 185
Position literals first in String comparisons 190
Position literals first in String comparisons 195
Parameter 'uriLemma' is not assigned and could be declared final 204
Parameter 'type' is not assigned and could be declared final 204
Parameter 'roleset' is not assigned and could be declared final 204
Parameter 'conceptualizationURI' is not assigned and could be declared final 204
Local variable 'lemmas' could be declared final 206
Local variable 'rolesetID' could be declared final 208
Local variable 'rolesetURI' could be declared final 209
Local variable 'matchers' could be declared final 212
Local variable 'matcher' could be declared final 213
Local variable 'pbLemma' could be declared final 214
Local variable 'lemma' could be declared final 215
Local variable 'pbPredicate' could be declared final 217
Local variable 'pbLink' could be declared final 219
Local variable 'pbRolesetURI' could be declared final 220
Local variable 'pbConceptualizationURI' could be declared final 221
Local variable 'vnClasses' could be declared final 227
Local variable 'vnClass' could be declared final 228
Local variable 'vnLink' could be declared final 229
Local variable 'lemma' could be declared final 230
Local variable 'vnClassURI' could be declared final 231
Local variable 'vnConceptualizationURI' could be declared final 232

premon - eu/fbk/dkm/premon/premonitor/PredMatConverter.java

Violation Line
Possible God class (WMC=64, ATFD=34, TCC=0.0) 1329
Too many fields 26329
The class 'PredMatConverter' has a Standard Cyclomatic Complexity of 8 (Highest = 32). 26329
The class 'PredMatConverter' has a Cyclomatic Complexity of 9 (Highest = 32). 26329
The class 'PredMatConverter' has a Modified Cyclomatic Complexity of 8 (Highest = 32). 26329
This final field could be made static 40
Private field 'vnMap' could be made final; it is only initialized in the declaration or constructor. 47
Private field 'vnLinks' could be made final; it is only initialized in the declaration or constructor. 49
Private field 'fnLinks' could be made final; it is only initialized in the declaration or constructor. 50
Private field 'pbLinks' could be made final; it is only initialized in the declaration or constructor. 51
Parameter 'properties' is not assigned and could be declared final 55
Parameter 'wnInfo' is not assigned and could be declared final 55
The constructor 'PredMatConverter' has a Cyclomatic Complexity of 10. 55102
Parameter 'path' is not assigned and could be declared final 55
Parameter 'sink' is not assigned and could be declared final 55
Local variable 'vnPath' could be declared final 63
Local variable 'vnFile' could be declared final 66
Local variable 'thisClass' could be declared final 79
Local variable 'id' could be declared final 80
Local variable 'mID' could be declared final 81
Deeply nested if..then statements are hard to read 8286
The method 'convert' has a Standard Cyclomatic Complexity of 32. 104229
The method 'convert' has a Cyclomatic Complexity of 32. 104229
Avoid really long methods. 104229
The method 'convert' has a Modified Cyclomatic Complexity of 32. 104229
Local variable 'PredMat' could be declared final 108
Local variable 'classes' could be declared final 112
Local variable 'conceptualizations' could be declared final 113
Local variable 'arguments' could be declared final 114
Local variable 'parser' could be declared final 116
Local variable 'pme' could be declared final 118
Local variable 'lang' could be declared final 120
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 129
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 132
Prefer StringBuffer over += for concatenating strings 134
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 136
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 140
Prefer StringBuffer over += for concatenating strings 149
Prefer StringBuffer over += for concatenating strings 149
Local variable 'hash' could be declared final 151
Local variable 'vnLink' could be declared final 160
Local variable 'fnLink' could be declared final 161
Local variable 'pbLink' could be declared final 162
Local variable 'vnID' could be declared final 163
Local variable 'vnClassURI' could be declared final 164
Local variable 'vnConceptualizationURI' could be declared final 165166
Local variable 'vnArgURI' could be declared final 167
Local variable 'fnFrameURI' could be declared final 169
Local variable 'fnConceptualizationURI' could be declared final 170171
Local variable 'oldArgumentSeparator' could be declared final 172
Local variable 'fnArgURI' could be declared final 174
Local variable 'pbRolesetURI' could be declared final 177
Local variable 'pbConceptualizationURI' could be declared final 178180
String.indexOf(char) is faster than String.indexOf(String). 179
Local variable 'pbArgURI' could be declared final 181
Local variable 'wnSenseURI' could be declared final 183184
String.indexOf(char) is faster than String.indexOf(String). 184
Parameter 'textualPOS' is not assigned and could be declared final 231
Parameter 'str' is not assigned and could be declared final 239
Local variable 'strNoNS' could be declared final 240
Parameter 'vnSc' is not assigned and could be declared final 248
Prefer StringBuffer over += for concatenating strings 255
Parameter 'uriLemma' is not assigned and could be declared final 261
The method 'uriForWnSense' has a Cyclomatic Complexity of 12. 261327
The method 'uriForWnSense' has a Standard Cyclomatic Complexity of 11. 261327
The method 'uriForWnSense' has a Modified Cyclomatic Complexity of 11. 261327
Parameter 'wnSense' is not assigned and could be declared final 261
Local variable 'lemma' could be declared final 290
Local variable 'wnuri' could be declared final 303
Local variable 'lexicalEntryURI' could be declared final 315

premon - eu/fbk/dkm/premon/premonitor/Premonitor.java

Violation Line
Possible God class (WMC=180, ATFD=241, TCC=0.0) 11030
The class 'Premonitor' has a Modified Cyclomatic Complexity of 25 (Highest = 39). 871030
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 871030
The class 'Premonitor' has a Cyclomatic Complexity of 29 (Highest = 48). 871030
The class 'Premonitor' has a Standard Cyclomatic Complexity of 25 (Highest = 39). 871030
Avoid unused private fields such as 'WN_OLD_SENSE'. 104
The method main() has an NPath complexity of 116760321 109401
Avoid really long methods. 109401
The method main() has an NCSS line count of 132 109401
Consider using varargs for methods or constructors which take an array the last parameter. 109
The method 'main' has a Cyclomatic Complexity of 43. 109401
The method 'main' has a Modified Cyclomatic Complexity of 39. 109401
The method 'main' has a Standard Cyclomatic Complexity of 39. 109401
Deeply nested if..then statements are hard to read 195204
These nested if statements could be combined 197203
Deeply nested if..then statements are hard to read 207225
Deeply nested if..then statements are hard to read 247249
Avoid instantiating new objects inside loops 248
Prefer StringBuffer over += for concatenating strings 289
Avoid instantiating new objects inside loops 291
Avoid instantiating new objects inside loops 303
Avoid instantiating new objects inside loops 305
Avoid instantiating new objects inside loops 307333
Use block level rather than method level synchronization 315331
Prefer StringBuffer over += for concatenating strings 379
The method 'emit' has a Modified Cyclomatic Complexity of 38. 403631
The method 'emit' has a Standard Cyclomatic Complexity of 38. 403631
The method emit() has an NPath complexity of 6126840 403631
Avoid really long methods. 403631
The method emit() has an NCSS line count of 153 403631
The method 'emit' has a Cyclomatic Complexity of 48. 403631
Ensure that resources like this Statement object are closed after use 416
Ensure that resources like this Statement object are closed after use 448
Ensure that resources like this Statement object are closed after use 469
Deeply nested if..then statements are hard to read 480482
Deeply nested if..then statements are hard to read 484488
These nested if statements could be combined 485487
Ensure that resources like this Statement object are closed after use 502
Avoid instantiating new objects inside loops 520521
Avoid instantiating new objects inside loops 537538
Avoid instantiating new objects inside loops 548549
Avoid instantiating new objects inside loops 567
The method 'emit' has a Standard Cyclomatic Complexity of 17. 633720
The method 'emit' has a Cyclomatic Complexity of 19. 633720
The method emit() has an NPath complexity of 69840 633720
The method 'emit' has a Modified Cyclomatic Complexity of 17. 633720
This call to Collection.toArray() may be optimizable 659
Ensure that resources like this Statement object are closed after use 707
Avoid instantiating new objects inside loops 708709
The method filterMappings() has an NPath complexity of 119262 722827
The method 'filterMappings' has a Cyclomatic Complexity of 32. 722827
Avoid really long methods. 722827
The method 'filterMappings' has a Modified Cyclomatic Complexity of 28. 722827
The method 'filterMappings' has a Standard Cyclomatic Complexity of 28. 722827
Ensure that resources like this Statement object are closed after use 729
Ensure that resources like this Statement object are closed after use 733
Avoid instantiating new objects inside loops 742743
Ensure that resources like this Statement object are closed after use 756
Ensure that resources like this Statement object are closed after use 786
Ensure that resources like this Statement object are closed after use 791
Ensure that resources like this Statement object are closed after use 812
The class 'InstanceStatistics' has a Modified Cyclomatic Complexity of 19 (Highest = 18). 833941
The class 'InstanceStatistics' has a Cyclomatic Complexity of 37 (Highest = 36). 833941
The class 'InstanceStatistics' has a Standard Cyclomatic Complexity of 19 (Highest = 18). 833941
The constructor 'InstanceStatistics' has a Cyclomatic Complexity of 36. 853939
The constructor 'InstanceStatistics' has a Modified Cyclomatic Complexity of 18. 853939
The constructor 'InstanceStatistics' has a Standard Cyclomatic Complexity of 18. 853939
Ensure that resources like this Statement object are closed after use 896
Ensure that resources like this Statement object are closed after use 908
Ensure that resources like this Statement object are closed after use 920
The class 'MappingStatistics' has a Cyclomatic Complexity of 6 (Highest = 12). 9431028
The class 'MappingStatistics' has a Modified Cyclomatic Complexity of 6 (Highest = 12). 9431028
The class 'MappingStatistics' has a Standard Cyclomatic Complexity of 6 (Highest = 12). 9431028
The constructor 'MappingStatistics' has a Modified Cyclomatic Complexity of 12. 9531007
The constructor 'MappingStatistics' has a Cyclomatic Complexity of 12. 9531007
The constructor 'MappingStatistics' has a Standard Cyclomatic Complexity of 12. 9531007

premon - eu/fbk/dkm/premon/premonitor/PropbankConverter.java

Violation Line
Possible God class (WMC=54, ATFD=57, TCC=0.0) 1295
The class 'PropbankConverter' has a Standard Cyclomatic Complexity of 3 (Highest = 12). 32295
The class 'PropbankConverter' has a Modified Cyclomatic Complexity of 3 (Highest = 12). 32295
The class 'PropbankConverter' has a Cyclomatic Complexity of 3 (Highest = 12). 32295
Parameter 'path' is not assigned and could be declared final 39
Parameter 'sink' is not assigned and could be declared final 39
Parameter 'properties' is not assigned and could be declared final 39
Parameter 'wnInfo' is not assigned and could be declared final 39
Parameter 'part' is not assigned and could be declared final 50
Parameter 'code' is not assigned and could be declared final 54
Local variable 'matcher' could be declared final 66
Position literals first in String comparisons 71
Parameter 'roleset' is not assigned and could be declared final 80
Parameter 'conceptualizationURI' is not assigned and could be declared final 80
Parameter 'uriLemma' is not assigned and could be declared final 80
Parameter 'type' is not assigned and could be declared final 80
Local variable 'rolesetID' could be declared final 82
Local variable 'rolesetURI' could be declared final 83
Local variable 'fnPredicates' could be declared final 86
Local variable 'tmpFnPreds' could be declared final 8889
Local variable 'fnPredicate' could be declared final 98
Local variable 'fnLink' could be declared final 99
Local variable 'fnFrameURI' could be declared final 100
Local variable 'fnConceptualizationURI' could be declared final 101
Local variable 'vnClasses' could be declared final 107
Local variable 'vnClass' could be declared final 108
Local variable 'vnLink' could be declared final 109
Local variable 'vnClassURI' could be declared final 110
Local variable 'vnConceptualizationURI' could be declared final 111
The method addInflectionToSink() has an NPath complexity of 672 131187
The method 'addInflectionToSink' has a Cyclomatic Complexity of 12. 131187
Parameter 'inflection' is not assigned and could be declared final 131
The method 'addInflectionToSink' has a Modified Cyclomatic Complexity of 12. 131187
The method 'addInflectionToSink' has a Standard Cyclomatic Complexity of 12. 131187
Parameter 'exampleURI' is not assigned and could be declared final 131
Local variable 'inflectionParts' could be declared final 137
Local variable 'inflections' could be declared final 138
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 166
Local variable 'builder' could be declared final 169
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 170
Local variable 'part' could be declared final 172
Local variable 'inflectionURI' could be declared final 176
Local variable 'key' could be declared final 178
Local variable 'uri' could be declared final 179
Parameter 'f' is not assigned and could be declared final 209
Parameter 'argumentURI' is not assigned and could be declared final 209
Avoid long parameter lists. 209210
Parameter 'argType' is not assigned and could be declared final 209
Parameter 'argName' is not assigned and could be declared final 209
Parameter 'roleset' is not assigned and could be declared final 210
Parameter 'lemma' is not assigned and could be declared final 210
Parameter 'role' is not assigned and could be declared final 210
Parameter 'lexicalEntryURI' is not assigned and could be declared final 210
Parameter 'type' is not assigned and could be declared final 210
Parameter 'rolesetID' is not assigned and could be declared final 210
Local variable 'vnLemmas' could be declared final 212
Parameter 'argumentURI' is not assigned and could be declared final 233
Parameter 'f' is not assigned and could be declared final 233
Local variable 'lexicalEntry' could be declared final 249
Parameter 'type' is not assigned and could be declared final 257
Parameter 'lemma' is not assigned and could be declared final 257
Parameter 'argName' is not assigned and could be declared final 261
Parameter 'markableURI' is not assigned and could be declared final 261
Parameter 'argType' is not assigned and could be declared final 261
A switch with less than three branches is inefficient, use a if statement instead. 262268
Parameter 'argType' is not assigned and could be declared final 271
Parameter 'argName' is not assigned and could be declared final 271
Parameter 'markableURI' is not assigned and could be declared final 271
Parameter 'f' is not assigned and could be declared final 272
Parameter 'rolesetID' is not assigned and could be declared final 272
Parameter 'asURI' is not assigned and could be declared final 272
Local variable 'argumentURI' could be declared final 273

premon - eu/fbk/dkm/premon/premonitor/SemlinkConverter.java

Violation Line
The class 'SemlinkConverter' has a Modified Cyclomatic Complexity of 7 (Highest = 19). 36323
The class 'SemlinkConverter' has a Cyclomatic Complexity of 7 (Highest = 19). 36323
The class 'SemlinkConverter' has a Standard Cyclomatic Complexity of 7 (Highest = 19). 36323
Parameter 'properties' is not assigned and could be declared final 58
The constructor 'SemlinkConverter' has a Cyclomatic Complexity of 10. 58104
Parameter 'path' is not assigned and could be declared final 58
Parameter 'wnInfo' is not assigned and could be declared final 58
Parameter 'sink' is not assigned and could be declared final 58
Local variable 'vnPath' could be declared final 65
Local variable 'vnFile' could be declared final 68
Local variable 'thisClass' could be declared final 81
Local variable 'id' could be declared final 82
Local variable 'mID' could be declared final 83
Deeply nested if..then statements are hard to read 8488
Avoid really long methods. 106300
The method 'convert' has a Modified Cyclomatic Complexity of 19. 106300
The method convert() has an NPath complexity of 2051 106300
The method convert() has an NCSS line count of 121 106300
The method 'convert' has a Cyclomatic Complexity of 19. 106300
The method 'convert' has a Standard Cyclomatic Complexity of 19. 106300
Local variable 'vnPbMappings' could be declared final 112
Local variable 'vnFnMappings' could be declared final 113
Local variable 'vnFnMappingsRole' could be declared final 114115
Local variable 'predicate' could be declared final 125
Local variable 'lemma' could be declared final 126
Local variable 'uriLemma' could be declared final 127
Local variable 'argmap' could be declared final 130
Local variable 'pbRoleset' could be declared final 131
Local variable 'vnClass' could be declared final 132
Prefer StringBuffer over += for concatenating strings 140
Local variable 'role' could be declared final 145
Local variable 'pbArg' could be declared final 146
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 149
Local variable 'pbLink' could be declared final 151
Local variable 'vnLink' could be declared final 152
Local variable 'pbRolesetURI' could be declared final 154
Local variable 'pbConceptualizationURI' could be declared final 155
Local variable 'pbArgURI' could be declared final 156
Local variable 'vnClassURI' could be declared final 158
Local variable 'vnConceptualizationURI' could be declared final 159
Local variable 'vnArgURI' could be declared final 160
Local variable 'vnfnMap' could be declared final 179
Local variable 'vnfnLemmaMap' could be declared final 180
Local variable 'vnClass' could be declared final 184
Local variable 'vnCls' could be declared final 185
Local variable 'lemma' could be declared final 186
Local variable 'uriLemma' could be declared final 187
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 190
Prefer StringBuffer over += for concatenating strings 200
Local variable 'newVnCls' could be declared final 207
Local variable 'vnClass' could be declared final 222
Local variable 'vnCls' could be declared final 223
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 226
Prefer StringBuffer over += for concatenating strings 233
Local variable 'frames' could be declared final 236
Local variable 'lemmas' could be declared final 243
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 244
Local variable 'role' could be declared final 249
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 253
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 254
Local variable 'fnLink' could be declared final 256
Local variable 'vnLink' could be declared final 257
Local variable 'l' could be declared final 259
Local variable 'index' could be declared final 261
Local variable 'lemma' could be declared final 262
Local variable 'vnSubClass' could be declared final 263
Local variable 'fnFrameURI' could be declared final 265
Local variable 'fnConceptualizationURI' could be declared final 266
Local variable 'oldArgumentSeparator' could be declared final 267
Local variable 'fnArgURI' could be declared final 269
Local variable 'vnClassURI' could be declared final 272
Local variable 'vnConceptualizationURI' could be declared final 273
Local variable 'vnArgURI' could be declared final 274
Parameter 'p2' is not assigned and could be declared final 302
Parameter 'links2' is not assigned and could be declared final 302
Parameter 'uriLemma' is not assigned and could be declared final 302
Parameter 'p1' is not assigned and could be declared final 302
Parameter 'links1' is not assigned and could be declared final 302
Local variable 'link1' could be declared final 303
Local variable 'link2' could be declared final 304
Local variable 'firstRolesetURI' could be declared final 305
Local variable 'secondRolesetURI' could be declared final 306
Local variable 'firstConceptualizationURI' could be declared final 307
Local variable 'secondConceptualizationURI' could be declared final 308
Parameter 'textualPOS' is not assigned and could be declared final 315

premon - eu/fbk/dkm/premon/premonitor/VerbnetConverter.java

Violation Line
Possible God class (WMC=120, ATFD=163, TCC=0.0) 1851
The class 'VerbnetConverter' has a Standard Cyclomatic Complexity of 4 (Highest = 22). 32851
The class 'VerbnetConverter' has a Modified Cyclomatic Complexity of 4 (Highest = 22). 32851
The class 'VerbnetConverter' has a Cyclomatic Complexity of 4 (Highest = 24). 32851
The method addClassToSink() has an NPath complexity of 80832 93283
The method addClassToSink() has an NCSS line count of 107 93283
Avoid really long methods. 93283
The method 'addClassToSink' has a Standard Cyclomatic Complexity of 22. 93283
The method 'addClassToSink' has a Cyclomatic Complexity of 24. 93283
The method 'addClassToSink' has a Modified Cyclomatic Complexity of 22. 93283
Avoid instantiating new objects inside loops 139
String.trim().length()==0 is an inefficient way to validate an empty String. 142
Avoid unused local variables such as 'pbRolesetURI'. 150
Avoid unused local variables such as 'questionMark'. 176
This call to String.startsWith can be rewritten using String.charAt(0) 177
Local variable 'lemma' could be declared final 190
Avoid long parameter lists. 317320
The method 'addFrameToSink' has a Modified Cyclomatic Complexity of 10. 374462
The method 'addFrameToSink' has a Standard Cyclomatic Complexity of 10. 374462
The method 'addFrameToSink' has a Cyclomatic Complexity of 10. 374462
Avoid unused local variables such as 'questionMark'. 490
This call to String.startsWith can be rewritten using String.charAt(0) 492
Switch statements should have a default label 500530
The class 'SyntaxArrayLogic' has a Cyclomatic Complexity of 3 (Highest = 10). 597686
The method 'addToSink' has a Cyclomatic Complexity of 10. 625685
Switch statements should have a default label 638684
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 733
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 734
Avoid appending characters as strings in StringBuffer.append. 734
Avoid appending characters as strings in StringBuffer.append. 737
Avoid unused method parameters such as 'frameURI'. 747
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 766
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 767
Avoid appending characters as strings in StringBuffer.append. 767
Avoid appending characters as strings in StringBuffer.append. 770
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 781
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 782
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 783
Avoid appending characters as strings in StringBuffer.append. 783
Avoid appending characters as strings in StringBuffer.append. 786
Position literals first in String comparisons 802
Position literals first in String comparisons 805
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 828
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 829
Avoid appending characters as strings in StringBuffer.append. 829
Avoid appending characters as strings in StringBuffer.append. 832
A switch with less than three branches is inefficient, use a if statement instead. 844847
Switch statements should have a default label 844847

premon - eu/fbk/dkm/premon/premonitor/propbank/Arg.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 20
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 21
Parameter 'value' is not assigned and could be declared final 40
Parameter 'value' is not assigned and could be declared final 60
Parameter 'value' is not assigned and could be declared final 80

premon - eu/fbk/dkm/premon/premonitor/propbank/Example.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 22
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 23
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 24
Parameter 'value' is not assigned and could be declared final 47
Parameter 'value' is not assigned and could be declared final 67
Parameter 'value' is not assigned and could be declared final 87

premon - eu/fbk/dkm/premon/premonitor/propbank/Inflection.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 19
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 20
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 21
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 22
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 23
Parameter 'value' is not assigned and could be declared final 45
Parameter 'value' is not assigned and could be declared final 69
Parameter 'value' is not assigned and could be declared final 93
Parameter 'value' is not assigned and could be declared final 117
Parameter 'value' is not assigned and could be declared final 141

premon - eu/fbk/dkm/premon/premonitor/propbank/Note.java

Violation Line
Parameter 'value' is not assigned and could be declared final 36

premon - eu/fbk/dkm/premon/premonitor/propbank/ObjectFactory.java

Violation Line
Document empty constructor 3031

premon - eu/fbk/dkm/premon/premonitor/propbank/Predicate.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 22
Parameter 'value' is not assigned and could be declared final 42

premon - eu/fbk/dkm/premon/premonitor/propbank/Rel.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 20
Parameter 'value' is not assigned and could be declared final 39
Parameter 'value' is not assigned and could be declared final 59

premon - eu/fbk/dkm/premon/premonitor/propbank/Role.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 22
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 23
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 24
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 25
Parameter 'value' is not assigned and could be declared final 44
Parameter 'value' is not assigned and could be declared final 64
Parameter 'value' is not assigned and could be declared final 84
Parameter 'value' is not assigned and could be declared final 104

premon - eu/fbk/dkm/premon/premonitor/propbank/Roleset.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 23
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 24
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 25
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 26
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 27
Parameter 'value' is not assigned and could be declared final 48
Parameter 'value' is not assigned and could be declared final 68
Parameter 'value' is not assigned and could be declared final 88
Parameter 'value' is not assigned and could be declared final 108
Parameter 'value' is not assigned and could be declared final 128

premon - eu/fbk/dkm/premon/premonitor/propbank/Text.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 20
Parameter 'value' is not assigned and could be declared final 39
Parameter 'value' is not assigned and could be declared final 59

premon - eu/fbk/dkm/premon/premonitor/propbank/Vnrole.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 20
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 21
Parameter 'value' is not assigned and could be declared final 39
Parameter 'value' is not assigned and could be declared final 59

premon - eu/fbk/dkm/premon/premonitor/verbnet/ARG.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 31
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 34
Parameter 'value' is not assigned and could be declared final 56
Parameter 'value' is not assigned and could be declared final 80

premon - eu/fbk/dkm/premon/premonitor/verbnet/DESCRIPTION.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 30
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 36
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 39
Parameter 'value' is not assigned and could be declared final 61
Parameter 'value' is not assigned and could be declared final 85
Parameter 'value' is not assigned and could be declared final 109
Parameter 'value' is not assigned and could be declared final 133

premon - eu/fbk/dkm/premon/premonitor/verbnet/EXAMPLE.java

Violation Line
Parameter 'value' is not assigned and could be declared final 51

premon - eu/fbk/dkm/premon/premonitor/verbnet/FRAME.java

Violation Line
Parameter 'value' is not assigned and could be declared final 60
Parameter 'value' is not assigned and could be declared final 84
Parameter 'value' is not assigned and could be declared final 108
Parameter 'value' is not assigned and could be declared final 132

premon - eu/fbk/dkm/premon/premonitor/verbnet/LEX.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 30
Parameter 'value' is not assigned and could be declared final 52

premon - eu/fbk/dkm/premon/premonitor/verbnet/MEMBER.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 30
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 36
Parameter 'value' is not assigned and could be declared final 58
Parameter 'value' is not assigned and could be declared final 82
Parameter 'value' is not assigned and could be declared final 106

premon - eu/fbk/dkm/premon/premonitor/verbnet/NP.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 36
Parameter 'value' is not assigned and could be declared final 63

premon - eu/fbk/dkm/premon/premonitor/verbnet/ObjectFactory.java

Violation Line
Document empty constructor 3637

premon - eu/fbk/dkm/premon/premonitor/verbnet/PRED.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 36
Parameter 'value' is not assigned and could be declared final 60
Parameter 'value' is not assigned and could be declared final 84
Parameter 'value' is not assigned and could be declared final 108

premon - eu/fbk/dkm/premon/premonitor/verbnet/PREP.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Parameter 'value' is not assigned and could be declared final 57
Parameter 'value' is not assigned and could be declared final 81

premon - eu/fbk/dkm/premon/premonitor/verbnet/SELRESTR.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 30
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Parameter 'value' is not assigned and could be declared final 55
Parameter 'value' is not assigned and could be declared final 79

premon - eu/fbk/dkm/premon/premonitor/verbnet/SELRESTRS.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 36
Parameter 'value' is not assigned and could be declared final 63

premon - eu/fbk/dkm/premon/premonitor/verbnet/SYNRESTR.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 30
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Parameter 'value' is not assigned and could be declared final 55
Parameter 'value' is not assigned and could be declared final 79

premon - eu/fbk/dkm/premon/premonitor/verbnet/SYNRESTRS.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 35
Parameter 'value' is not assigned and could be declared final 59

premon - eu/fbk/dkm/premon/premonitor/verbnet/THEMROLE.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Parameter 'value' is not assigned and could be declared final 57
Parameter 'value' is not assigned and could be declared final 81

premon - eu/fbk/dkm/premon/premonitor/verbnet/VNCLASS.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 39
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 42
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 45
Parameter 'value' is not assigned and could be declared final 75
Parameter 'value' is not assigned and could be declared final 99
Parameter 'value' is not assigned and could be declared final 123
Parameter 'value' is not assigned and could be declared final 147
Parameter 'value' is not assigned and could be declared final 171
Parameter 'value' is not assigned and could be declared final 195
Parameter 'value' is not assigned and could be declared final 219

premon - eu/fbk/dkm/premon/premonitor/verbnet/VNSUBCLASS.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 38
Parameter 'value' is not assigned and could be declared final 68
Parameter 'value' is not assigned and could be declared final 92
Parameter 'value' is not assigned and could be declared final 116
Parameter 'value' is not assigned and could be declared final 140
Parameter 'value' is not assigned and could be declared final 164

premon - eu/fbk/dkm/premon/util/NF.java

Violation Line
The class 'NF' has a Cyclomatic Complexity of 4 (Highest = 10). 9102
Private field 'n' could be made final; it is only initialized in the declaration or constructor. 11
Private field 'f' could be made final; it is only initialized in the declaration or constructor. 12
Avoid reassigning parameters such as 'n' 17
Avoid reassigning parameters such as 'f' 17
Avoid reassigning parameters such as 'n' 17
Avoid reassigning parameters such as 'n' 17
Avoid reassigning parameters such as 'n' 17
Avoid reassigning parameters such as 'f' 17
Avoid reassigning parameters such as 'f' 17
The constructor 'NF' has a Cyclomatic Complexity of 10. 1766
Avoid reassigning parameters such as 'f' 17
Avoid reassigning parameters such as 'f' 17
Using equalsIgnoreCase() is cleaner than using toUpperCase/toLowerCase().equals(). 33
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 33
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 39
Using equalsIgnoreCase() is cleaner than using toUpperCase/toLowerCase().equals(). 39
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 48
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 58
Position literals first in String comparisons 59
Position literals first in String comparisons 70
Position literals first in String comparisons 72

premon - eu/fbk/dkm/premon/util/PremonResource.java

Violation Line
This abstract class does not have any abstract methods 735

premon - eu/fbk/dkm/premon/util/ProcessorUndoRDFS.java

Violation Line
Returning 'BYPASS' may expose an internal array. 148
The class 'UndoRDFSReducer' has a Cyclomatic Complexity of 7 (Highest = 12). 154217
The class 'UndoRDFSReducer' has a Modified Cyclomatic Complexity of 7 (Highest = 12). 154217
The class 'UndoRDFSReducer' has a Standard Cyclomatic Complexity of 7 (Highest = 12). 154217
The method 'reduce' has a Cyclomatic Complexity of 12. 167215
The method 'reduce' has a Modified Cyclomatic Complexity of 12. 167215
The method 'reduce' has a Standard Cyclomatic Complexity of 12. 167215
Ensure that resources like this Statement object are closed after use 175
Ensure that resources like this Statement object are closed after use 193
Ensure that resources like this Statement object are closed after use 211

premon - eu/fbk/dkm/premon/util/PropBankResource.java

Violation Line
Parameter 'isOntoNotes' is not assigned and could be declared final 16
Parameter 'fileName' is not assigned and could be declared final 16
Parameter 'defaultType' is not assigned and could be declared final 16
Local variable 'matcher' could be declared final 23
Parameter 'main' is not assigned and could be declared final 38

premon - eu/fbk/dkm/premon/util/Replacer.java

Violation Line
Possible God class (WMC=49, ATFD=10, TCC=0.044444444444444446) 1250
Avoid instantiating new objects inside loops 52
Deeply nested if..then statements are hard to read 7072
Deeply nested if..then statements are hard to read 9294
The class 'Rule' has a Cyclomatic Complexity of 3 (Highest = 11). 114248
Deeply nested if..then statements are hard to read 172174
The method 'parse' has a Cyclomatic Complexity of 11. 210246
The method parse() has an NPath complexity of 395 210246
This call to String.startsWith can be rewritten using String.charAt(0) 221
Avoid instantiating new objects inside loops 239
New exception is thrown in catch block, original stack trace may be lost 241242

premon - eu/fbk/dkm/premon/util/WordNet.java

Violation Line
Possible God class (WMC=64, ATFD=51, TCC=0.021052631578947368) 1412
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 19412
Parameter 'pos' is not assigned and could be declared final 156
Parameter 'lemma' is not assigned and could be declared final 156
Local variable 'indexWord' could be declared final 159
Local variable 'synsets' could be declared final 163
Local variable 'ret' could be declared final 164
Local variable 'synset' could be declared final 166
Do not add empty strings 274
Avoid reassigning parameters such as 'synsetID' 279
Avoid instantiating new objects inside loops 376377

premon - eu/fbk/dkm/premon/vocab/PMOVN.java

Violation Line
Avoid instantiating new objects inside loops 729

Back to top

Last Published: 2016/05/24.

Reflow Maven skin by Andrius Velykis.

Data and Knowledge Management tools