29
29
import com .topcoder .onlinereview .component .search .filter .Filter ;
30
30
import com .topcoder .onlinereview .component .search .filter .InFilter ;
31
31
32
- import org .slf4j .Logger ;
33
- import org .slf4j .LoggerFactory ;
34
32
import org .springframework .beans .factory .annotation .Autowired ;
35
33
36
34
import java .util .ArrayList ;
55
53
* @version 2.0
56
54
*/
57
55
public class ListProjectsAction extends BaseProjectAction {
58
-
59
- private static final Logger log = LoggerFactory .getLogger (ListProjectsAction .class .getName ());
60
56
/**
61
57
* Represents the serial version id.
62
58
*/
@@ -343,8 +339,6 @@ public String execute() throws BaseException {
343
339
} catch (NumberFormatException nfe ) {
344
340
winnerId = null ;
345
341
}
346
- log .info ("project:" +String .valueOf (projects [i ].getId ()));
347
- log .info (String .valueOf (winnerId ));
348
342
myDeliverables [i ] = getMyDeliverablesForPhases (
349
343
this , allMyDeliverables , phases [i ], myResources [i ], winnerId );
350
344
@@ -560,7 +554,6 @@ private static String getMyDeliverablesForPhases(TextProvider textProvider,
560
554
if (deliverables == null || deliverables .length == 0 ||
561
555
phases == null || phases .length == 0 ||
562
556
resources == null || resources .length == 0 ) {
563
- log .info ("no deliverables" );
564
557
return null ; // No deliverables
565
558
}
566
559
@@ -574,30 +567,25 @@ private static String getMyDeliverablesForPhases(TextProvider textProvider,
574
567
575
568
for (; j < phases .length ; ++j ) {
576
569
if (deliverable .getPhase () == phases [j ].getId ()) {
577
- log .info (String .valueOf (deliverable .getPhase ()));
578
570
break ;
579
571
}
580
572
}
581
573
582
574
// If this deliverable is not for any of the phases, continue the search
583
575
if (j == phases .length ) {
584
- log .info ("phase not found" );
585
576
continue ;
586
577
}
587
578
588
579
for (j = 0 ; j < resources .length ; ++j ) {
589
580
if (deliverable .getResource () == resources [j ].getId ()) {
590
- log .info (String .valueOf (deliverable .getResource ()));
591
581
break ;
592
582
}
593
583
}
594
584
595
585
// If this deliverable is not for any of the resources, continue the search
596
586
if (j == resources .length ) {
597
- log .info ("resource not found" );
598
587
continue ;
599
588
}
600
- log .info (String .valueOf (deliverable .getName ()));
601
589
// Get a resource this deliverable is for
602
590
final Resource forResource = resources [j ];
603
591
@@ -608,7 +596,6 @@ private static String getMyDeliverablesForPhases(TextProvider textProvider,
608
596
Constants .ACTIVE_SUBMISSION_STATUS_NAME , false );
609
597
if (submissions != null && submissions .length > 0 &&
610
598
submissions [0 ].getUpload ().getOwner () != deliverable .getResource ()) {
611
- log .info ("spec check" );
612
599
continue ;
613
600
}
614
601
}
@@ -617,7 +604,6 @@ private static String getMyDeliverablesForPhases(TextProvider textProvider,
617
604
if (winnerUserId != null ) {
618
605
if (forResource .getResourceRole ().getName ().equalsIgnoreCase (Constants .SUBMITTER_ROLE_NAME ) &&
619
606
!winnerUserId .equals (resources [j ].getUserId ())) {
620
- log .info ("winner check" );
621
607
continue ;
622
608
}
623
609
}
@@ -626,18 +612,14 @@ private static String getMyDeliverablesForPhases(TextProvider textProvider,
626
612
String deliverableName = deliverable .getName ();
627
613
// Do not add the same deliverable twice
628
614
if (deliverablesSet .contains (deliverableName )) {
629
- log .info ("duplicate check" );
630
615
continue ;
631
616
}
632
617
633
618
// If this is not the first deliverable, add line-breaking tag
634
619
if (buffer .length () != 0 ) {
635
620
buffer .append ("<br />" );
636
621
}
637
- log .info (deliverableName );
638
622
buffer .append (textProvider .getText ("Deliverable." + deliverableName .replaceAll (" " , "" )));
639
- log .info ("Deliverable." + deliverableName .replaceAll (" " , "" ));
640
- log .info (buffer .toString ());
641
623
deliverablesSet .add (deliverableName );
642
624
}
643
625
0 commit comments