Revision: 695
Author: allain.lalonde
Date: Fri Oct 9 08:50:00 2009
Log: Fixing FindBugs transient field warnings.
http://code.google.com/p/piccolo2d/source/detail?r=695
Modified:
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/PFrame.java
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/nodes/P3DRect.java
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/nodes/PLens.java
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwingMouseEvent.java
=======================================
---
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/PFrame.java
Thu Oct 8 14:40:54 2009
+++
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/PFrame.java
Fri Oct 9 08:50:00 2009
@@ -66,7 +66,7 @@
private final GraphicsDevice graphicsDevice;
/** Listener that listens for escape key. */
- private EventListener escapeFullScreenModeListener;
+ private transient EventListener escapeFullScreenModeListener;
/**
* Creates a PFrame with no title, not full screen, and with the
default
=======================================
---
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/nodes/P3DRect.java
Tue Jul 28 12:46:54 2009
+++
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/nodes/P3DRect.java
Fri Oct 9 08:50:00 2009
@@ -51,17 +51,14 @@
* @author Ben Bederson
*/
public class P3DRect extends PNode {
-
- /**
- *
- */
+
private static final long serialVersionUID = 1L;
private Color topLeftOuterColor;
private Color topLeftInnerColor;
private Color bottomRightInnerColor;
private Color bottomRightOuterColor;
private final GeneralPath path;
- private final Stroke stroke;
+ private transient final Stroke stroke;
private boolean raised;
public P3DRect() {
@@ -161,6 +158,7 @@
}
}
+ //TODO: Move this into an example (if not already)
public static void main(final String[] args) {
new PFrame() {
/**
=======================================
---
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/nodes/PLens.java
Tue Jul 28 12:46:54 2009
+++
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/nodes/PLens.java
Fri Oct 9 08:50:00 2009
@@ -63,9 +63,6 @@
*/
public class PLens extends PNode {
- /**
- *
- */
private static final long serialVersionUID = 1L;
public static double LENS_DRAGBAR_HEIGHT = 20;
public static Paint DEFAULT_DRAGBAR_PAINT = Color.DARK_GRAY;
@@ -73,7 +70,7 @@
private final PPath dragBar;
private final PCamera camera;
- private final PDragEventHandler lensDragger;
+ private transient final PDragEventHandler lensDragger;
public PLens() {
// Drag bar gets resized to fit the available space, so any
rectangle
=======================================
---
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java
Thu Aug 6 09:07:42 2009
+++
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java
Fri Oct 9 08:50:00 2009
@@ -247,7 +247,7 @@
private final List listeningTo = new ArrayList();
/* The parent listener for camera/canvas changes. */
- private final PropertyChangeListener parentListener = new
PropertyChangeListener() {
+ private transient final PropertyChangeListener parentListener = new
PropertyChangeListener() {
/** {...@inheritdoc} */
public void propertyChange(final PropertyChangeEvent evt) {
final PNode parent = (PNode) evt.getNewValue();
=======================================
---
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwingMouseEvent.java
Thu Aug 6 09:07:42 2009
+++
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwingMouseEvent.java
Fri Oct 9 08:50:00 2009
@@ -80,7 +80,7 @@
*/
private static final long serialVersionUID = 1L;
private final int id;
- private final PInputEvent event;
+ private transient final PInputEvent event;
/**
* Constructs a new PMouse event from a Java MouseEvent.
--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---