JDK-8253946 : Missed default constructor for StreamPrintServiceFactory.java
  • Type: CSR
  • Component: client-libs
  • Sub-Component: 2d
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 16
  • Submitted: 2020-10-02
  • Updated: 2020-10-02
  • Resolved: 2020-10-02
Related Reports
CSR :  
Description
Summary
-------

Add a default constructor for StreamPrintServiceFactory.java
Problem
-------

Default constructors are an anti--pattern which we need to fix in the desktop module. This is one case that was missed in a previous pass.

Solution
--------
Add a default constructor

Specification
-------------

<pre>
public abstract class javax.print.StreamPrintServiceFactory {

+    /**
+     * Constructor for subclasses to call.
+     */
+     protected StreamPrintServiceFactory() {}
+

</pre>
Comments
Moving to Approved.
02-10-2020