Added missing @Override annotations in Java source file to reduce warnings.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 27 Apr 2013 14:13:30 +0200
changeset 7118 84d8f37b112b
parent 7117 23c36c7533dd
child 7119 b0ad5dd4cabb
Added missing @Override annotations in Java source file to reduce warnings.
android-project/src/org/libsdl/app/SDLActivity.java
--- a/android-project/src/org/libsdl/app/SDLActivity.java	Sat Apr 27 13:55:47 2013 +0200
+++ b/android-project/src/org/libsdl/app/SDLActivity.java	Sat Apr 27 14:13:30 2013 +0200
@@ -64,6 +64,7 @@
     }
 
     // Setup
+    @Override
     protected void onCreate(Bundle savedInstanceState) {
         //Log.v("SDL", "onCreate()");
         super.onCreate(savedInstanceState);
@@ -95,6 +96,7 @@
         // Don't call SDLActivity.nativeResume(); here, it will be called via SDLSurface::surfaceChanged->SDLActivity::startApp
     }*/
 
+    @Override
     protected void onDestroy() {
         super.onDestroy();
         Log.v("SDL", "onDestroy()");
@@ -220,6 +222,7 @@
             this.h = h;
         }
 
+        @Override
         public void run() {
             AbsoluteLayout.LayoutParams params = new AbsoluteLayout.LayoutParams(
                     w, h + HEIGHT_PADDING, x, y);
@@ -372,6 +375,7 @@
     
     public static void audioStartThread() {
         mAudioThread = new Thread(new Runnable() {
+            @Override
             public void run() {
                 mAudioTrack.play();
                 nativeRunAudioThread();
@@ -442,6 +446,7 @@
     Simple nativeInit() runnable
 */
 class SDLMain implements Runnable {
+    @Override
     public void run() {
         // Runs SDL_main()
         SDLActivity.nativeInit();
@@ -485,6 +490,7 @@
     }
 
     // Called when we have a valid drawing surface
+    @Override
     public void surfaceCreated(SurfaceHolder holder) {
         Log.v("SDL", "surfaceCreated()");
         holder.setType(SurfaceHolder.SURFACE_TYPE_GPU);
@@ -492,6 +498,7 @@
     }
 
     // Called when we lose the surface
+    @Override
     public void surfaceDestroyed(SurfaceHolder holder) {
         Log.v("SDL", "surfaceDestroyed()");
         if (!SDLActivity.mIsPaused) {
@@ -502,6 +509,7 @@
     }
 
     // Called when the surface is resized
+    @Override
     public void surfaceChanged(SurfaceHolder holder,
                                int format, int width, int height) {
         Log.v("SDL", "surfaceChanged()");
@@ -560,12 +568,14 @@
     }
 
     // unused
+    @Override
     public void onDraw(Canvas canvas) {}
 
 
 
 
     // Key events
+    @Override
     public boolean onKey(View  v, int keyCode, KeyEvent event) {
 
         if (event.getAction() == KeyEvent.ACTION_DOWN) {
@@ -583,6 +593,7 @@
     }
 
     // Touch events
+    @Override
     public boolean onTouch(View v, MotionEvent event) {
         {
              final int touchDevId = event.getDeviceId();
@@ -626,10 +637,12 @@
         }
     }
     
+    @Override
     public void onAccuracyChanged(Sensor sensor, int accuracy) {
         // TODO
     }
 
+    @Override
     public void onSensorChanged(SensorEvent event) {
         if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
             SDLActivity.onNativeAccel(event.values[0] / SensorManager.GRAVITY_EARTH,
@@ -658,6 +671,7 @@
         return true;
     }
 
+    @Override
     public boolean onKey(View v, int keyCode, KeyEvent event) {
 
         // This handles the hardware keyboard input