File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
src/main/java/org/apache/maven/report/projectinfo Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -692,22 +692,16 @@ private boolean isReactorBuild()
692
692
693
693
private void iconSuccess ( Locale locale , Sink sink )
694
694
{
695
- sink .figure ();
696
- sink .figureCaption ();
697
- sink .text ( getI18nString ( locale , "icon.success" ) );
698
- sink .figureCaption_ ();
699
- sink .figureGraphics ( IMG_SUCCESS_URL );
700
- sink .figure_ ();
695
+ SinkEventAttributes attributes =
696
+ new SinkEventAttributeSet ( SinkEventAttributes .ALT , getI18nString ( locale , "icon.success" ) );
697
+ sink .figureGraphics ( IMG_SUCCESS_URL , attributes );
701
698
}
702
699
703
700
private void iconError ( Locale locale , Sink sink )
704
701
{
705
- sink .figure ();
706
- sink .figureCaption ();
707
- sink .text ( getI18nString ( locale , "icon.error" ) );
708
- sink .figureCaption_ ();
709
- sink .figureGraphics ( IMG_ERROR_URL );
710
- sink .figure_ ();
702
+ SinkEventAttributes attributes =
703
+ new SinkEventAttributeSet ( SinkEventAttributes .ALT , getI18nString ( locale , "icon.error" ) );
704
+ sink .figureGraphics ( IMG_ERROR_URL , attributes );
711
705
}
712
706
713
707
/**
You can’t perform that action at this time.
0 commit comments