Skip to content

Commit

Permalink
squash: Checkstyle checks for whitespace after.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Jul 16, 2021
1 parent 66f8290 commit 3a093ce
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 20 deletions.
4 changes: 4 additions & 0 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<property name="option" value="alone_or_singleline"/>
</module>

<module name="WhitespaceAfter">
<!-- Drops TYPECAST from default tokens -->
<property name="tokens" value="COMMA , SEMI , LITERAL_IF , LITERAL_ELSE , LITERAL_WHILE , LITERAL_DO , LITERAL_FOR , DO_WHILE"/>
</module>
</module>

<module name="FileTabCharacter">
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/org/jitsi/meet/test/ConnectionTimeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -355,21 +355,21 @@ public Double[][] collectData()
Double[][] data
= new Double[TimeMeasurements.length][NUMBER_OF_CONFERENCES];

for(int i = 0; i < NUMBER_OF_CONFERENCES; i++)
for (int i = 0; i < NUMBER_OF_CONFERENCES; i++)
{
refreshParticipant2();

waitForMeasurements();

for(TimeMeasurements s : TimeMeasurements.values())
for (TimeMeasurements s : TimeMeasurements.values())
{
data[s.ordinal()][i]
= s.execute(getParticipant2().getDriver());
print(s + ": " + data[s.ordinal()][i] );
}
}

for(TimeMeasurements s : TimeMeasurements.values())
for (TimeMeasurements s : TimeMeasurements.values())
{
print(s + ": " + Arrays.toString(data[s.ordinal()]) );
}
Expand Down Expand Up @@ -452,7 +452,7 @@ private static Double getMedian(Double[] data) {
private static Double[] subtractArrays(Double[] a, Double[] b)
{
Double[] res = b.clone();
for(int i = 0; i < res.length; i++)
for (int i = 0; i < res.length; i++)
{
if (res[i] == null && a[i] == null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/jitsi/meet/test/JVBConferencesCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void testJvbConferences()
if (jsonElem.isJsonArray())
{
JsonArray jsonArray = jsonElem.getAsJsonArray();
for(int i = 0; i < jsonArray.size(); i++)
for (int i = 0; i < jsonArray.size(); i++)
{
conferencesList.add(
((JsonObject)jsonArray.get(i)).get("id").getAsString());
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/jitsi/meet/test/LipSyncTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ void process()
private <T> int findSignalIdx(T[] series,
Comparator<T> condition, int startIdx)
{
for (int i = startIdx + 1; i + 1 < series.length;i++)
for (int i = startIdx + 1; i + 1 < series.length; i++)
{
if (condition.compare(series[i-1], series[i]) > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/jitsi/meet/test/MaxUsersTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void enterWithMaxParticipantsAndCheckDialog()
Participant[] participants = new Participant[MAX_USERS - 2];
try
{
for(int i = 0; i < participants.length; i++)
for (int i = 0; i < participants.length; i++)
{
participants[i] =
this.participants
Expand Down
3 changes: 1 addition & 2 deletions src/test/java/org/jitsi/meet/test/base/FailureListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ public void onFinish(ITestContext iTestContext)
{
// move all failed configurations to the failed tests set
// in order to easily spot them in the html report
for(ITestResult r
: iTestContext.getFailedConfigurations().getAllResults())
for (ITestResult r : iTestContext.getFailedConfigurations().getAllResults())
{
iTestContext.getFailedTests().addResult(r, r.getMethod());
}
Expand Down
3 changes: 1 addition & 2 deletions src/test/java/org/jitsi/meet/test/base/Participant.java
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,7 @@ public void saveHtmlSource(File outputDir, String fileName)
= FileUtils.openOutputStream(
new File(outputDir, fileName)))
{
fOut.write(
driver.getPageSource().replace(">",">\n").getBytes());
fOut.write(driver.getPageSource().replace(">", ">\n").getBytes());
}
catch(Exception e)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private void initFields()
*/
private void initTestHintFields()
{
for(Class classIn = getClass();
for (Class classIn = getClass();
classIn != Object.class;
classIn = classIn.getSuperclass())
{
Expand All @@ -74,7 +74,7 @@ private void initTestHintFields()

private void initTestHintFields(Class classIn)
{
for(Field field : classIn.getDeclaredFields())
for (Field field : classIn.getDeclaredFields())
{
TestHintLocator[] locators
= field.getAnnotationsByType(TestHintLocator.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private void clickButton(String buttonId)
// machine, so we will retry several times before giving up
// the element should disappear once it was successfully clicked
int retries = 5;
while(participantElement != null && retries > 0)
while (participantElement != null && retries > 0)
{
new Actions(participant.getDriver())
.click(participantElement.findElement(ByTestId.testId(buttonId)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void enterDisplayName(String displayName)
WebElement displayNameInput = getDisplayNameInput();

// element.clear does not always work, make sure we delete the content
while(!displayNameInput.getAttribute("value").equals(""))
while (!displayNameInput.getAttribute("value").equals(""))
{
displayNameInput.sendKeys(Keys.BACK_SPACE);
}
Expand Down
7 changes: 4 additions & 3 deletions src/test/java/org/jitsi/meet/test/util/MeetUIUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,13 @@ public static void assertLargeVideoNotGrey(WebDriver driver)
driver,
5,
(ExpectedCondition<Boolean>)
webDriver -> {
webDriver ->
{
WebElement el
= webDriver.findElement(By.xpath(largeVideoXPath));

return !el.getAttribute("class")
.contains("remoteVideoProblemFilter");});
return !el.getAttribute("class").contains("remoteVideoProblemFilter");
});

// Check if the message is displayed
TestUtils.waitForDisplayedOrNotByXPath(
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/jitsi/meet/test/util/MeetUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public static long getDownloadBitrate(WebDriver driver)
Map stats = (Map)((JavascriptExecutor) driver)
.executeScript("return APP.conference.getStats();");

Map<String,Long> bitrate = (Map<String,Long>)stats.get("bitrate");
Map<String, Long> bitrate = (Map<String, Long>)stats.get("bitrate");

if (bitrate != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private WebDriver startWebDriver(
FirefoxProfile profile = new FirefoxProfile();
// Force firefox to use English instead of system language.
// Not test because of having not firefox installed.
profile.setPreference("intl.accept_languages","en");
profile.setPreference("intl.accept_languages", "en");
profile.setPreference("media.navigator.permission.disabled", true);
// Enables tcp in firefox, disabled by default in 44
profile.setPreference("media.peerconnection.ice.tcp", true);
Expand Down

0 comments on commit 3a093ce

Please sign in to comment.