mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-15 04:45:25 +00:00
8033222: Fix serial lint warnings in sun.awt.*
Reviewed-by: alanb
This commit is contained in:
parent
b008220373
commit
6261c40dca
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 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
|
||||
@ -33,6 +33,7 @@ import java.awt.image.*;
|
||||
*
|
||||
* @author ThomasBall
|
||||
*/
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public abstract class CustomCursor extends Cursor {
|
||||
|
||||
protected Image image;
|
||||
|
||||
@ -2109,6 +2109,7 @@ public abstract class FontConfiguration {
|
||||
return ret;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
class FontProperties extends Properties {
|
||||
public synchronized Object put(Object k, Object v) {
|
||||
parseProperty((String)k, (String)v);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 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
|
||||
@ -28,6 +28,7 @@ package sun.awt;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.awt.Window;
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class TimedWindowEvent extends WindowEvent {
|
||||
|
||||
private long time;
|
||||
|
||||
@ -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.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,6 +29,7 @@ import java.awt.Component;
|
||||
import java.awt.dnd.InvalidDnDOperationException;
|
||||
import java.awt.event.MouseEvent;
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class SunDropTargetEvent extends MouseEvent {
|
||||
|
||||
public static final int MOUSE_DROPPED = MouseEvent.MOUSE_RELEASED;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 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
|
||||
@ -35,6 +35,7 @@ import java.awt.event.PaintEvent;
|
||||
* Look at <code>javax.swing.SwingPaintEventDispatcher</code> for more.
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class IgnorePaintEvent extends PaintEvent {
|
||||
public IgnorePaintEvent(Component source, int id, Rectangle updateRect) {
|
||||
super(source, id, updateRect);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 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.awt.image;
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class BadDepthException extends Exception {
|
||||
public BadDepthException() {
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 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.awt.image;
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class ImageAccessException extends Exception {
|
||||
public ImageAccessException(String s) {
|
||||
super(s);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 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.awt.image;
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class ImageFormatException extends Exception {
|
||||
public ImageFormatException(String s) {
|
||||
super(s);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2010, 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
|
||||
@ -231,6 +231,7 @@ public class PNGImageDecoder extends ImageDecoder
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class PNGException extends IOException {
|
||||
PNGException(String s) { super(s); }
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2002, 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.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,7 +34,7 @@ import sun.security.action.GetPropertyAction;
|
||||
* @author Michael Martak
|
||||
* @since 1.4
|
||||
*/
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
class DefaultShellFolder extends ShellFolder {
|
||||
|
||||
/**
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2009, 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.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -37,7 +37,7 @@ import java.util.concurrent.Callable;
|
||||
* @author Michael Martak
|
||||
* @since 1.4
|
||||
*/
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public abstract class ShellFolder extends File {
|
||||
private static final String COLUMN_NAME = "FileChooser.fileNameHeaderText";
|
||||
private static final String COLUMN_SIZE = "FileChooser.fileSizeHeaderText";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user