@@ -310,7 +310,7 @@ define(function (require, exports, module) {
310
310
if ( elem . name . length > 0 ) {
311
311
var terms = [ ] ;
312
312
// Doc
313
- this . writeDoc ( codeWriter , elem . documentation , options ) ;
313
+ this . writeDoc ( codeWriter , "Default constructor" , options ) ;
314
314
// Visibility
315
315
var visibility = this . getVisibility ( elem ) ;
316
316
if ( visibility ) {
@@ -366,6 +366,16 @@ define(function (require, exports, module) {
366
366
367
367
// doc
368
368
var doc = elem . documentation . trim ( ) ;
369
+
370
+ //Erase Javadoc @param and @return
371
+ var i , lines = doc . split ( "\n" ) ;
372
+ doc = "" ;
373
+ for ( i = 0 , len = lines . length ; i < len ; i ++ ) {
374
+ if ( lines [ i ] . lastIndexOf ( "@param" , 0 ) !== 0 && lines [ i ] . lastIndexOf ( "@return" , 0 ) !== 0 ) {
375
+ doc += "\n" + lines [ i ] ;
376
+ }
377
+ }
378
+
369
379
_ . each ( params , function ( param ) {
370
380
doc += "\n@param " + param . name + " " + param . documentation ;
371
381
} ) ;
@@ -454,7 +464,7 @@ define(function (require, exports, module) {
454
464
455
465
// Modifiers
456
466
var _modifiers = this . getModifiers ( elem ) ;
457
- if ( _ . some ( elem . operations , function ( op ) { return op . isAbstract === true ; } ) ) {
467
+ if ( _modifiers . indexOf ( "abstract" ) !== - 1 && _ . some ( elem . operations , function ( op ) { return op . isAbstract === true ; } ) ) {
458
468
_modifiers . push ( "abstract" ) ;
459
469
}
460
470
if ( _modifiers . length > 0 ) {
@@ -500,7 +510,7 @@ define(function (require, exports, module) {
500
510
this . writeMemberVariable ( codeWriter , asso . end2 , options ) ;
501
511
codeWriter . writeLine ( ) ;
502
512
}
503
- if ( asso . end2 . reference === elem && asso . end1 . navigable === true ) {
513
+ if ( asso . end2 . reference === elem && asso . end1 . navigable === true ) {
504
514
this . writeMemberVariable ( codeWriter , asso . end1 , options ) ;
505
515
codeWriter . writeLine ( ) ;
506
516
}
@@ -583,7 +593,7 @@ define(function (require, exports, module) {
583
593
this . writeMemberVariable ( codeWriter , asso . end2 , options ) ;
584
594
codeWriter . writeLine ( ) ;
585
595
}
586
- if ( asso . end2 . reference === elem && asso . end1 . navigable === true ) {
596
+ if ( asso . end2 . reference === elem && asso . end1 . navigable === true ) {
587
597
this . writeMemberVariable ( codeWriter , asso . end1 , options ) ;
588
598
codeWriter . writeLine ( ) ;
589
599
}
@@ -669,7 +679,7 @@ define(function (require, exports, module) {
669
679
670
680
// Modifiers
671
681
var _modifiers = this . getModifiers ( elem ) ;
672
- if ( _ . some ( elem . operations , function ( op ) { return op . isAbstract === true ; } ) ) {
682
+ if ( _modifiers . indexOf ( "abstract" ) !== - 1 && _ . some ( elem . operations , function ( op ) { return op . isAbstract === true ; } ) ) {
673
683
_modifiers . push ( "abstract" ) ;
674
684
}
675
685
if ( _modifiers . length > 0 ) {
0 commit comments