Skip to content

Commit 8fd1676

Browse files
committed
TEZ-4672: Spotless: cleanup and force removing trailing whitespaces
1 parent 1fc0035 commit 8fd1676

File tree

430 files changed

+3250
-3249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

430 files changed

+3250
-3249
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,7 @@
10281028
<order>java,javax,org.apache,com,net,io</order>
10291029
</importOrder>
10301030
<removeUnusedImports/>
1031+
<trimTrailingWhitespace/>
10311032
</java>
10321033
</configuration>
10331034
</plugin>

tez-api/src/main/java/org/apache/tez/client/AMConfiguration.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ class AMConfiguration {
5050
void addAMLocalResources(Map<String, LocalResource> localResources) {
5151
this.amLocalResources.putAll(localResources);
5252
}
53-
53+
5454
void clearAMLocalResources() {
5555
this.amLocalResources.clear();
5656
}
57-
57+
5858
void setCredentials(Credentials credentials) {
5959
this.credentials = credentials;
6060
}
61-
61+
6262
void setTezConfiguration(TezConfiguration tezConf) {
6363
this.tezConf = tezConf;
6464
}
@@ -78,11 +78,11 @@ TezConfiguration getTezConfiguration() {
7878
Credentials getCredentials() {
7979
return credentials;
8080
}
81-
81+
8282
void setBinaryConfLR(LocalResource binaryConfLRsrc) {
8383
this.binaryConfLRsrc = binaryConfLRsrc;
8484
}
85-
85+
8686
LocalResource getBinaryConfLR() {
8787
return binaryConfLRsrc;
8888
}

tez-api/src/main/java/org/apache/tez/common/ContainerSignatureMatcher.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ public interface ContainerSignatureMatcher {
3333
* signature.
3434
*/
3535
public boolean isSuperSet(Object cs1, Object cs2);
36-
36+
3737
/**
3838
* Checks if the container signatures match exactly
3939
* @return true if exact match
4040
*/
4141
public boolean isExactMatch(Object cs1, Object cs2);
42-
42+
4343
/**
4444
* Gets additional resources specified in lr2, which are not present for lr1
45-
*
45+
*
4646
* @param lr1
4747
* @param lr2
4848
* @return additional resources specified in lr2, which are not present for lr1

tez-api/src/main/java/org/apache/tez/common/TezYARNUtils.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* licenses this file to you under the Apache License, Version 2.0 (the
66
* "License"); you may not use this file except in compliance with the License.
77
* You may obtain a copy of the License at
8-
*
8+
*
99
* http://www.apache.org/licenses/LICENSE-2.0
10-
*
10+
*
1111
* Unless required by applicable law or agreed to in writing, software
1212
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
1313
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -162,7 +162,7 @@ public static void appendToEnvFromInputString(Map<String, String> env,
162162
}
163163
}
164164
}
165-
165+
166166
public static void setEnvIfAbsentFromInputString(Map<String, String> env,
167167
String envString) {
168168
if (envString != null && envString.length() > 0) {
@@ -189,7 +189,7 @@ public static void setEnvIfAbsentFromInputString(Map<String, String> env,
189189
}
190190
}
191191
}
192-
192+
193193
public static void addToEnvironment(
194194
Map<String, String> environment,
195195
String variable, String value, String classPathSeparator) {
@@ -199,7 +199,7 @@ public static void addToEnvironment(
199199
} else {
200200
val = val + classPathSeparator + value;
201201
}
202-
environment.put(StringInterner.weakIntern(variable),
202+
environment.put(StringInterner.weakIntern(variable),
203203
StringInterner.weakIntern(val));
204204
}
205205

tez-api/src/main/java/org/apache/tez/common/counters/AggregateFrameworkCounter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
@SuppressWarnings("rawtypes")
2424
public class AggregateFrameworkCounter<T extends Enum<T>> extends FrameworkCounter implements AggregateTezCounter {
25-
25+
2626
private long min = Long.MAX_VALUE;
2727
private long max = Long.MIN_VALUE;
2828
private long count = 0;
@@ -36,7 +36,7 @@ public AggregateFrameworkCounter(Enum<T> ref, String groupName) {
3636
public void increment(long incr) {
3737
throw new IllegalArgumentException("Cannot increment an aggregate counter directly");
3838
}
39-
39+
4040
@Override
4141
public void aggregate(TezCounter other) {
4242
final long val = other.getValue();
@@ -71,7 +71,7 @@ public long getMin() {
7171
public long getMax() {
7272
return max;
7373
}
74-
74+
7575
@SuppressWarnings("unchecked")
7676
public FrameworkCounter<T> asFrameworkCounter() {
7777
return ((FrameworkCounter<T>)this);

tez-api/src/main/java/org/apache/tez/common/counters/AggregateTezCounter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public interface AggregateTezCounter {
2525
public abstract long getMin();
2626

2727
public abstract long getMax();
28-
28+
2929
public abstract long getCount();
3030

3131
}

tez-api/src/main/java/org/apache/tez/common/counters/AggregateTezCounterDelegate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class AggregateTezCounterDelegate<T extends TezCounter> extends AbstractC
3232
public AggregateTezCounterDelegate(T child) {
3333
this.child = child;
3434
}
35-
35+
3636
@Override
3737
public String getName() {
3838
return child.getName(); // this is a pass-through
@@ -57,7 +57,7 @@ public void setValue(long value) {
5757
public void increment(long incr) {
5858
throw new UnsupportedOperationException("Cannot increment an aggregate counter");
5959
}
60-
60+
6161
/* (non-Javadoc)
6262
* @see org.apache.tez.common.counters.AggregateTezCounter#aggregate(org.apache.tez.common.counters.TezCounter)
6363
*/

tez-api/src/main/java/org/apache/tez/common/counters/AggregateTezCounters.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
package org.apache.tez.common.counters;
2020

2121
public class AggregateTezCounters extends TezCounters {
22-
22+
2323
private static final GroupFactory groupFactory = new GroupFactory();
24-
24+
2525
public AggregateTezCounters() {
2626
super(groupFactory);
2727
}
28-
28+
2929
// Mix framework group implementation into CounterGroup interface
3030
private static class AggregateFrameworkGroupImpl<T extends Enum<T>>
3131
extends FrameworkCounterGroup<T, TezCounter> implements CounterGroup {

tez-api/src/main/java/org/apache/tez/common/counters/DAGCounter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
@InterfaceAudience.Public
2727
@InterfaceStability.Evolving
2828
public enum DAGCounter {
29-
NUM_FAILED_TASKS,
29+
NUM_FAILED_TASKS,
3030
NUM_KILLED_TASKS,
3131
NUM_SUCCEEDED_TASKS,
3232
TOTAL_LAUNCHED_TASKS,

tez-api/src/main/java/org/apache/tez/common/counters/JobCounter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
// Per-job counters
2424
@Private
2525
public enum JobCounter {
26-
NUM_FAILED_MAPS,
26+
NUM_FAILED_MAPS,
2727
NUM_FAILED_REDUCES,
2828
NUM_KILLED_MAPS,
2929
NUM_KILLED_REDUCES,

0 commit comments

Comments
 (0)