From df3e662865532b6607713cfc83cc9a2a428e6da9 Mon Sep 17 00:00:00 2001 From: Jeffrey Han Date: Mon, 31 Aug 2015 22:54:35 -0500 Subject: [PATCH] Marked a couple more members as 'final'. (continuation of 441bb95) Signed-off-by: Jeffrey Han --- src/itdelatrisu/opsu/downloads/DownloadNode.java | 10 +++++----- .../opsu/downloads/ReadableByteChannelWrapper.java | 2 +- src/itdelatrisu/opsu/objects/curves/CatmullCurve.java | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/itdelatrisu/opsu/downloads/DownloadNode.java b/src/itdelatrisu/opsu/downloads/DownloadNode.java index cf9775c7..4205f058 100644 --- a/src/itdelatrisu/opsu/downloads/DownloadNode.java +++ b/src/itdelatrisu/opsu/downloads/DownloadNode.java @@ -44,19 +44,19 @@ public class DownloadNode { private Download download; /** Beatmap set ID. */ - private int beatmapSetID; + private final int beatmapSetID; /** Last updated date string. */ - private String date; + private final String date; /** Song title. */ - private String title, titleUnicode; + private final String title, titleUnicode; /** Song artist. */ - private String artist, artistUnicode; + private final String artist, artistUnicode; /** Beatmap creator. */ - private String creator; + private final String creator; /** Button drawing values. */ private static float buttonBaseX, buttonBaseY, buttonWidth, buttonHeight, buttonOffset; diff --git a/src/itdelatrisu/opsu/downloads/ReadableByteChannelWrapper.java b/src/itdelatrisu/opsu/downloads/ReadableByteChannelWrapper.java index 786b2c5d..cb1a86d1 100644 --- a/src/itdelatrisu/opsu/downloads/ReadableByteChannelWrapper.java +++ b/src/itdelatrisu/opsu/downloads/ReadableByteChannelWrapper.java @@ -28,7 +28,7 @@ import java.nio.channels.ReadableByteChannel; */ public class ReadableByteChannelWrapper implements ReadableByteChannel { /** The wrapped ReadableByteChannel. */ - private ReadableByteChannel rbc; + private final ReadableByteChannel rbc; /** The number of bytes read. */ private long bytesRead; diff --git a/src/itdelatrisu/opsu/objects/curves/CatmullCurve.java b/src/itdelatrisu/opsu/objects/curves/CatmullCurve.java index 95842e77..df59b032 100644 --- a/src/itdelatrisu/opsu/objects/curves/CatmullCurve.java +++ b/src/itdelatrisu/opsu/objects/curves/CatmullCurve.java @@ -61,9 +61,9 @@ public class CatmullCurve extends EqualDistanceMultiCurve { points.removeFirst(); } } - if (getX(ncontrolPoints - 1) != getX(ncontrolPoints - 2) - ||getY(ncontrolPoints - 1) != getY(ncontrolPoints - 2)) - points.addLast(new Vec2f(getX(ncontrolPoints - 1), getY(ncontrolPoints - 1))); + if (getX(ncontrolPoints - 1) != getX(ncontrolPoints - 2) || + getY(ncontrolPoints - 1) != getY(ncontrolPoints - 2)) + points.addLast(new Vec2f(getX(ncontrolPoints - 1), getY(ncontrolPoints - 1))); if (points.size() >= 4) { try { catmulls.add(new CentripetalCatmullRom(points.toArray(new Vec2f[0])));