8033223: Fix serial lint warnings in sun.{font, java2d[.*]}
authordarcy
Sat, 01 Feb 2014 10:27:55 -0800
changeset 22630 ca4dc1b04ef3
parent 22629 c9ef7086f8ff
child 22631 ac85b05a53f4
8033223: Fix serial lint warnings in sun.{font, java2d[.*]} Reviewed-by: bae
jdk/src/share/classes/com/sun/imageio/plugins/common/BogusColorSpace.java
jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JFIFMarkerSegment.java
jdk/src/share/classes/sun/font/FontScalerException.java
jdk/src/share/classes/sun/java2d/InvalidPipeException.java
jdk/src/share/classes/sun/java2d/cmm/lcms/LCMSImageLayout.java
--- a/jdk/src/share/classes/com/sun/imageio/plugins/common/BogusColorSpace.java	Fri Jan 31 13:42:31 2014 -0500
+++ b/jdk/src/share/classes/com/sun/imageio/plugins/common/BogusColorSpace.java	Sat Feb 01 10:27:55 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -31,6 +31,7 @@
  * A dummy <code>ColorSpace</code> to enable <code>ColorModel</code>
  * for image data which do not have an innate color representation.
  */
+@SuppressWarnings("serial") // JDK-implementation class
 public class BogusColorSpace extends ColorSpace {
     /**
      * Return the type given the number of components.
--- a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JFIFMarkerSegment.java	Fri Jan 31 13:42:31 2014 -0500
+++ b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JFIFMarkerSegment.java	Sat Feb 01 10:27:55 2014 -0800
@@ -558,6 +558,7 @@
 
     // Could put reason codes in here to be parsed in writeJFXXSegment
     // in order to provide more meaningful warnings.
+    @SuppressWarnings("serial") // JDK-implementation class
     private class IllegalThumbException extends Exception {}
 
     /**
--- a/jdk/src/share/classes/sun/font/FontScalerException.java	Fri Jan 31 13:42:31 2014 -0500
+++ b/jdk/src/share/classes/sun/font/FontScalerException.java	Sat Feb 01 10:27:55 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
 
 package sun.font;
 
+@SuppressWarnings("serial") // JDK-implementation class
 public class FontScalerException extends Exception {
     public FontScalerException() {
       super("Font scaler encountered runtime problem.");
--- a/jdk/src/share/classes/sun/java2d/InvalidPipeException.java	Fri Jan 31 13:42:31 2014 -0500
+++ b/jdk/src/share/classes/sun/java2d/InvalidPipeException.java	Sat Feb 01 10:27:55 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -34,6 +34,7 @@
  * windows which toggle the need to use platform graphics or direct
  * graphics access.
  */
+@SuppressWarnings("serial") // JDK-implementation class
 public class InvalidPipeException extends IllegalStateException {
     /**
      * Constructs an InvalidPipeException with no detail message.
--- a/jdk/src/share/classes/sun/java2d/cmm/lcms/LCMSImageLayout.java	Fri Jan 31 13:42:31 2014 -0500
+++ b/jdk/src/share/classes/sun/java2d/cmm/lcms/LCMSImageLayout.java	Sat Feb 01 10:27:55 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -376,6 +376,7 @@
         return (int)res;
     }
 
+    @SuppressWarnings("serial") // JDK-implementation class
     public static class ImageLayoutException extends Exception {
         public ImageLayoutException(String message) {
             super(message);