DefaultChangeReportFormatter: Make constructor and urlFormatter visible
Implementations may want to only change the default for some of the ChangeReportFormatter's methods, in which case it makes sense to extend the default implementation. However this is not possible when its constructor is private. Likewise, extending classes might need to use the UrlFormatter instance. Make the constructor public and the UrlFormatter protected so that they are visible to deriving classes. Change-Id: Ia4a24f29e0d283cad40b1f90d019ea7f65bc0cb2
This commit is contained in:
@@ -28,10 +28,10 @@ public class DefaultChangeReportFormatter implements ChangeReportFormatter {
|
||||
private static final String SUBJECT_CROP_APPENDIX = "...";
|
||||
private static final int SUBJECT_CROP_RANGE = 10;
|
||||
|
||||
private final DynamicItem<UrlFormatter> urlFormatter;
|
||||
protected final DynamicItem<UrlFormatter> urlFormatter;
|
||||
|
||||
@Inject
|
||||
DefaultChangeReportFormatter(DynamicItem<UrlFormatter> urlFormatter) {
|
||||
public DefaultChangeReportFormatter(DynamicItem<UrlFormatter> urlFormatter) {
|
||||
this.urlFormatter = urlFormatter;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user