Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
3 changes: 3 additions & 0 deletions lint.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
</lint>
4 changes: 3 additions & 1 deletion src/org/andengine/audio/music/MusicFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ public static void onCreate() {
public static Music createMusicFromFile(final MusicManager pMusicManager, final File pFile) throws IOException {
final MediaPlayer mediaPlayer = new MediaPlayer();

mediaPlayer.setDataSource(new FileInputStream(pFile).getFD());
FileInputStream fileInputStream = new FileInputStream(pFile);
mediaPlayer.setDataSource(fileInputStream.getFD());
fileInputStream.close();
mediaPlayer.prepare();

final Music music = new Music(pMusicManager, mediaPlayer);
Expand Down
6 changes: 4 additions & 2 deletions src/org/andengine/engine/Engine.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

import org.andengine.BuildConfig;
import org.andengine.audio.music.MusicFactory;
import org.andengine.audio.music.MusicManager;
Expand Down Expand Up @@ -41,7 +40,7 @@
import org.andengine.opengl.vbo.VertexBufferObjectManager;
import org.andengine.util.debug.Debug;
import org.andengine.util.time.TimeConstants;

import android.annotation.SuppressLint;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
Expand All @@ -66,6 +65,7 @@
* @author Nicolas Gramlich
* @since 12:21:31 - 08.03.2010
*/
@SuppressLint("WrongCall")
public class Engine implements SensorEventListener, OnTouchListener, ITouchEventCallback, LocationListener {
// ===========================================================
// Constants
Expand Down Expand Up @@ -683,6 +683,7 @@ public boolean enableAccelerationSensor(final Context pContext, final IAccelerat
/**
* @return <code>true</code> when the sensor was successfully enabled, <code>false</code> otherwise.
*/
@SuppressWarnings("deprecation")
public boolean enableAccelerationSensor(final Context pContext, final IAccelerationListener pAccelerationListener, final AccelerationSensorOptions pAccelerationSensorOptions) {
final SensorManager sensorManager = (SensorManager) pContext.getSystemService(Context.SENSOR_SERVICE);
if(Engine.isSensorSupported(sensorManager, Sensor.TYPE_ACCELEROMETER)) {
Expand Down Expand Up @@ -726,6 +727,7 @@ public boolean enableOrientationSensor(final Context pContext, final IOrientatio
/**
* @return <code>true</code> when the sensor was successfully enabled, <code>false</code> otherwise.
*/
@SuppressWarnings("deprecation")
public boolean enableOrientationSensor(final Context pContext, final IOrientationListener pOrientationListener, final OrientationSensorOptions pOrientationSensorOptions) {
final SensorManager sensorManager = (SensorManager) pContext.getSystemService(Context.SENSOR_SERVICE);
if(Engine.isSensorSupported(sensorManager, Sensor.TYPE_ACCELEROMETER) && Engine.isSensorSupported(sensorManager, Sensor.TYPE_MAGNETIC_FIELD)) {
Expand Down
1 change: 1 addition & 0 deletions src/org/andengine/engine/options/WakeLockOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @author Nicolas Gramlich
* @since 19:45:23 - 10.07.2010
*/
@SuppressWarnings("deprecation")
public enum WakeLockOptions {
// ===========================================================
// Elements
Expand Down
4 changes: 1 addition & 3 deletions src/org/andengine/entity/primitive/Mesh.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.andengine.entity.primitive;

import java.security.spec.MGF1ParameterSpec;

import org.andengine.engine.camera.Camera;
import org.andengine.entity.shape.IShape;
import org.andengine.entity.shape.RectangularShape;
Expand All @@ -11,9 +9,9 @@
import org.andengine.opengl.shader.constants.ShaderProgramConstants;
import org.andengine.opengl.texture.region.ITextureRegion;
import org.andengine.opengl.util.GLState;
import org.andengine.opengl.vbo.DrawType;
import org.andengine.opengl.vbo.HighPerformanceVertexBufferObject;
import org.andengine.opengl.vbo.IVertexBufferObject;
import org.andengine.opengl.vbo.DrawType;
import org.andengine.opengl.vbo.VertexBufferObjectManager;
import org.andengine.opengl.vbo.attribute.VertexBufferObjectAttribute;
import org.andengine.opengl.vbo.attribute.VertexBufferObjectAttributes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* @author Nicolas Gramlich
* @since 16:50:44 - 10.03.2010
*/
@SuppressWarnings("deprecation")
public class AccelerationData extends BaseSensorData {
// ===========================================================
// Constants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* @author Nicolas Gramlich
* @since 11:30:33 - 25.05.2010
*/
@SuppressWarnings("deprecation")
public class OrientationData extends BaseSensorData {
// ===========================================================
// Constants
Expand Down
1 change: 0 additions & 1 deletion src/org/andengine/util/adt/spatial/quadtree/QuadTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ public synchronized boolean isEmpty() {
return this.getItemCount() == 0;
}

@SuppressWarnings("deprecation")
public synchronized void add(final T pItem) {
this.add(pItem, pItem.getBounds());
}
Expand Down