Skip to content

Commit 8436faa

Browse files
committed
Fixing build
1 parent a8dfec2 commit 8436faa

File tree

10 files changed

+47
-46
lines changed

10 files changed

+47
-46
lines changed

maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/AbstractClasspathForkConfiguration.java

+12-12
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ abstract class AbstractClasspathForkConfiguration
3737
{
3838

3939
@SuppressWarnings( "checkstyle:parameternumber" )
40-
public AbstractClasspathForkConfiguration( @Nonnull Classpath bootClasspath,
41-
@Nonnull File tempDirectory,
42-
@Nullable String debugLine,
43-
@Nonnull File workingDirectory,
44-
@Nonnull Properties modelProperties,
45-
@Nullable String argLine,
46-
@Nonnull Map<String, String> environmentVariables,
47-
boolean debug,
48-
int forkCount,
49-
boolean reuseForks,
50-
@Nonnull Platform pluginPlatform,
51-
@Nonnull ConsoleLogger log )
40+
AbstractClasspathForkConfiguration( @Nonnull Classpath bootClasspath,
41+
@Nonnull File tempDirectory,
42+
@Nullable String debugLine,
43+
@Nonnull File workingDirectory,
44+
@Nonnull Properties modelProperties,
45+
@Nullable String argLine,
46+
@Nonnull Map<String, String> environmentVariables,
47+
boolean debug,
48+
int forkCount,
49+
boolean reuseForks,
50+
@Nonnull Platform pluginPlatform,
51+
@Nonnull ConsoleLogger log )
5252
{
5353
super( bootClasspath, tempDirectory, debugLine, workingDirectory, modelProperties, argLine,
5454
environmentVariables, debug, forkCount, reuseForks, pluginPlatform, log );

maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private final class CloseableCloser
162162

163163
private final Thread inputStreamCloserHook;
164164

165-
public CloseableCloser( int jvmRun, Closeable... testProvidingInputStream )
165+
CloseableCloser( int jvmRun, Closeable... testProvidingInputStream )
166166
{
167167
this.jvmRun = jvmRun;
168168
this.testProvidingInputStream = new ConcurrentLinkedQueue<Closeable>();

maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ private static final class EncodingOutputStream
502502

503503
private int c2;
504504

505-
public EncodingOutputStream( OutputStream out )
505+
EncodingOutputStream( OutputStream out )
506506
{
507507
super( out );
508508
}

maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/Utf8RecodingDeferredFileOutputStream.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Utf8RecodingDeferredFileOutputStream
4242
private boolean closed = false;
4343

4444
@SuppressWarnings( "checkstyle:magicnumber" )
45-
public Utf8RecodingDeferredFileOutputStream( String channel )
45+
Utf8RecodingDeferredFileOutputStream( String channel )
4646
{
4747
this.deferredFileOutputStream = new DeferredFileOutputStream( 1000000, channel, "deferred", null );
4848
}

maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/FailsafeReportMojo.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
* under the License.
2020
*/
2121

22-
import java.io.File;
23-
import java.util.Locale;
24-
import java.util.ResourceBundle;
2522
import org.apache.maven.plugins.annotations.Mojo;
2623
import org.apache.maven.plugins.annotations.Parameter;
2724
import org.apache.maven.project.MavenProject;
2825

26+
import java.io.File;
27+
import java.util.Locale;
28+
import java.util.ResourceBundle;
29+
2930
import static org.apache.maven.shared.utils.StringUtils.isEmpty;
3031

3132
/**
@@ -95,7 +96,8 @@ public String getOutputName()
9596
protected LocalizedProperties getBundle( Locale locale, ClassLoader resourceBundleClassLoader )
9697
{
9798
ResourceBundle bundle = ResourceBundle.getBundle( "surefire-report", locale, resourceBundleClassLoader );
98-
return new LocalizedProperties( bundle ) {
99+
return new LocalizedProperties( bundle )
100+
{
99101
@Override
100102
public String getReportName()
101103
{

maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportMojo.java

+6-5
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
* under the License.
2020
*/
2121

22-
import java.io.File;
23-
import java.util.Locale;
24-
import java.util.ResourceBundle;
25-
2622
import org.apache.maven.plugins.annotations.Execute;
2723
import org.apache.maven.plugins.annotations.LifecyclePhase;
2824
import org.apache.maven.plugins.annotations.Mojo;
2925
import org.apache.maven.plugins.annotations.Parameter;
3026
import org.apache.maven.project.MavenProject;
3127

28+
import java.io.File;
29+
import java.util.Locale;
30+
import java.util.ResourceBundle;
31+
3232
import static org.apache.maven.shared.utils.StringUtils.isEmpty;
3333

3434
/**
@@ -95,7 +95,8 @@ public String getOutputName()
9595
protected LocalizedProperties getBundle( Locale locale, ClassLoader resourceBundleClassLoader )
9696
{
9797
ResourceBundle bundle = ResourceBundle.getBundle( "surefire-report", locale, resourceBundleClassLoader );
98-
return new LocalizedProperties( bundle ) {
98+
return new LocalizedProperties( bundle )
99+
{
99100
@Override
100101
public String getReportName()
101102
{

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<artifactId>maven-parent</artifactId>
2525
<groupId>org.apache.maven</groupId>
26-
<version>30</version>
26+
<version>31</version>
2727
<relativePath>../pom/maven/pom.xml</relativePath>
2828
</parent>
2929

surefire-api/src/main/java/org/apache/maven/surefire/booter/SurefireReflector.java

+11-13
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@
1919
* under the License.
2020
*/
2121

22-
import java.io.File;
23-
import java.lang.reflect.Constructor;
24-
import java.lang.reflect.InvocationHandler;
25-
import java.lang.reflect.Method;
26-
import java.util.ArrayList;
27-
import java.util.Collection;
28-
import java.util.List;
29-
import java.util.Map;
30-
3122
import org.apache.maven.plugin.surefire.log.api.ConsoleLogger;
3223
import org.apache.maven.plugin.surefire.log.api.ConsoleLoggerDecorator;
3324
import org.apache.maven.surefire.cli.CommandLineOption;
@@ -44,16 +35,23 @@
4435
import org.apache.maven.surefire.util.SurefireReflectionException;
4536

4637
import javax.annotation.Nonnull;
38+
import java.io.File;
39+
import java.lang.reflect.Constructor;
40+
import java.lang.reflect.InvocationHandler;
41+
import java.lang.reflect.Method;
42+
import java.util.ArrayList;
43+
import java.util.Collection;
44+
import java.util.List;
45+
import java.util.Map;
4746

4847
import static java.util.Collections.checkedList;
49-
5048
import static org.apache.maven.surefire.util.ReflectionUtils.getConstructor;
5149
import static org.apache.maven.surefire.util.ReflectionUtils.getMethod;
50+
import static org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg;
51+
import static org.apache.maven.surefire.util.ReflectionUtils.instantiateTwoArgs;
5252
import static org.apache.maven.surefire.util.ReflectionUtils.invokeGetter;
5353
import static org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray;
54-
import static org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg;
5554
import static org.apache.maven.surefire.util.ReflectionUtils.invokeSetter;
56-
import static org.apache.maven.surefire.util.ReflectionUtils.instantiateTwoArgs;
5755
import static org.apache.maven.surefire.util.ReflectionUtils.newInstance;
5856

5957
/**
@@ -160,7 +158,7 @@ class ClassLoaderProxy
160158
/**
161159
* @param delegate a target
162160
*/
163-
public ClassLoaderProxy( Object delegate )
161+
ClassLoaderProxy( Object delegate )
164162
{
165163
this.target = delegate;
166164
}

surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnit4Reflector.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
* under the License.
2020
*/
2121

22-
import java.lang.annotation.Annotation;
23-
import java.lang.reflect.InvocationTargetException;
24-
import java.lang.reflect.Method;
25-
2622
import org.apache.maven.surefire.util.SurefireReflectionException;
2723
import org.junit.Ignore;
2824
import org.junit.runner.Description;
2925
import org.junit.runner.Request;
3026

31-
import static org.apache.maven.surefire.util.ReflectionUtils.tryGetMethod;
27+
import java.lang.annotation.Annotation;
28+
import java.lang.reflect.InvocationTargetException;
29+
import java.lang.reflect.Method;
30+
3231
import static org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray;
32+
import static org.apache.maven.surefire.util.ReflectionUtils.tryGetMethod;
3333

3434
/**
3535
* JUnit4 reflection helper
@@ -114,12 +114,12 @@ private static class IgnoredWithUserError
114114
{
115115
private final String value;
116116

117-
public IgnoredWithUserError( String value )
117+
IgnoredWithUserError( String value )
118118
{
119119
this.value = value;
120120
}
121121

122-
public IgnoredWithUserError()
122+
IgnoredWithUserError()
123123
{
124124
this( "" );
125125
}

surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/FilteringRequest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class FilteringRequest
3232
{
3333
private Runner filteredRunner;
3434

35-
public FilteringRequest( Request req, Filter filter )
35+
FilteringRequest( Request req, Filter filter )
3636
{
3737
try
3838
{

0 commit comments

Comments
 (0)