[OpenJDK 2D-Dev] JDK 9 RFR of JDK-8033223: Fix serial lint warnings in sun.{font, java2d[.*]}
Joe Darcy
joe.darcy at oracle.com
Thu Jan 30 06:10:40 UTC 2014
Hello,
As another installment of addressing the serial warnings in the client
libraries, please review my changes for:
JDK-8033223: Fix serial lint warnings in sun.{font, java2d[.*]}
http://cr.openjdk.java.net/~darcy/8033223.0/
Patch below.
Thanks,
-Joe
--- old/src/share/classes/sun/font/FontScalerException.java 2014-01-29
22:09:03.000000000 -0800
+++ new/src/share/classes/sun/font/FontScalerException.java 2014-01-29
22:09:03.000000000 -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;
+ at SuppressWarnings("serial") // JDK-implementation class
public class FontScalerException extends Exception {
public FontScalerException() {
super("Font scaler encountered runtime problem.");
--- old/src/share/classes/sun/java2d/InvalidPipeException.java
2014-01-29 22:09:04.000000000 -0800
+++ new/src/share/classes/sun/java2d/InvalidPipeException.java
2014-01-29 22:09:04.000000000 -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.
*/
+ at SuppressWarnings("serial") // JDK-implementation class
public class InvalidPipeException extends IllegalStateException {
/**
* Constructs an InvalidPipeException with no detail message.
--- old/src/share/classes/sun/java2d/cmm/lcms/LCMSImageLayout.java
2014-01-29 22:09:04.000000000 -0800
+++ new/src/share/classes/sun/java2d/cmm/lcms/LCMSImageLayout.java
2014-01-29 22:09:04.000000000 -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);
More information about the 2d-dev
mailing list