Marked a couple more members as 'final'. (continuation of 441bb95)

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han 2015-08-31 22:54:35 -05:00
parent 769ad963e7
commit df3e662865
3 changed files with 9 additions and 9 deletions

View File

@ -44,19 +44,19 @@ public class DownloadNode {
private Download download; private Download download;
/** Beatmap set ID. */ /** Beatmap set ID. */
private int beatmapSetID; private final int beatmapSetID;
/** Last updated date string. */ /** Last updated date string. */
private String date; private final String date;
/** Song title. */ /** Song title. */
private String title, titleUnicode; private final String title, titleUnicode;
/** Song artist. */ /** Song artist. */
private String artist, artistUnicode; private final String artist, artistUnicode;
/** Beatmap creator. */ /** Beatmap creator. */
private String creator; private final String creator;
/** Button drawing values. */ /** Button drawing values. */
private static float buttonBaseX, buttonBaseY, buttonWidth, buttonHeight, buttonOffset; private static float buttonBaseX, buttonBaseY, buttonWidth, buttonHeight, buttonOffset;

View File

@ -28,7 +28,7 @@ import java.nio.channels.ReadableByteChannel;
*/ */
public class ReadableByteChannelWrapper implements ReadableByteChannel { public class ReadableByteChannelWrapper implements ReadableByteChannel {
/** The wrapped ReadableByteChannel. */ /** The wrapped ReadableByteChannel. */
private ReadableByteChannel rbc; private final ReadableByteChannel rbc;
/** The number of bytes read. */ /** The number of bytes read. */
private long bytesRead; private long bytesRead;

View File

@ -61,8 +61,8 @@ public class CatmullCurve extends EqualDistanceMultiCurve {
points.removeFirst(); points.removeFirst();
} }
} }
if (getX(ncontrolPoints - 1) != getX(ncontrolPoints - 2) if (getX(ncontrolPoints - 1) != getX(ncontrolPoints - 2) ||
||getY(ncontrolPoints - 1) != getY(ncontrolPoints - 2)) getY(ncontrolPoints - 1) != getY(ncontrolPoints - 2))
points.addLast(new Vec2f(getX(ncontrolPoints - 1), getY(ncontrolPoints - 1))); points.addLast(new Vec2f(getX(ncontrolPoints - 1), getY(ncontrolPoints - 1)));
if (points.size() >= 4) { if (points.size() >= 4) {
try { try {