@@ -249,7 +249,7 @@ protected void startSection(String name) {
249
249
* @param name not null
250
250
*/
251
251
// TODO Remove me when MSHARED-390 has been resolved
252
- protected void startSection (String anchor , String name ) {
252
+ protected void startSection (String name , String anchor ) {
253
253
section = section + 1 ;
254
254
255
255
super .sink .anchor (HtmlTools .encodeId (anchor ));
@@ -435,8 +435,6 @@ private void renderSectionDependencyTree() {
435
435
StringWriter sw = new StringWriter ();
436
436
PrintWriter pw = new PrintWriter (sw );
437
437
438
- pw .println ("" );
439
- pw .println ("<script language=\" javascript\" type=\" text/javascript\" >" );
440
438
pw .println (" function toggleDependencyDetails( divId, imgId )" );
441
439
pw .println (" {" );
442
440
pw .println (" var div = document.getElementById( divId );" );
@@ -454,9 +452,8 @@ private void renderSectionDependencyTree() {
454
452
pw .printf (" img.alt='%s';%n" , getI18nString ("graph.icon.close" ));
455
453
pw .println (" }" );
456
454
pw .println (" }" );
457
- pw .println ("</script>" );
458
455
459
- sink . rawText (sw .toString ());
456
+ javaScript (sw .toString ());
460
457
461
458
// for Dependencies Graph Tree
462
459
startSection (getI18nString ("graph.tree.title" ));
@@ -701,7 +698,7 @@ private void renderDependenciesForScope(String scope, List<Artifact> artifacts,
701
698
String anchorByScope = (isTransitive
702
699
? getI18nString ("transitive.title" ) + "_" + scope
703
700
: getI18nString ("title" ) + "_" + scope );
704
- startSection (anchorByScope , scope );
701
+ startSection (scope , anchorByScope );
705
702
706
703
paragraph (getI18nString ("intro." + scope ));
707
704
@@ -849,8 +846,7 @@ private void printDescriptionsAndURLs(DependencyNode node, String uid) {
849
846
850
847
List <License > licenses = artifactProject .getLicenses ();
851
848
852
- sink .table ();
853
- sink .tableRows (null , false );
849
+ startTable ();
854
850
855
851
sink .tableRow ();
856
852
sink .tableHeaderCell ();
@@ -931,8 +927,7 @@ private void printDescriptionsAndURLs(DependencyNode node, String uid) {
931
927
sink .tableCell_ ();
932
928
sink .tableRow_ ();
933
929
934
- sink .tableRows_ ();
935
- sink .table_ ();
930
+ endTable ();
936
931
} catch (ProjectBuildingException e ) {
937
932
sink .text (getI18nString ("index" , "nodescription" ));
938
933
if (log .isDebugEnabled ()) {
@@ -945,8 +940,7 @@ private void printDescriptionsAndURLs(DependencyNode node, String uid) {
945
940
}
946
941
}
947
942
} else {
948
- sink .table ();
949
- sink .tableRows (null , false );
943
+ startTable ();
950
944
951
945
sink .tableRow ();
952
946
sink .tableHeaderCell ();
@@ -976,8 +970,7 @@ private void printDescriptionsAndURLs(DependencyNode node, String uid) {
976
970
sink .tableCell_ ();
977
971
sink .tableRow_ ();
978
972
979
- sink .tableRows_ ();
980
- sink .table_ ();
973
+ endTable ();
981
974
}
982
975
983
976
sink .rawText ("</div>" );
0 commit comments