--- a/jdk/src/share/classes/javax/print/ServiceUI.java Mon May 19 23:21:39 2014 +0400
+++ b/jdk/src/share/classes/javax/print/ServiceUI.java Tue May 20 09:36:22 2014 -0700
@@ -228,9 +228,9 @@
if (dialog.getStatus() == ServiceDialog.APPROVE) {
PrintRequestAttributeSet newas = dialog.getAttributes();
- Class dstCategory = Destination.class;
- Class amCategory = SunAlternateMedia.class;
- Class fdCategory = Fidelity.class;
+ Class<?> dstCategory = Destination.class;
+ Class<?> amCategory = SunAlternateMedia.class;
+ Class<?> fdCategory = Fidelity.class;
if (attributes.containsKey(dstCategory) &&
!newas.containsKey(dstCategory))
@@ -315,7 +315,7 @@
Attribute[] usAttrs = asUnsupported.toArray();
for (int i=0; i<usAttrs.length; i++) {
- Class category = usAttrs[i].getCategory();
+ Class<? extends Attribute> category = usAttrs[i].getCategory();
if (ps.isAttributeCategorySupported(category)) {
Attribute attr =