style fix: no spaces before post-increment
This commit is contained in:
		
							parent
							
								
									9c6a652a02
								
							
						
					
					
						commit
						33fd77e3b8
					
				| @ -276,7 +276,7 @@ public class RepoXMLHandler extends DefaultHandler { | ||||
|                         RepoUpdater.PROGRESS_TYPE_PROCESS_XML, | ||||
|                         progressCounter, totalAppCount, data)); | ||||
|             } | ||||
|             progressCounter ++; | ||||
|             progressCounter++; | ||||
|         } else if (localName.equals("package") && curapp != null && curapk == null) { | ||||
|             curapk = new Apk(); | ||||
|             curapk.id = curapp.id; | ||||
|  | ||||
| @ -525,7 +525,7 @@ public class UpdateService extends IntentService implements ProgressListener { | ||||
|         NotificationCompat.InboxStyle inboxStyle = new NotificationCompat.InboxStyle(); | ||||
|         inboxStyle.setBigContentTitle(contentText); | ||||
|         hasUpdates.moveToFirst(); | ||||
|         for (int i = 0; i < Math.min(hasUpdates.getCount(), MAX_UPDATES_TO_SHOW); i ++) { | ||||
|         for (int i = 0; i < Math.min(hasUpdates.getCount(), MAX_UPDATES_TO_SHOW); i++) { | ||||
|             App app = new App(hasUpdates); | ||||
|             hasUpdates.moveToNext(); | ||||
|             inboxStyle.addLine(app.name + " (" + app.installedVersionName + " → " + app.getSuggestedVersion() + ")"); | ||||
|  | ||||
| @ -44,7 +44,7 @@ public class TabManager { | ||||
| 
 | ||||
|     public void createTabs() { | ||||
|         actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); | ||||
|         for (int i = 0; i < pager.getAdapter().getCount(); i ++) { | ||||
|         for (int i = 0; i < pager.getAdapter().getCount(); i++) { | ||||
|             CharSequence label = pager.getAdapter().getPageTitle(i); | ||||
|             actionBar.addTab( | ||||
|                 actionBar.newTab() | ||||
|  | ||||
| @ -240,7 +240,7 @@ public class ApkProvider extends FDroidProvider { | ||||
| 
 | ||||
|     public static Uri getContentUri(List<Apk> apks) { | ||||
|         StringBuilder builder = new StringBuilder(); | ||||
|         for (int i = 0; i < apks.size(); i ++) { | ||||
|         for (int i = 0; i < apks.size(); i++) { | ||||
|             if (i != 0) { | ||||
|                 builder.append(','); | ||||
|             } | ||||
| @ -334,7 +334,7 @@ public class ApkProvider extends FDroidProvider { | ||||
|                 "Cannot query more than " + MAX_APKS_TO_QUERY + ". " + | ||||
|                 "You tried to query " + apkDetails.length); | ||||
|         } | ||||
|         for (int i = 0; i < apkDetails.length; i ++) { | ||||
|         for (int i = 0; i < apkDetails.length; i++) { | ||||
|             String[] parts = apkDetails[i].split(":"); | ||||
|             String id = parts[0]; | ||||
|             String verCode = parts[1]; | ||||
|  | ||||
| @ -481,7 +481,7 @@ public class AppProvider extends FDroidProvider { | ||||
| 
 | ||||
|     public static Uri getContentUri(List<App> apps) { | ||||
|         StringBuilder builder = new StringBuilder(); | ||||
|         for (int i = 0; i < apps.size(); i ++) { | ||||
|         for (int i = 0; i < apps.size(); i++) { | ||||
|             if (i != 0) { | ||||
|                 builder.append(','); | ||||
|             } | ||||
|  | ||||
| @ -105,7 +105,7 @@ public abstract class FDroidProvider extends ContentProvider { | ||||
| 
 | ||||
|     protected String generateQuestionMarksForInClause(int num) { | ||||
|         StringBuilder sb = new StringBuilder(num * 2); | ||||
|         for (int i = 0; i < num; i ++) { | ||||
|         for (int i = 0; i < num; i++) { | ||||
|             if (i != 0) { | ||||
|                 sb.append(','); | ||||
|             } | ||||
|  | ||||
| @ -95,7 +95,7 @@ abstract class QueryBuilder { | ||||
| 
 | ||||
|     private String fieldsSql() { | ||||
|         StringBuilder sb = new StringBuilder(); | ||||
|         for (int i = 0; i < fields.size(); i ++) { | ||||
|         for (int i = 0; i < fields.size(); i++) { | ||||
|             if (i > 0) { | ||||
|                 sb.append(','); | ||||
|             } | ||||
|  | ||||
| @ -69,7 +69,7 @@ public class ApkDownloader implements AsyncDownloadWrapper.Listener { | ||||
|     private int totalSize = 0; | ||||
|     private boolean isComplete = false; | ||||
| 
 | ||||
|     private final long id = ++downloadIdCounter; | ||||
|     private final long id =++downloadIdCounter; | ||||
| 
 | ||||
|     public void setProgressListener(ProgressListener listener) { | ||||
|         this.listener = listener; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Daniel Martí
						Daniel Martí