OSDN Git Service

Remove JDK 1.5-incompatible interface method @Override annotations
authorJack Palevich <jack.palevich@gmail.com>
Sun, 28 Aug 2011 17:29:52 +0000 (10:29 -0700)
committerJack Palevich <jack.palevich@gmail.com>
Sun, 28 Aug 2011 17:29:52 +0000 (10:29 -0700)
Allows building with JDK 1.5.

src/jackpal/androidterm/EmulatorView.java
src/jackpal/androidterm/Term.java
src/jackpal/androidterm/TermViewFlipper.java
src/jackpal/androidterm/WindowList.java

index a0beea6..25fba9a 100644 (file)
@@ -218,7 +218,6 @@ public class EmulatorView extends View implements GestureDetector.OnGestureListe
      * Called by the TermSession when the contents of the view need updating
      */
     private UpdateCallback mUpdateNotify = new UpdateCallback() {
-        @Override
         public void onUpdate() {
             if ( mIsSelectingText ) {
                 int rowShift = mEmulator.getScrollCounter();
index 9c9c84c..edea81b 100644 (file)
@@ -90,7 +90,6 @@ public class Term extends Activity {
 
     private TermService mTermService;
     private ServiceConnection mTSConnection = new ServiceConnection() {
-        @Override
         public void onServiceConnected(ComponentName className, IBinder service) {
             Log.i(TermDebug.LOG_TAG, "Bound to TermService");
             TermService.TSBinder binder = (TermService.TSBinder) service;
@@ -98,7 +97,6 @@ public class Term extends Activity {
             populateViewFlipper();
         }
 
-        @Override
         public void onServiceDisconnected(ComponentName arg0) {
             mTermService = null;
         }
index 3a1b64e..1a19257 100644 (file)
@@ -31,17 +31,14 @@ public class TermViewFlipper extends ViewFlipper implements Iterable<View> {
     class ViewFlipperIterator implements Iterator<View> {
         int pos = 0;
 
-        @Override
         public boolean hasNext() {
             return (pos < getChildCount());
         }
 
-        @Override
         public View next() {
             return getChildAt(pos++);
         }
 
-        @Override
         public void remove() {
             throw new UnsupportedOperationException();
         }
@@ -57,7 +54,6 @@ public class TermViewFlipper extends ViewFlipper implements Iterable<View> {
         this.context = context;
     }
 
-    @Override
     public Iterator<View> iterator() {
         return new ViewFlipperIterator();
     }
index 92780c7..447d1bf 100644 (file)
@@ -45,22 +45,18 @@ public class WindowList extends ListActivity {
     class WindowListAdapter extends BaseAdapter {
         private LayoutInflater inflater = getLayoutInflater();
 
-        @Override
         public int getCount() {
             return sessions.size();
         }
 
-        @Override
         public Object getItem(int position) {
             return sessions.get(position);
         }
 
-        @Override
         public long getItemId(int position) {
             return position;
         }
 
-        @Override
         public View getView(int position, View convertView, ViewGroup parent) {
             View child = inflater.inflate(R.layout.window_list_item, parent, false);
             TextView label = (TextView) child.findViewById(R.id.window_list_label);
@@ -70,7 +66,6 @@ public class WindowList extends ListActivity {
             final TermService service = mTermService;
             final int closePosition = position;
             close.setOnClickListener(new View.OnClickListener() {
-                @Override
                 public void onClick(View v) {
                     TermSession session = service.getSessions().remove(closePosition);
                     if (session != null) {
@@ -113,14 +108,12 @@ public class WindowList extends ListActivity {
     }
 
     private ServiceConnection mTSConnection = new ServiceConnection() {
-        @Override
         public void onServiceConnected(ComponentName className, IBinder service) {
             TermService.TSBinder binder = (TermService.TSBinder) service;
             mTermService = binder.getService();
             populateList();
         }
 
-        @Override
         public void onServiceDisconnected(ComponentName arg0) {
             mTermService = null;
         }