[or-cvs] r22440: {projects} Remove all @Override annotations Some build errors related t (in projects/android/trunk/Orbot/src/org/torproject/android: . net service)

Sebastian Hahn tor-svn-commits at sebastianhahn.net
Sat May 29 07:11:30 UTC 2010


Author: sebastian
Date: 2010-05-29 07:11:29 +0000 (Sat, 29 May 2010)
New Revision: 22440

Modified:
   projects/android/trunk/Orbot/src/org/torproject/android/Orbot.java
   projects/android/trunk/Orbot/src/org/torproject/android/net/SocksSocketFactory.java
   projects/android/trunk/Orbot/src/org/torproject/android/service/TorService.java
Log:
Remove all @Override annotations

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

Modified: projects/android/trunk/Orbot/src/org/torproject/android/Orbot.java
===================================================================
--- projects/android/trunk/Orbot/src/org/torproject/android/Orbot.java	2010-05-28 21:32:33 UTC (rev 22439)
+++ projects/android/trunk/Orbot/src/org/torproject/android/Orbot.java	2010-05-29 07:11:29 UTC (rev 22440)
@@ -69,7 +69,6 @@
     ITorService mService = null;
 	
     /** Called when the activity is first created. */
-    @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
 
@@ -120,7 +119,6 @@
      * (non-Javadoc)
 	 * @see android.app.Activity#onMenuItemSelected(int, android.view.MenuItem)
 	 */
-	@Override
 	public boolean onMenuItemSelected(int featureId, MenuItem item) {
 		
 		super.onMenuItemSelected(featureId, item);
@@ -203,7 +201,6 @@
     /* (non-Javadoc)
 	 * @see android.app.Activity#onPause()
 	 */
-	@Override
 	protected void onPause() {
 		super.onPause();
 		
@@ -219,7 +216,6 @@
 		  super.onSaveInstanceState(savedInstanceState);
 		}
 	
-	@Override
 	public void onRestoreInstanceState(Bundle savedInstanceState) {
 	  super.onRestoreInstanceState(savedInstanceState);
 	  // Restore UI state from the savedInstanceState.
@@ -232,7 +228,6 @@
 	/* (non-Javadoc)
 	 * @see android.app.Activity#onResume()
 	 */
-	@Override
 	protected void onResume() {
 		super.onResume();
 		
@@ -253,7 +248,6 @@
 	/* (non-Javadoc)
 	 * @see android.app.Activity#onStart()
 	 */
-	@Override
 	protected void onStart() {
 		super.onStart();
 		
@@ -271,7 +265,6 @@
 	/* (non-Javadoc)
 	 * @see android.app.Activity#onStop()
 	 */
-	@Override
 	protected void onStop() {
 		super.onStop();
 		
@@ -334,7 +327,6 @@
         final TorifiedApp[] apps = TorServiceUtils.getApps(this);
         
         Arrays.sort(apps, new Comparator<TorifiedApp>() {
-			@Override
 			public int compare(TorifiedApp o1, TorifiedApp o2) {
 				if (o1.isTorified() == o2.isTorified()) return o1.getName().compareTo(o2.getName());
 				if (o1.isTorified()) return -1;
@@ -345,7 +337,6 @@
         final LayoutInflater inflater = getLayoutInflater();
 		
         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) {
        			ListEntry entry;
         		if (convertView == null) {
@@ -375,7 +366,6 @@
 	/**
 	 * Called an application is check/unchecked
 	 */
-	@Override
 	public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
 		final TorifiedApp app = (TorifiedApp) buttonView.getTag();
 		if (app != null) {
@@ -858,7 +848,7 @@
     private static final int DISABLE_TOR_MSG = 3;
     	
     private Handler mHandler = new Handler() {
-        @Override public void handleMessage(Message msg) {
+        public void handleMessage(Message msg) {
             switch (msg.what) {
                 case BUMP_MSG:
 

Modified: projects/android/trunk/Orbot/src/org/torproject/android/net/SocksSocketFactory.java
===================================================================
--- projects/android/trunk/Orbot/src/org/torproject/android/net/SocksSocketFactory.java	2010-05-28 21:32:33 UTC (rev 22439)
+++ projects/android/trunk/Orbot/src/org/torproject/android/net/SocksSocketFactory.java	2010-05-29 07:11:29 UTC (rev 22440)
@@ -73,7 +73,6 @@
 
 	}
 	
-	@Override
 	public Socket connectSocket(Socket sock, String host, int port,
 			InetAddress localAddress, int localPort, HttpParams params) throws IOException,
 			UnknownHostException, ConnectTimeoutException {
@@ -126,12 +125,10 @@
 	
     
     
-	@Override
 	public Socket createSocket() throws IOException {
 		return new Socket();
 	}
 
-	@Override
 	public boolean isSecure(Socket sock) throws IllegalArgumentException {
 		return false;
 	}

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



More information about the tor-commits mailing list