Skip to content

Commit

Permalink
Mark some utility classes as final.
Browse files Browse the repository at this point in the history
This makes sense, considering all that is provided is utility methods.
  • Loading branch information
lioncash committed Mar 18, 2014
1 parent ca2a863 commit 40d6beb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gdx/src/com/badlogic/gdx/math/GeometryUtils.java
Expand Up @@ -17,7 +17,7 @@
package com.badlogic.gdx.math;

/** @author Nathan Sweet */
public class GeometryUtils {
public final class GeometryUtils {
static private final Vector2 tmp1 = new Vector2(), tmp2 = new Vector2(), tmp3 = new Vector2();

/** Computes the barycentric coordinates v,w for the specified point in the triangle.
Expand Down
2 changes: 1 addition & 1 deletion gdx/src/com/badlogic/gdx/math/MathUtils.java
Expand Up @@ -24,7 +24,7 @@
* <p>
* Thanks to Riven on JavaGaming.org for the basis of sin/cos/atan2/floor/ceil.
* @author Nathan Sweet */
public class MathUtils {
public final class MathUtils {
static public final float nanoToSec = 1 / 1000000000f;

// ---
Expand Down
2 changes: 1 addition & 1 deletion gdx/src/com/badlogic/gdx/utils/BufferUtils.java
Expand Up @@ -32,7 +32,7 @@
/** Class with static helper methods to increase the speed of array/direct buffer and direct buffer/direct buffer transfers
*
* @author mzechner, xoppa */
public class BufferUtils {
public final class BufferUtils {
static Array<ByteBuffer> unsafeBuffers = new Array<ByteBuffer>();
static int allocatedUnsafe = 0;

Expand Down
2 changes: 1 addition & 1 deletion gdx/src/com/badlogic/gdx/utils/NumberUtils.java
Expand Up @@ -16,7 +16,7 @@

package com.badlogic.gdx.utils;

public class NumberUtils {
public final class NumberUtils {
/** When false, the mask in {@link #intToFloatColor(int)} will not be used. This must only be used when the resulting floats
* will not be used with {@link #floatToIntColor(float)}. */
static public boolean intToFloatColorMask = true;
Expand Down
2 changes: 1 addition & 1 deletion gdx/src/com/badlogic/gdx/utils/ScreenUtils.java
Expand Up @@ -30,7 +30,7 @@
* entire screen content or a portion thereof.
*
* @author espitz */
public class ScreenUtils {
public final class ScreenUtils {

/** Returns the default framebuffer contents as a {@link TextureRegion} with a width and height equal to the current screen
* size. The base {@link Texture} always has {@link MathUtils#nextPowerOfTwo} dimensions and RGBA8888 {@link Format}. It can be
Expand Down
2 changes: 1 addition & 1 deletion gdx/src/com/badlogic/gdx/utils/StreamUtils.java
Expand Up @@ -26,7 +26,7 @@
import java.io.StringWriter;

/** Provides utility methods to copy streams */
public class StreamUtils {
public final class StreamUtils {
public static final int DEFAULT_BUFFER_SIZE = 8192;
public static final byte[] EMPTY_BYTES = new byte[0];

Expand Down
2 changes: 1 addition & 1 deletion gdx/src/com/badlogic/gdx/utils/TimeUtils.java
Expand Up @@ -18,7 +18,7 @@

/** Wrapper around System.nanoTime() and System.currentTimeMillis(). Use this if you want to be compatible across all platforms!
* @author mzechner */
public class TimeUtils {
public final class TimeUtils {
/** @return The current value of the system timer, in nanoseconds. */
public static long nanoTime () {
return System.nanoTime();
Expand Down

0 comments on commit 40d6beb

Please sign in to comment.