8034050: Fix serial lint warnings in javax.print

Reviewed-by: alanb, prr
This commit is contained in:
Joe Darcy 2014-02-10 18:09:40 -08:00
parent 401de1c53e
commit d03152e11b
4 changed files with 18 additions and 4 deletions

View File

@ -1045,6 +1045,7 @@ public class DocFlavor implements Serializable, Cloneable {
* @author Alan Kaminsky * @author Alan Kaminsky
*/ */
public static class URL extends DocFlavor { public static class URL extends DocFlavor {
private static final long serialVersionUID = 2936725788144902062L;
/** /**
* Constructs a new doc flavor with the given MIME type and a print * Constructs a new doc flavor with the given MIME type and a print

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -33,7 +33,7 @@ package javax.print;
* *
*/ */
public class PrintException extends Exception { public class PrintException extends Exception {
private static final long serialVersionUID = -5932531546705242471L;
/** /**
* Construct a print exception with no detail message. * Construct a print exception with no detail message.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -77,6 +77,7 @@ public final class AttributeSetUtilities {
*/ */
private static class UnmodifiableAttributeSet private static class UnmodifiableAttributeSet
implements AttributeSet, Serializable { implements AttributeSet, Serializable {
private static final long serialVersionUID = -6131802583863447813L;
private AttributeSet attrset; private AttributeSet attrset;
@ -147,6 +148,7 @@ public final class AttributeSetUtilities {
private static class UnmodifiableDocAttributeSet private static class UnmodifiableDocAttributeSet
extends UnmodifiableAttributeSet extends UnmodifiableAttributeSet
implements DocAttributeSet, Serializable { implements DocAttributeSet, Serializable {
private static final long serialVersionUID = -6349408326066898956L;
public UnmodifiableDocAttributeSet(DocAttributeSet attributeSet) { public UnmodifiableDocAttributeSet(DocAttributeSet attributeSet) {
@ -161,6 +163,7 @@ public final class AttributeSetUtilities {
extends UnmodifiableAttributeSet extends UnmodifiableAttributeSet
implements PrintRequestAttributeSet, Serializable implements PrintRequestAttributeSet, Serializable
{ {
private static final long serialVersionUID = 7799373532614825073L;
public UnmodifiablePrintRequestAttributeSet public UnmodifiablePrintRequestAttributeSet
(PrintRequestAttributeSet attributeSet) { (PrintRequestAttributeSet attributeSet) {
@ -175,6 +178,7 @@ public final class AttributeSetUtilities {
extends UnmodifiableAttributeSet extends UnmodifiableAttributeSet
implements PrintJobAttributeSet, Serializable implements PrintJobAttributeSet, Serializable
{ {
private static final long serialVersionUID = -8002245296274522112L;
public UnmodifiablePrintJobAttributeSet public UnmodifiablePrintJobAttributeSet
(PrintJobAttributeSet attributeSet) { (PrintJobAttributeSet attributeSet) {
@ -189,6 +193,7 @@ public final class AttributeSetUtilities {
extends UnmodifiableAttributeSet extends UnmodifiableAttributeSet
implements PrintServiceAttributeSet, Serializable implements PrintServiceAttributeSet, Serializable
{ {
private static final long serialVersionUID = -7112165137107826819L;
public UnmodifiablePrintServiceAttributeSet public UnmodifiablePrintServiceAttributeSet
(PrintServiceAttributeSet attributeSet) { (PrintServiceAttributeSet attributeSet) {
@ -291,6 +296,7 @@ public final class AttributeSetUtilities {
*/ */
private static class SynchronizedAttributeSet private static class SynchronizedAttributeSet
implements AttributeSet, Serializable { implements AttributeSet, Serializable {
private static final long serialVersionUID = 8365731020128564925L;
private AttributeSet attrset; private AttributeSet attrset;
@ -357,6 +363,7 @@ public final class AttributeSetUtilities {
private static class SynchronizedDocAttributeSet private static class SynchronizedDocAttributeSet
extends SynchronizedAttributeSet extends SynchronizedAttributeSet
implements DocAttributeSet, Serializable { implements DocAttributeSet, Serializable {
private static final long serialVersionUID = 6455869095246629354L;
public SynchronizedDocAttributeSet(DocAttributeSet attributeSet) { public SynchronizedDocAttributeSet(DocAttributeSet attributeSet) {
super(attributeSet); super(attributeSet);
@ -369,6 +376,7 @@ public final class AttributeSetUtilities {
private static class SynchronizedPrintRequestAttributeSet private static class SynchronizedPrintRequestAttributeSet
extends SynchronizedAttributeSet extends SynchronizedAttributeSet
implements PrintRequestAttributeSet, Serializable { implements PrintRequestAttributeSet, Serializable {
private static final long serialVersionUID = 5671237023971169027L;
public SynchronizedPrintRequestAttributeSet public SynchronizedPrintRequestAttributeSet
(PrintRequestAttributeSet attributeSet) { (PrintRequestAttributeSet attributeSet) {
@ -382,6 +390,7 @@ public final class AttributeSetUtilities {
private static class SynchronizedPrintJobAttributeSet private static class SynchronizedPrintJobAttributeSet
extends SynchronizedAttributeSet extends SynchronizedAttributeSet
implements PrintJobAttributeSet, Serializable { implements PrintJobAttributeSet, Serializable {
private static final long serialVersionUID = 2117188707856965749L;
public SynchronizedPrintJobAttributeSet public SynchronizedPrintJobAttributeSet
(PrintJobAttributeSet attributeSet) { (PrintJobAttributeSet attributeSet) {
@ -395,6 +404,8 @@ public final class AttributeSetUtilities {
private static class SynchronizedPrintServiceAttributeSet private static class SynchronizedPrintServiceAttributeSet
extends SynchronizedAttributeSet extends SynchronizedAttributeSet
implements PrintServiceAttributeSet, Serializable { implements PrintServiceAttributeSet, Serializable {
private static final long serialVersionUID = -2830705374001675073L;
public SynchronizedPrintServiceAttributeSet public SynchronizedPrintServiceAttributeSet
(PrintServiceAttributeSet attributeSet) { (PrintServiceAttributeSet attributeSet) {
super(attributeSet); super(attributeSet);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2001, 2005, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -33,6 +33,8 @@ package javax.print.attribute;
* @since 1.4 * @since 1.4
*/ */
public class UnmodifiableSetException extends RuntimeException { public class UnmodifiableSetException extends RuntimeException {
private static final long serialVersionUID = 2255250308571511731L;
/** /**
* Constructs an UnsupportedOperationException with no detail message. * Constructs an UnsupportedOperationException with no detail message.
*/ */