Skip to content

Commit

Permalink
handled java compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiusIW committed Sep 7, 2014
1 parent 8ec870f commit cecaebf
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 4 deletions.
52 changes: 52 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ jar {

task apiDocs(type: Javadoc) {
source = sourceSets.main.allJava
options.addStringOption "bottom", "Copyright © 2013-2014 Matthew D. Michelotti"
//options.addStringOption "bottom", "Copyright © 2013-2014 Matthew D. Michelotti"
options.setWindowTitle "Collider $version API"
options.setBottom "Copyright © 2013-2014 Matthew D. Michelotti"
options.setDocTitle "Collider $version API"
}

task sourcesJar(type: Jar, dependsOn: classes) {
Expand Down
2 changes: 0 additions & 2 deletions core/src/com/matthewmichelotti/collider/Collider.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
* @author Matthew Michelotti
*/

//TODO check for Java warnings

public final class Collider {
private Field field;
private double time = 0.0;
Expand Down
2 changes: 2 additions & 0 deletions core/src_gdx_util/com/matthewmichelotti/collider/Array.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
/** A resizable, ordered or unordered array of objects. If unordered, this class avoids a memory copy when removing elements (the
* last element is moved to the removed element's position).
* @author Nathan Sweet */
//MM: added suppress warnings unchecked, unused
@SuppressWarnings({"unchecked", "unused"})
//MM: changed class from public to package-private
class Array<T> implements Iterable<T> {
/** Provides direct access to the underlying array. If the Array's generic type is not Object, this field may only be accessed
Expand Down
2 changes: 2 additions & 0 deletions core/src_gdx_util/com/matthewmichelotti/collider/LongMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
* depending on hash collisions. Load factors greater than 0.91 greatly increase the chances the map will have to rehash to the
* next higher POT size.
* @author Nathan Sweet */
//MM: added suppress warnings unchecked, unused
@SuppressWarnings({"unchecked", "unused"})
//MM: changed class from public to package-private
class LongMap<V> implements Iterable<LongMap.Entry<V>> {
private static final int PRIME1 = 0xbe1f14b1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
* hash collisions. Load factors greater than 0.91 greatly increase the chances the set will have to rehash to the next higher POT
* size.
* @author Nathan Sweet */
//MM: added suppress warnings unchecked, unused
@SuppressWarnings({"unchecked", "unused"})
//MM: changed class from public to package-private
class ObjectSet<T> implements Iterable<T> {
private static final int PRIME1 = 0xbe1f14b1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public boolean nextBoolean () {
* This implementation uses {@link #nextLong()} internally. */
@Override
public void nextBytes (final byte[] bytes) {
int n = 0;
int n; // = 0; //MM: commented this assignment
int i = bytes.length;
while (i != 0) {
n = i < 8 ? i : 8; // min(i, 8);
Expand Down

0 comments on commit cecaebf

Please sign in to comment.