зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1258789 - Add if & return for WhitespaceAround. r=grisha
MozReview-Commit-ID: HcWrFHy2CeP --HG-- extra : rebase_source : c687476ab0ee6fb1054e507cb50495e55e856725
This commit is contained in:
Родитель
df95be9bdf
Коммит
ee32f11bed
|
@ -55,7 +55,7 @@
|
|||
</module>
|
||||
<module name="WhitespaceAround">
|
||||
<property name="tokens" value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN,
|
||||
LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR"/>
|
||||
LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN"/>
|
||||
</module>
|
||||
</module>
|
||||
|
||||
|
|
|
@ -946,7 +946,7 @@ public class ContactService implements GeckoEventListener {
|
|||
}
|
||||
|
||||
String returnStatus = "KO";
|
||||
if(deleteContact(rawContactId)) {
|
||||
if (deleteContact(rawContactId)) {
|
||||
returnStatus = "OK";
|
||||
}
|
||||
|
||||
|
|
|
@ -223,7 +223,7 @@ public class DownloadsIntegration implements NativeEventListener
|
|||
|
||||
@Override
|
||||
public void onScanCompleted(String path, Uri uri) {
|
||||
if(path.equals(mFile)) {
|
||||
if (path.equals(mFile)) {
|
||||
mScanner.disconnect();
|
||||
mScanner = null;
|
||||
}
|
||||
|
|
|
@ -208,7 +208,7 @@ public final class NotificationHelper implements GeckoEventListener {
|
|||
try {
|
||||
// Action name must be in query uri, otherwise buttons pending intents
|
||||
// would be collapsed.
|
||||
if(action.has(ACTION_ID_ATTR)) {
|
||||
if (action.has(ACTION_ID_ATTR)) {
|
||||
builder.appendQueryParameter(ACTION_ID_ATTR, action.getString(ACTION_ID_ATTR));
|
||||
} else {
|
||||
Log.i(LOGTAG, "button event with no name");
|
||||
|
|
|
@ -185,7 +185,7 @@ class SearchEngineRow extends AnimatedHeightLayout {
|
|||
while(indexOfMatch != -1) {
|
||||
indexOfMatch = string.indexOf(pattern, lastIndexOfMatch);
|
||||
lastIndexOfMatch = indexOfMatch + patternLength;
|
||||
if(indexOfMatch != -1) {
|
||||
if (indexOfMatch != -1) {
|
||||
mOccurrences.add(indexOfMatch);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -177,7 +177,7 @@ public class TabQueueHelper {
|
|||
} catch (JSONException e) {
|
||||
url = "";
|
||||
}
|
||||
if(!TextUtils.isEmpty(url) && !urlToRemove.equals(url)) {
|
||||
if (!TextUtils.isEmpty(url) && !urlToRemove.equals(url)) {
|
||||
newArray.put(url);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -182,7 +182,7 @@ public class DateTimePicker extends FrameLayout {
|
|||
if (mDayEnabled) {
|
||||
mDaySpinner.setMaxValue(mCurrentDate.getActualMaximum(Calendar.DAY_OF_MONTH));
|
||||
}
|
||||
if(mWeekEnabled) {
|
||||
if (mWeekEnabled) {
|
||||
mWeekSpinner.setMaxValue(mCurrentDate.getActualMaximum(Calendar.WEEK_OF_YEAR));
|
||||
}
|
||||
updateCalendar();
|
||||
|
|
Загрузка…
Ссылка в новой задаче