src/share/classes/java/awt/geom/Path2D.java
Print this page
*** 649,658 ****
--- 649,659 ----
/**
* {@inheritDoc}
* @since 1.6
*/
+ @SuppressWarnings("fallthrough")
public final void append(PathIterator pi, boolean connect) {
float coords[] = new float[6];
while (!pi.isDone()) {
switch (pi.currentSegment(coords)) {
case SEG_MOVETO:
*** 1374,1383 ****
--- 1375,1385 ----
/**
* {@inheritDoc}
* @since 1.6
*/
+ @SuppressWarnings("fallthrough")
public final void append(PathIterator pi, boolean connect) {
double coords[] = new double[6];
while (!pi.isDone()) {
switch (pi.currentSegment(coords)) {
case SEG_MOVETO:
*** 2454,2464 ****
s.writeFloat(fCoords[cindex++]);
s.writeFloat(fCoords[cindex++]);
}
}
}
! s.writeByte((byte) SERIAL_PATH_END);
}
final void readObject(java.io.ObjectInputStream s, boolean storedbl)
throws java.lang.ClassNotFoundException, java.io.IOException
{
--- 2456,2466 ----
s.writeFloat(fCoords[cindex++]);
s.writeFloat(fCoords[cindex++]);
}
}
}
! s.writeByte(SERIAL_PATH_END);
}
final void readObject(java.io.ObjectInputStream s, boolean storedbl)
throws java.lang.ClassNotFoundException, java.io.IOException
{