Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8253946

Missed default constructor for StreamPrintServiceFactory.java

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 16
    • client-libs
    • None
    • 2d
    • source
    • minimal
    • SE

      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

      public abstract class javax.print.StreamPrintServiceFactory {
      
      +    /**
      +     * Constructor for subclasses to call.
      +     */
      +     protected StreamPrintServiceFactory() {}
      +
      
      

            prr Philip Race
            prr Philip Race
            Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: