Uploaded image for project: 'CCC Migration Project'
  1. CCC Migration Project
  2. CCC-8042864

Fix raw and unchecked warnings in javax.print

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Compatibility Kind:
      source
    • Compatibility Risk:
      minimal
    • Interface Kind:
      Java API
    • Scope:
      SE

      Description

      Summary

      Generify portions of javax.print.

      Problem

      The signatures of some methods in javax.print.* use raw types. These should be corrected to use generics properly.

      Solution

      Generify the API.

      Specification

      --- old/src/share/classes/javax/print/AttributeException.java   2014-05-19 12:41:29.000000000 -0700
      +++ new/src/share/classes/javax/print/AttributeException.java   2014-05-19 12:41:28.000000000 -0700
      @@ -52,7 +52,7 @@
            *
            * @return unsupported attribute classes
            */
      -    public Class[] getUnsupportedAttributes();
      +    public Class<?>[] getUnsupportedAttributes();        /**       * Returns the array of printing attributes for which the Print Service --- old/src/share/classes/javax/print/attribute/standard/DialogTypeSelection.java       2014-05-19 12:41:33.000000000 -0700 +++ new/src/share/classes/javax/print/attribute/standard/DialogTypeSelection.java       2014-05-19 12:41:33.000000000 -0700 h@@ -110,7 +111,7 @@       * @return  Printing attribute class (category), an instance of class       *          {@link java.lang.Class java.lang.Class}.       */ -    public final Class getCategory() { +    public final Class<? extends Attribute> getCategory() {          return DialogTypeSelection.class;      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              darcy Joe Darcy
              Reviewed By:
              Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: