28
28
import java .util .Locale ;
29
29
import java .util .ResourceBundle ;
30
30
31
- import com .sun . syndication .feed .synd .SyndContent ;
32
- import com .sun . syndication .feed .synd .SyndContentImpl ;
33
- import com .sun . syndication .feed .synd .SyndEntry ;
34
- import com .sun . syndication .feed .synd .SyndEntryImpl ;
35
- import com .sun . syndication .feed .synd .SyndFeed ;
36
- import com .sun . syndication .feed .synd .SyndFeedImpl ;
37
- import com .sun . syndication .io .FeedException ;
38
- import com .sun . syndication .io .SyndFeedOutput ;
31
+ import com .rometools . rome .feed .synd .SyndContent ;
32
+ import com .rometools . rome .feed .synd .SyndContentImpl ;
33
+ import com .rometools . rome .feed .synd .SyndEntry ;
34
+ import com .rometools . rome .feed .synd .SyndEntryImpl ;
35
+ import com .rometools . rome .feed .synd .SyndFeed ;
36
+ import com .rometools . rome .feed .synd .SyndFeedImpl ;
37
+ import com .rometools . rome .io .FeedException ;
38
+ import com .rometools . rome .io .SyndFeedOutput ;
39
39
import org .apache .maven .doxia .util .DoxiaUtils ;
40
40
import org .apache .maven .plugins .changes .model .Release ;
41
41
@@ -58,7 +58,7 @@ public class FeedGenerator {
58
58
/**
59
59
* Initialize feedGenerator for a given locale.
60
60
*
61
- * @param locale a locale for i18n.
61
+ * @param locale a locale for i18n
62
62
*/
63
63
public FeedGenerator (final Locale locale ) {
64
64
this .feed = new SyndFeedImpl ();
@@ -69,7 +69,7 @@ public FeedGenerator(final Locale locale) {
69
69
/**
70
70
* The author of the feed.
71
71
*
72
- * @return the author.
72
+ * @return the author
73
73
*/
74
74
public String getAuthor () {
75
75
return author ;
@@ -78,7 +78,7 @@ public String getAuthor() {
78
78
/**
79
79
* Set the author of the feed.
80
80
*
81
- * @param author not null.
81
+ * @param author not null
82
82
*/
83
83
public void setAuthor (final String author ) {
84
84
this .author = author .trim (); // this also assures that author is not null.
@@ -87,7 +87,7 @@ public void setAuthor(final String author) {
87
87
/**
88
88
* The title of the feed.
89
89
*
90
- * @return the title.
90
+ * @return the title
91
91
*/
92
92
public String getTitle () {
93
93
return title ;
@@ -96,7 +96,7 @@ public String getTitle() {
96
96
/**
97
97
* Set the title of the feed.
98
98
*
99
- * @param title not null.
99
+ * @param title not null
100
100
*/
101
101
public void setTitle (final String title ) {
102
102
this .title = title .trim (); // this also assures that title is not null.
@@ -105,7 +105,7 @@ public void setTitle(final String title) {
105
105
/**
106
106
* The DateFormat.
107
107
*
108
- * @return may be null.
108
+ * @return may be null
109
109
*/
110
110
public DateFormat getDateFormat () {
111
111
return dateFormat ;
@@ -114,7 +114,7 @@ public DateFormat getDateFormat() {
114
114
/**
115
115
* Set the date format. This should match the date format used for the release dates in changes.xml.
116
116
*
117
- * @param dateFormat may be null.
117
+ * @param dateFormat may be null
118
118
*/
119
119
public void setDateFormat (final DateFormat dateFormat ) {
120
120
this .dateFormat = dateFormat ;
@@ -123,7 +123,7 @@ public void setDateFormat(final DateFormat dateFormat) {
123
123
/**
124
124
* The main link of the feed.
125
125
*
126
- * @return the link.
126
+ * @return the link
127
127
*/
128
128
public String getLink () {
129
129
return link ;
@@ -132,7 +132,7 @@ public String getLink() {
132
132
/**
133
133
* Set the main link of the feed.
134
134
*
135
- * @param link not null.
135
+ * @param link not null
136
136
*/
137
137
public void setLink (final String link ) {
138
138
this .link = link .trim (); // this also assures that link is not null.
@@ -168,7 +168,7 @@ public List<String> getSupportedFeedTypes() {
168
168
* @param feedType The type of the feed to generate. See {@link #isSupportedFeedType(java.lang.String)} for
169
169
* supported values.
170
170
* @param writer a Writer. Note that this is not flushed nor closed upon exit.
171
- * @throws IOException if an error occurs during export.
171
+ * @throws IOException if an error occurs during export
172
172
*/
173
173
public void export (final List <Release > releases , final String feedType , final Writer writer ) throws IOException {
174
174
feed .setFeedType (feedType );
@@ -219,7 +219,6 @@ private static SyndContent getSyndContent(final Release release) {
219
219
sb .append ("<p>" ).append (description ).append ("</p>" );
220
220
}
221
221
222
- // TODO: localize?
223
222
sb .append ("<p>Version " ).append (release .getVersion ()).append (" is available with " );
224
223
sb .append (release .getActions ().size ()).append (" fixed issues.</p>" );
225
224
0 commit comments