Skip to content

Commit

Permalink
Make OutputBin class sealed
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderScherbatiy committed May 11, 2024
1 parent 23a8149 commit 96e1f53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
import javax.print.attribute.PrintJobAttribute;
import javax.print.attribute.PrintRequestAttribute;

import sun.print.CustomOutputBin;

/**
* Class {@code OutputBin} is a printing attribute class, an enumeration, that
* specifies the output bin for the job.
* <p>
* Class {@code OutputBin} declares keywords for standard output bin kind values.
* Implementation- or site-defined names for an output bin kind attribute may also be
* created by defining a subclass of class {@code OutputBin}.
* <p>
* <b>IPP Compatibility:</b> This attribute is not an IPP 1.1 attribute; it is
* an attribute in the "output-bin" attribute extension
Expand All @@ -50,7 +50,7 @@
* The {@code toString()} method returns the IPP string representation of the
* attribute value.
*/
public class OutputBin extends EnumSyntax implements PrintRequestAttribute, PrintJobAttribute {
public sealed class OutputBin extends EnumSyntax implements PrintRequestAttribute, PrintJobAttribute permits CustomOutputBin {

@Serial
private static final long serialVersionUID = -3718893309873137109L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import javax.print.attribute.standard.Media;
import javax.print.attribute.standard.OutputBin;

public class CustomOutputBin extends OutputBin {
public final class CustomOutputBin extends OutputBin {
private static ArrayList<String> customStringTable = new ArrayList<>();
private static ArrayList<CustomOutputBin> customEnumTable = new ArrayList<>();
private String choiceName;
Expand Down

0 comments on commit 96e1f53

Please sign in to comment.