Remove all @Override annotations

Some build errors related to these annotations occurred, and they're not
necessary. Remove them. Fix suggested by n8fr8.

svn:r22440
This commit is contained in:
Sebastian Hahn 2010-05-29 07:11:29 +00:00
parent a86557941b
commit b9e1ba8f7a
3 changed files with 1 additions and 27 deletions

View File

@ -69,7 +69,6 @@ public class Orbot extends Activity implements OnClickListener, TorConstants, On
ITorService mService = null; ITorService mService = null;
/** Called when the activity is first created. */ /** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
@ -120,7 +119,6 @@ public class Orbot extends Activity implements OnClickListener, TorConstants, On
* (non-Javadoc) * (non-Javadoc)
* @see android.app.Activity#onMenuItemSelected(int, android.view.MenuItem) * @see android.app.Activity#onMenuItemSelected(int, android.view.MenuItem)
*/ */
@Override
public boolean onMenuItemSelected(int featureId, MenuItem item) { public boolean onMenuItemSelected(int featureId, MenuItem item) {
super.onMenuItemSelected(featureId, item); super.onMenuItemSelected(featureId, item);
@ -203,7 +201,6 @@ public class Orbot extends Activity implements OnClickListener, TorConstants, On
/* (non-Javadoc) /* (non-Javadoc)
* @see android.app.Activity#onPause() * @see android.app.Activity#onPause()
*/ */
@Override
protected void onPause() { protected void onPause() {
super.onPause(); super.onPause();
@ -219,7 +216,6 @@ public class Orbot extends Activity implements OnClickListener, TorConstants, On
super.onSaveInstanceState(savedInstanceState); super.onSaveInstanceState(savedInstanceState);
} }
@Override
public void onRestoreInstanceState(Bundle savedInstanceState) { public void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState); super.onRestoreInstanceState(savedInstanceState);
// Restore UI state from the savedInstanceState. // Restore UI state from the savedInstanceState.
@ -232,7 +228,6 @@ public class Orbot extends Activity implements OnClickListener, TorConstants, On
/* (non-Javadoc) /* (non-Javadoc)
* @see android.app.Activity#onResume() * @see android.app.Activity#onResume()
*/ */
@Override
protected void onResume() { protected void onResume() {
super.onResume(); super.onResume();
@ -253,7 +248,6 @@ public class Orbot extends Activity implements OnClickListener, TorConstants, On
/* (non-Javadoc) /* (non-Javadoc)
* @see android.app.Activity#onStart() * @see android.app.Activity#onStart()
*/ */
@Override
protected void onStart() { protected void onStart() {
super.onStart(); super.onStart();
@ -271,7 +265,6 @@ public class Orbot extends Activity implements OnClickListener, TorConstants, On
/* (non-Javadoc) /* (non-Javadoc)
* @see android.app.Activity#onStop() * @see android.app.Activity#onStop()
*/ */
@Override
protected void onStop() { protected void onStop() {
super.onStop(); super.onStop();
@ -334,7 +327,6 @@ public class Orbot extends Activity implements OnClickListener, TorConstants, On
final TorifiedApp[] apps = TorServiceUtils.getApps(this); final TorifiedApp[] apps = TorServiceUtils.getApps(this);
Arrays.sort(apps, new Comparator<TorifiedApp>() { Arrays.sort(apps, new Comparator<TorifiedApp>() {
@Override
public int compare(TorifiedApp o1, TorifiedApp o2) { public int compare(TorifiedApp o1, TorifiedApp o2) {
if (o1.isTorified() == o2.isTorified()) return o1.getName().compareTo(o2.getName()); if (o1.isTorified() == o2.isTorified()) return o1.getName().compareTo(o2.getName());
if (o1.isTorified()) return -1; if (o1.isTorified()) return -1;
@ -345,7 +337,6 @@ public class Orbot extends Activity implements OnClickListener, TorConstants, On
final LayoutInflater inflater = getLayoutInflater(); final LayoutInflater inflater = getLayoutInflater();
final ListAdapter adapter = new ArrayAdapter<TorifiedApp>(this,R.layout.layout_apps_item,R.id.itemtext,apps) { final ListAdapter adapter = new ArrayAdapter<TorifiedApp>(this,R.layout.layout_apps_item,R.id.itemtext,apps) {
@Override
public View getView(int position, View convertView, ViewGroup parent) { public View getView(int position, View convertView, ViewGroup parent) {
ListEntry entry; ListEntry entry;
if (convertView == null) { if (convertView == null) {
@ -375,7 +366,6 @@ public class Orbot extends Activity implements OnClickListener, TorConstants, On
/** /**
* Called an application is check/unchecked * Called an application is check/unchecked
*/ */
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
final TorifiedApp app = (TorifiedApp) buttonView.getTag(); final TorifiedApp app = (TorifiedApp) buttonView.getTag();
if (app != null) { if (app != null) {
@ -858,7 +848,7 @@ public class Orbot extends Activity implements OnClickListener, TorConstants, On
private static final int DISABLE_TOR_MSG = 3; private static final int DISABLE_TOR_MSG = 3;
private Handler mHandler = new Handler() { private Handler mHandler = new Handler() {
@Override public void handleMessage(Message msg) { public void handleMessage(Message msg) {
switch (msg.what) { switch (msg.what) {
case BUMP_MSG: case BUMP_MSG:

View File

@ -73,7 +73,6 @@ public class SocksSocketFactory implements SocketFactory {
} }
@Override
public Socket connectSocket(Socket sock, String host, int port, public Socket connectSocket(Socket sock, String host, int port,
InetAddress localAddress, int localPort, HttpParams params) throws IOException, InetAddress localAddress, int localPort, HttpParams params) throws IOException,
UnknownHostException, ConnectTimeoutException { UnknownHostException, ConnectTimeoutException {
@ -126,12 +125,10 @@ public class SocksSocketFactory implements SocketFactory {
@Override
public Socket createSocket() throws IOException { public Socket createSocket() throws IOException {
return new Socket(); return new Socket();
} }
@Override
public boolean isSecure(Socket sock) throws IllegalArgumentException { public boolean isSecure(Socket sock) throws IllegalArgumentException {
return false; return false;
} }

View File

@ -44,7 +44,6 @@ public class TorService extends Service implements TorServiceConstants, Runnable
/** Called when the activity is first created. */ /** Called when the activity is first created. */
@Override
public void onCreate() { public void onCreate() {
super.onCreate(); super.onCreate();
@ -100,7 +99,6 @@ public class TorService extends Service implements TorServiceConstants, Runnable
/* (non-Javadoc) /* (non-Javadoc)
* @see android.app.Service#onLowMemory() * @see android.app.Service#onLowMemory()
*/ */
@Override
public void onLowMemory() { public void onLowMemory() {
super.onLowMemory(); super.onLowMemory();
@ -112,7 +110,6 @@ public class TorService extends Service implements TorServiceConstants, Runnable
/* (non-Javadoc) /* (non-Javadoc)
* @see android.app.Service#onUnbind(android.content.Intent) * @see android.app.Service#onUnbind(android.content.Intent)
*/ */
@Override
public boolean onUnbind(Intent intent) { public boolean onUnbind(Intent intent) {
Log.i(TAG, "onUnbind Called: " + intent.getAction()); Log.i(TAG, "onUnbind Called: " + intent.getAction());
@ -159,7 +156,6 @@ public class TorService extends Service implements TorServiceConstants, Runnable
/* (non-Javadoc) /* (non-Javadoc)
* @see android.app.Service#onRebind(android.content.Intent) * @see android.app.Service#onRebind(android.content.Intent)
*/ */
@Override
public void onRebind(Intent intent) { public void onRebind(Intent intent) {
super.onRebind(intent); super.onRebind(intent);
@ -170,7 +166,6 @@ public class TorService extends Service implements TorServiceConstants, Runnable
/* (non-Javadoc) /* (non-Javadoc)
* @see android.app.Service#onStart(android.content.Intent, int) * @see android.app.Service#onStart(android.content.Intent, int)
*/ */
@Override
public void onStart(Intent intent, int startId) { public void onStart(Intent intent, int startId) {
super.onStart(intent, startId); super.onStart(intent, startId);
@ -671,7 +666,6 @@ public class TorService extends Service implements TorServiceConstants, Runnable
@Override
public void message(String severity, String msg) { public void message(String severity, String msg) {
Log.i(TAG, "[Tor Control Port] " + severity + ": " + msg); Log.i(TAG, "[Tor Control Port] " + severity + ": " + msg);
@ -693,13 +687,11 @@ public class TorService extends Service implements TorServiceConstants, Runnable
} }
@Override
public void newDescriptors(List<String> orList) { public void newDescriptors(List<String> orList) {
} }
@Override
public void orConnStatus(String status, String orName) { public void orConnStatus(String status, String orName) {
Log.i(TAG,"OrConnStatus=" + status + ": " + orName); Log.i(TAG,"OrConnStatus=" + status + ": " + orName);
@ -708,30 +700,25 @@ public class TorService extends Service implements TorServiceConstants, Runnable
} }
@Override
public void streamStatus(String status, String streamID, String target) { public void streamStatus(String status, String streamID, String target) {
Log.i(TAG,"StreamStatus=" + status + ": " + streamID); Log.i(TAG,"StreamStatus=" + status + ": " + streamID);
} }
@Override
public void unrecognized(String type, String msg) { public void unrecognized(String type, String msg) {
Log.i(TAG,"unrecognized log=" + type + ": " + msg); Log.i(TAG,"unrecognized log=" + type + ": " + msg);
} }
@Override
public void bandwidthUsed(long read, long written) { public void bandwidthUsed(long read, long written) {
} }
@Override
public void circuitStatus(String status, String circID, String path) { public void circuitStatus(String status, String circID, String path) {
} }
@Override
public IBinder onBind(Intent intent) { public IBinder onBind(Intent intent) {
// Select the interface to return. If your service only implements // Select the interface to return. If your service only implements
// a single interface, you can just return it here without checking // a single interface, you can just return it here without checking