diff --git a/pom.xml b/pom.xml
index a20f8b9f..774e6069 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,5 +1,4 @@
-
-
+
-
4.0.0
@@ -37,6 +35,12 @@ under the License.
The Compiler Plugin is used to compile the sources of your project.2001
+
+
+ Jan Sievers
+
+
+
${mavenVersion}
@@ -44,8 +48,8 @@ under the License.
scm:git:https://github.com/apache/maven-compiler-plugin.gitscm:git:https://github.com/apache/maven-compiler-plugin.git
- https://github.com/apache/maven-compiler-plugin/tree/${project.scm.tag}maven-compiler-plugin-3.10.0
+ https://github.com/apache/maven-compiler-plugin/tree/${project.scm.tag}JIRA
@@ -80,25 +84,6 @@ under the License.
org.apache.maven.plugins.compiler.its
-
-
- Jan Sievers
-
-
-
-
-
- plexus.snapshots
- https://oss.sonatype.org/content/repositories/plexus-snapshots
-
- false
-
-
- true
-
-
-
-
@@ -145,16 +130,16 @@ under the License.
1.1
- maven-coreorg.apache.maven
+ maven-core
- maven-plugin-apiorg.apache.maven
+ maven-plugin-api
- maven-shared-utilsorg.apache.maven.shared
+ maven-shared-utils
@@ -209,6 +194,19 @@ under the License.
+
+
+
+ false
+
+
+ true
+
+ plexus.snapshots
+ https://oss.sonatype.org/content/repositories/plexus-snapshots
+
+
+
diff --git a/src/it/MCOMPILER-129/src/main/java/MyClass.java b/src/it/MCOMPILER-129/src/main/java/MyClass.java
index 80144b07..d4132bb2 100644
--- a/src/it/MCOMPILER-129/src/main/java/MyClass.java
+++ b/src/it/MCOMPILER-129/src/main/java/MyClass.java
@@ -1,23 +1,21 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class MyClass
-{
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package foo;
+
+public class MyClass {}
diff --git a/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAnnotation.java b/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAnnotation.java
index ccae1639..5339365e 100644
--- a/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAnnotation.java
+++ b/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAnnotation.java
@@ -1,5 +1,3 @@
-package org.issue;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.issue;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
@@ -26,6 +25,4 @@
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
-public @interface SimpleAnnotation {
-
-}
+public @interface SimpleAnnotation {}
diff --git a/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAnnotationProcessor.java b/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAnnotationProcessor.java
index 30823a1d..b95f3e22 100644
--- a/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAnnotationProcessor.java
+++ b/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAnnotationProcessor.java
@@ -1,5 +1,3 @@
-package org.issue;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,10 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-import java.io.IOException;
-import java.io.Writer;
-import java.util.Set;
+package org.issue;
import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.Filer;
@@ -37,44 +32,39 @@
import javax.tools.FileObject;
import javax.tools.StandardLocation;
-@SupportedSourceVersion( SourceVersion.RELEASE_6 )
-@SupportedAnnotationTypes( "org.issue.SimpleAnnotation" )
-public class SimpleAnnotationProcessor
- extends AbstractProcessor
-{
+import java.io.IOException;
+import java.io.Writer;
+import java.util.Set;
+
+@SupportedSourceVersion(SourceVersion.RELEASE_6)
+@SupportedAnnotationTypes("org.issue.SimpleAnnotation")
+public class SimpleAnnotationProcessor extends AbstractProcessor {
@Override
- public boolean process( Set extends TypeElement> annotations, RoundEnvironment roundEnv )
- {
+ public boolean process(Set extends TypeElement> annotations, RoundEnvironment roundEnv) {
Filer filer = processingEnv.getFiler();
Elements elementUtils = processingEnv.getElementUtils();
- Set extends Element> elements = roundEnv.getElementsAnnotatedWith( SimpleAnnotation.class );
+ Set extends Element> elements = roundEnv.getElementsAnnotatedWith(SimpleAnnotation.class);
- for ( Element element : elements )
- {
+ for (Element element : elements) {
Name name = element.getSimpleName();
- PackageElement packageElement = elementUtils.getPackageOf( element );
+ PackageElement packageElement = elementUtils.getPackageOf(element);
- try
- {
- FileObject resource =
- filer.createResource( StandardLocation.SOURCE_OUTPUT, packageElement.getQualifiedName(), name
- + ".txt", element );
+ try {
+ FileObject resource = filer.createResource(
+ StandardLocation.SOURCE_OUTPUT, packageElement.getQualifiedName(), name + ".txt", element);
Writer writer = resource.openWriter();
- writer.write( name.toString() );
+ writer.write(name.toString());
writer.close();
- }
- catch ( IOException e )
- {
- throw new RuntimeException( e );
+ } catch (IOException e) {
+ throw new RuntimeException(e);
}
}
return !elements.isEmpty();
}
-
}
diff --git a/src/it/MCOMPILER-157/annotation-user/src/main/java/org/issue/SimpleObject.java b/src/it/MCOMPILER-157/annotation-user/src/main/java/org/issue/SimpleObject.java
index 56524fb8..18b8fc43 100644
--- a/src/it/MCOMPILER-157/annotation-user/src/main/java/org/issue/SimpleObject.java
+++ b/src/it/MCOMPILER-157/annotation-user/src/main/java/org/issue/SimpleObject.java
@@ -1,5 +1,3 @@
-package org.issue;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,9 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.issue;
@SimpleAnnotation
-public class SimpleObject
-{
-
-}
+public class SimpleObject {}
diff --git a/src/it/MCOMPILER-157/annotation-user/src/test/java/org/issue/SimpleTestObject.java b/src/it/MCOMPILER-157/annotation-user/src/test/java/org/issue/SimpleTestObject.java
index 9024f6a3..706dccf1 100644
--- a/src/it/MCOMPILER-157/annotation-user/src/test/java/org/issue/SimpleTestObject.java
+++ b/src/it/MCOMPILER-157/annotation-user/src/test/java/org/issue/SimpleTestObject.java
@@ -1,5 +1,3 @@
-package org.issue;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,9 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.issue;
@SimpleAnnotation
-public class SimpleTestObject
-{
-
-}
+public class SimpleTestObject {}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App.java b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App.java
index bcbf5dd6..3fa54ed1 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,35 +16,29 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*/
-public class App
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App2.java b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App2.java
index 6a22d395..9a6511fc 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App2.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App2.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App2
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App2 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App3.java b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App3.java
index d970eecf..eb55f16f 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App3.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App3.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App3
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App3 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App4.java b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App4.java
index 1cce4d8d..1156f54d 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App4.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App4.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App4
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App4 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App5.java b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App5.java
index beab680b..dd3c028a 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App5.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App5.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App5
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App5 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App6.java b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App6.java
index c748ea2c..ca09789f 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App6.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App6.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App6
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App6 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App7.java b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App7.java
index 0b09cdfa..e0f50da0 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App7.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App7.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App7
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App7 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java b/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
index 464f9af3..af3a4542 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
import junit.framework.Test;
import junit.framework.TestCase;
@@ -27,32 +25,27 @@
/**
* Unit test for simple App.
*/
-public class AppTest
- extends TestCase
-{
+public class AppTest extends TestCase {
/**
* Create the test case
*
* @param testName name of the test case
*/
- public AppTest( String testName )
- {
- super( testName );
+ public AppTest(String testName) {
+ super(testName);
}
/**
* @return the suite of tests being tested
*/
- public static Test suite()
- {
- return new TestSuite( AppTest.class );
+ public static Test suite() {
+ return new TestSuite(AppTest.class);
}
/**
* Rigourous Test :-)
*/
- public void testApp()
- {
- assertTrue( true );
+ public void testApp() {
+ assertTrue(true);
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App.java b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App.java
index bcbf5dd6..3fa54ed1 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,35 +16,29 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*/
-public class App
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App2.java b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App2.java
index 6a22d395..9a6511fc 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App2.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App2.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App2
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App2 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App3.java b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App3.java
index d970eecf..eb55f16f 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App3.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App3.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App3
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App3 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App4.java b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App4.java
index 1cce4d8d..1156f54d 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App4.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App4.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App4
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App4 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App5.java b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App5.java
index beab680b..dd3c028a 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App5.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App5.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App5
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App5 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App6.java b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App6.java
index c748ea2c..ca09789f 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App6.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App6.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App6
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App6 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App7.java b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App7.java
index 0b09cdfa..e0f50da0 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App7.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App7.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App7
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App7 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java b/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
index 464f9af3..af3a4542 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
import junit.framework.Test;
import junit.framework.TestCase;
@@ -27,32 +25,27 @@
/**
* Unit test for simple App.
*/
-public class AppTest
- extends TestCase
-{
+public class AppTest extends TestCase {
/**
* Create the test case
*
* @param testName name of the test case
*/
- public AppTest( String testName )
- {
- super( testName );
+ public AppTest(String testName) {
+ super(testName);
}
/**
* @return the suite of tests being tested
*/
- public static Test suite()
- {
- return new TestSuite( AppTest.class );
+ public static Test suite() {
+ return new TestSuite(AppTest.class);
}
/**
* Rigourous Test :-)
*/
- public void testApp()
- {
- assertTrue( true );
+ public void testApp() {
+ assertTrue(true);
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App.java b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App.java
index bcbf5dd6..3fa54ed1 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,35 +16,29 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*/
-public class App
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App2.java b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App2.java
index 6a22d395..9a6511fc 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App2.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App2.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App2
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App2 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App3.java b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App3.java
index d970eecf..eb55f16f 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App3.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App3.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App3
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App3 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App4.java b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App4.java
index 1cce4d8d..1156f54d 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App4.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App4.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App4
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App4 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App5.java b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App5.java
index beab680b..dd3c028a 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App5.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App5.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App5
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App5 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App6.java b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App6.java
index c748ea2c..ca09789f 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App6.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App6.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App6
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App6 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App7.java b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App7.java
index 0b09cdfa..e0f50da0 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App7.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App7.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App7
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App7 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java b/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
index 464f9af3..af3a4542 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
import junit.framework.Test;
import junit.framework.TestCase;
@@ -27,32 +25,27 @@
/**
* Unit test for simple App.
*/
-public class AppTest
- extends TestCase
-{
+public class AppTest extends TestCase {
/**
* Create the test case
*
* @param testName name of the test case
*/
- public AppTest( String testName )
- {
- super( testName );
+ public AppTest(String testName) {
+ super(testName);
}
/**
* @return the suite of tests being tested
*/
- public static Test suite()
- {
- return new TestSuite( AppTest.class );
+ public static Test suite() {
+ return new TestSuite(AppTest.class);
}
/**
* Rigourous Test :-)
*/
- public void testApp()
- {
- assertTrue( true );
+ public void testApp() {
+ assertTrue(true);
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App.java b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App.java
index bcbf5dd6..3fa54ed1 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,35 +16,29 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*/
-public class App
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App2.java b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App2.java
index 6a22d395..9a6511fc 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App2.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App2.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App2
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App2 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App3.java b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App3.java
index d970eecf..eb55f16f 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App3.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App3.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App3
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App3 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App4.java b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App4.java
index 1cce4d8d..1156f54d 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App4.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App4.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App4
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App4 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App5.java b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App5.java
index beab680b..dd3c028a 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App5.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App5.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App5
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App5 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App6.java b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App6.java
index c748ea2c..ca09789f 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App6.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App6.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App6
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App6 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App7.java b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App7.java
index 0b09cdfa..e0f50da0 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App7.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App7.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,36 +16,30 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
/**
* Hello world!
*
*/
-public class App7
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App7 {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
- public static void mainFoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public static void mainFoo(String[] args) {
+ System.out.println("Hello World!");
}
- public void bar( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void bar(String[] args) {
+ System.out.println("Hello World!");
}
- public void foo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void foo(String[] args) {
+ System.out.println("Hello World!");
}
- public void barfoo( String[] args )
- {
- System.out.println( "Hello World!" );
+ public void barfoo(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java b/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
index 464f9af3..af3a4542 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
+++ b/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.plugins.compiler.it;
import junit.framework.Test;
import junit.framework.TestCase;
@@ -27,32 +25,27 @@
/**
* Unit test for simple App.
*/
-public class AppTest
- extends TestCase
-{
+public class AppTest extends TestCase {
/**
* Create the test case
*
* @param testName name of the test case
*/
- public AppTest( String testName )
- {
- super( testName );
+ public AppTest(String testName) {
+ super(testName);
}
/**
* @return the suite of tests being tested
*/
- public static Test suite()
- {
- return new TestSuite( AppTest.class );
+ public static Test suite() {
+ return new TestSuite(AppTest.class);
}
/**
* Rigourous Test :-)
*/
- public void testApp()
- {
- assertTrue( true );
+ public void testApp() {
+ assertTrue(true);
}
}
diff --git a/src/it/MCOMPILER-190/src/main/java/org/example/pce/sample/Dummy.java b/src/it/MCOMPILER-190/src/main/java/org/example/pce/sample/Dummy.java
index 96a49ffc..00225397 100644
--- a/src/it/MCOMPILER-190/src/main/java/org/example/pce/sample/Dummy.java
+++ b/src/it/MCOMPILER-190/src/main/java/org/example/pce/sample/Dummy.java
@@ -1,5 +1,3 @@
-package org.example.pce.sample;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.example.pce.sample;
public class Dummy {
- public static void main(final String[] args) {
- String dummy = new Integer(1);
- }
+ public static void main(final String[] args) {
+ String dummy = new Integer(1);
+ }
}
diff --git a/src/it/MCOMPILER-192/src/main/java/dummy/HelloWorld.java b/src/it/MCOMPILER-192/src/main/java/dummy/HelloWorld.java
index f223c74d..7ceb91cb 100644
--- a/src/it/MCOMPILER-192/src/main/java/dummy/HelloWorld.java
+++ b/src/it/MCOMPILER-192/src/main/java/dummy/HelloWorld.java
@@ -1,28 +1,25 @@
-package dummy;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-
-public class HelloWorld
-{
- public static void main(String[] argv) {
- System.out.println("Hello World");
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package dummy;
+
+public class HelloWorld {
+ public static void main(String[] argv) {
+ System.out.println("Hello World");
+ }
+}
diff --git a/src/it/MCOMPILER-192/verify.groovy b/src/it/MCOMPILER-192/verify.groovy
index 4e6e3b0a..a23fe871 100644
--- a/src/it/MCOMPILER-192/verify.groovy
+++ b/src/it/MCOMPILER-192/verify.groovy
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
diff --git a/src/it/MCOMPILER-197/src/main/java/org/issue/Person.java b/src/it/MCOMPILER-197/src/main/java/org/issue/Person.java
index 701035c0..d80a49b9 100644
--- a/src/it/MCOMPILER-197/src/main/java/org/issue/Person.java
+++ b/src/it/MCOMPILER-197/src/main/java/org/issue/Person.java
@@ -1,5 +1,3 @@
-package org.issue;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.issue;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
@@ -28,6 +27,7 @@ public class Person {
@Id
@GeneratedValue
private long id;
+
private String name;
public long getId() {
diff --git a/src/it/MCOMPILER-203-processorpath/annotation-processor/src/main/java/org/issue/SimpleAnnotationProcessor.java b/src/it/MCOMPILER-203-processorpath/annotation-processor/src/main/java/org/issue/SimpleAnnotationProcessor.java
index a3dcbf9b..b2dfd6ca 100644
--- a/src/it/MCOMPILER-203-processorpath/annotation-processor/src/main/java/org/issue/SimpleAnnotationProcessor.java
+++ b/src/it/MCOMPILER-203-processorpath/annotation-processor/src/main/java/org/issue/SimpleAnnotationProcessor.java
@@ -1,121 +1,105 @@
-package org.issue;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.io.IOException;
-import java.io.Writer;
-import java.util.Set;
-
-import javax.annotation.processing.AbstractProcessor;
-import javax.annotation.processing.Filer;
-import javax.annotation.processing.RoundEnvironment;
-import javax.annotation.processing.SupportedAnnotationTypes;
-import javax.annotation.processing.SupportedSourceVersion;
-import javax.lang.model.SourceVersion;
-import javax.lang.model.element.Element;
-import javax.lang.model.element.Name;
-import javax.lang.model.element.PackageElement;
-import javax.lang.model.element.TypeElement;
-import javax.lang.model.util.Elements;
-import javax.tools.FileObject;
-import javax.tools.JavaFileObject;
-import javax.tools.StandardLocation;
-
-@SupportedSourceVersion( SourceVersion.RELEASE_6 )
-@SupportedAnnotationTypes( "org.issue.SimpleAnnotation" )
-public class SimpleAnnotationProcessor
- extends AbstractProcessor
-{
-
- @Override
- public boolean process( Set extends TypeElement> annotations, RoundEnvironment roundEnv )
- {
- if ( annotations.isEmpty() )
- {
- return true;
- }
-
- // assert that commons-lang3 is on the classpath
- try
- {
- getClass().getClassLoader().loadClass( "org.apache.commons.lang3.StringUtils" );
- }
- catch ( ClassNotFoundException expected )
- {
- throw new RuntimeException( "Expected org.apache.commons.lang3.StringUtils to be on the processorpath,"
- + "because it is a declared dependency of the annotation processor." );
- }
-
- // assert that commons-io is NOT on the classpath, as it is only a project dependency in "annotation-user"
- try
- {
- getClass().getClassLoader().loadClass( "org.apache.commons.io.IOUtils" );
- throw new RuntimeException( "Expected a ClassNotFoundException because "
- + "org.apache.commons.io.IOUtils is not supposed to be on the processorpath." );
- }
- catch ( ClassNotFoundException expected )
- {
- // expected.
- }
-
- Filer filer = processingEnv.getFiler();
-
- Elements elementUtils = processingEnv.getElementUtils();
-
- Set extends Element> elements = roundEnv.getElementsAnnotatedWith( annotations.iterator().next() );
-
- for ( Element element : elements )
- {
- Name name = element.getSimpleName();
-
- PackageElement packageElement = elementUtils.getPackageOf( element );
-
- try
- {
- Name packageName = packageElement.getQualifiedName();
- FileObject resource =
- filer.createResource( StandardLocation.SOURCE_OUTPUT, packageName, name
- + ".txt", element );
-
- Writer writer = resource.openWriter();
- writer.write( name.toString() );
- writer.close();
-
- String className = name + "Companion";
- JavaFileObject javaFile = filer.createSourceFile( packageName + "." + className, element );
-
- Writer javaWriter = javaFile.openWriter();
- javaWriter.append( "package " ).append( packageName ).append( ";\n\n" );
- javaWriter.append( "public class " ).append( className ).append( " {\n" );
- javaWriter.append( " public " ).append( className ).append( "() {\n" );
- javaWriter.append( " System.out.println(\"Hey there!\");\n" );
- javaWriter.append( " }\n}\n" );
- javaWriter.close();
- }
- catch ( IOException e )
- {
- throw new RuntimeException( e );
- }
- }
-
- return !elements.isEmpty();
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.issue;
+
+import javax.annotation.processing.AbstractProcessor;
+import javax.annotation.processing.Filer;
+import javax.annotation.processing.RoundEnvironment;
+import javax.annotation.processing.SupportedAnnotationTypes;
+import javax.annotation.processing.SupportedSourceVersion;
+import javax.lang.model.SourceVersion;
+import javax.lang.model.element.Element;
+import javax.lang.model.element.Name;
+import javax.lang.model.element.PackageElement;
+import javax.lang.model.element.TypeElement;
+import javax.lang.model.util.Elements;
+import javax.tools.FileObject;
+import javax.tools.JavaFileObject;
+import javax.tools.StandardLocation;
+
+import java.io.IOException;
+import java.io.Writer;
+import java.util.Set;
+
+@SupportedSourceVersion(SourceVersion.RELEASE_6)
+@SupportedAnnotationTypes("org.issue.SimpleAnnotation")
+public class SimpleAnnotationProcessor extends AbstractProcessor {
+
+ @Override
+ public boolean process(Set extends TypeElement> annotations, RoundEnvironment roundEnv) {
+ if (annotations.isEmpty()) {
+ return true;
+ }
+
+ // assert that commons-lang3 is on the classpath
+ try {
+ getClass().getClassLoader().loadClass("org.apache.commons.lang3.StringUtils");
+ } catch (ClassNotFoundException expected) {
+ throw new RuntimeException("Expected org.apache.commons.lang3.StringUtils to be on the processorpath,"
+ + "because it is a declared dependency of the annotation processor.");
+ }
+
+ // assert that commons-io is NOT on the classpath, as it is only a project dependency in "annotation-user"
+ try {
+ getClass().getClassLoader().loadClass("org.apache.commons.io.IOUtils");
+ throw new RuntimeException("Expected a ClassNotFoundException because "
+ + "org.apache.commons.io.IOUtils is not supposed to be on the processorpath.");
+ } catch (ClassNotFoundException expected) {
+ // expected.
+ }
+
+ Filer filer = processingEnv.getFiler();
+
+ Elements elementUtils = processingEnv.getElementUtils();
+
+ Set extends Element> elements =
+ roundEnv.getElementsAnnotatedWith(annotations.iterator().next());
+
+ for (Element element : elements) {
+ Name name = element.getSimpleName();
+
+ PackageElement packageElement = elementUtils.getPackageOf(element);
+
+ try {
+ Name packageName = packageElement.getQualifiedName();
+ FileObject resource =
+ filer.createResource(StandardLocation.SOURCE_OUTPUT, packageName, name + ".txt", element);
+
+ Writer writer = resource.openWriter();
+ writer.write(name.toString());
+ writer.close();
+
+ String className = name + "Companion";
+ JavaFileObject javaFile = filer.createSourceFile(packageName + "." + className, element);
+
+ Writer javaWriter = javaFile.openWriter();
+ javaWriter.append("package ").append(packageName).append(";\n\n");
+ javaWriter.append("public class ").append(className).append(" {\n");
+ javaWriter.append(" public ").append(className).append("() {\n");
+ javaWriter.append(" System.out.println(\"Hey there!\");\n");
+ javaWriter.append(" }\n}\n");
+ javaWriter.close();
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ return !elements.isEmpty();
+ }
+}
diff --git a/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/issue/SimpleAnnotation.java b/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/issue/SimpleAnnotation.java
index b867beb5..5339365e 100644
--- a/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/issue/SimpleAnnotation.java
+++ b/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/issue/SimpleAnnotation.java
@@ -1,31 +1,28 @@
-package org.issue;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Target(ElementType.TYPE)
-@Retention(RetentionPolicy.SOURCE)
-public @interface SimpleAnnotation {
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.issue;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.SOURCE)
+public @interface SimpleAnnotation {}
diff --git a/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/issue/SimpleObject.java b/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/issue/SimpleObject.java
index 5b7a43f6..18b8fc43 100644
--- a/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/issue/SimpleObject.java
+++ b/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/issue/SimpleObject.java
@@ -1,26 +1,22 @@
-package org.issue;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-@SimpleAnnotation
-public class SimpleObject
-{
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.issue;
+
+@SimpleAnnotation
+public class SimpleObject {}
diff --git a/src/it/MCOMPILER-203-processorpath/annotation-user/src/test/java/org/issue/SimpleTestObject.java b/src/it/MCOMPILER-203-processorpath/annotation-user/src/test/java/org/issue/SimpleTestObject.java
index 48aed126..706dccf1 100644
--- a/src/it/MCOMPILER-203-processorpath/annotation-user/src/test/java/org/issue/SimpleTestObject.java
+++ b/src/it/MCOMPILER-203-processorpath/annotation-user/src/test/java/org/issue/SimpleTestObject.java
@@ -1,26 +1,22 @@
-package org.issue;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-@SimpleAnnotation
-public class SimpleTestObject
-{
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.issue;
+
+@SimpleAnnotation
+public class SimpleTestObject {}
diff --git a/src/it/MCOMPILER-205/src/main/java/dummy/HelloWorld.java b/src/it/MCOMPILER-205/src/main/java/dummy/HelloWorld.java
index f223c74d..7ceb91cb 100644
--- a/src/it/MCOMPILER-205/src/main/java/dummy/HelloWorld.java
+++ b/src/it/MCOMPILER-205/src/main/java/dummy/HelloWorld.java
@@ -1,28 +1,25 @@
-package dummy;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-
-public class HelloWorld
-{
- public static void main(String[] argv) {
- System.out.println("Hello World");
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package dummy;
+
+public class HelloWorld {
+ public static void main(String[] argv) {
+ System.out.println("Hello World");
+ }
+}
diff --git a/src/it/MCOMPILER-205/src/main/java/dummy/package-info.java b/src/it/MCOMPILER-205/src/main/java/dummy/package-info.java
index ed72542b..9d2deff2 100644
--- a/src/it/MCOMPILER-205/src/main/java/dummy/package-info.java
+++ b/src/it/MCOMPILER-205/src/main/java/dummy/package-info.java
@@ -20,4 +20,4 @@
/**
* This is the package javadoc
*/
-package dummy;
\ No newline at end of file
+package dummy;
diff --git a/src/it/MCOMPILER-205/verify.groovy b/src/it/MCOMPILER-205/verify.groovy
index 1526f866..1041376b 100644
--- a/src/it/MCOMPILER-205/verify.groovy
+++ b/src/it/MCOMPILER-205/verify.groovy
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
diff --git a/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompiler224.java b/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompiler224.java
index c47ffa04..045a64b1 100644
--- a/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompiler224.java
+++ b/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompiler224.java
@@ -1,5 +1,3 @@
-package org.issue;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,9 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.issue;
-
-public @interface MCompiler224
-{
-
-}
+public @interface MCompiler224 {}
diff --git a/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompiler224AnnotationProcessor.java b/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompiler224AnnotationProcessor.java
index 2e92f08c..c7ded6bc 100644
--- a/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompiler224AnnotationProcessor.java
+++ b/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompiler224AnnotationProcessor.java
@@ -1,5 +1,3 @@
-package org.issue;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,9 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-
-import java.util.Set;
+package org.issue;
import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.Messager;
@@ -31,38 +27,31 @@
import javax.lang.model.element.TypeElement;
import javax.tools.Diagnostic.Kind;
+import java.util.Set;
+
/* @formatter:off */
-@SupportedAnnotationTypes( {
- "org.issue.MCompiler224"
-} )
+@SupportedAnnotationTypes({"org.issue.MCompiler224"})
/* @formatter:on */
-@SupportedSourceVersion( SourceVersion.RELEASE_6 )
-public class MCompiler224AnnotationProcessor
- extends AbstractProcessor
-{
+@SupportedSourceVersion(SourceVersion.RELEASE_6)
+public class MCompiler224AnnotationProcessor extends AbstractProcessor {
@Override
- public boolean process( final Set extends TypeElement> elts, final RoundEnvironment env )
- {
- if ( elts.isEmpty() )
- {
+ public boolean process(final Set extends TypeElement> elts, final RoundEnvironment env) {
+ if (elts.isEmpty()) {
return true;
}
final Messager messager = this.processingEnv.getMessager();
- for ( final Kind kind : Kind.values() )
- {
- if ( Kind.ERROR == kind )
- {
+ for (final Kind kind : Kind.values()) {
+ if (Kind.ERROR == kind) {
continue;
}
- System.out.println( "Testing message for: " + kind );
- messager.printMessage( kind, kind + " Test message." );
+ System.out.println("Testing message for: " + kind);
+ messager.printMessage(kind, kind + " Test message.");
}
return true;
}
-
}
diff --git a/src/it/MCOMPILER-224/annotation-user/src/main/java/org/issue/user/User.java b/src/it/MCOMPILER-224/annotation-user/src/main/java/org/issue/user/User.java
index 38b2ebd5..660beafe 100644
--- a/src/it/MCOMPILER-224/annotation-user/src/main/java/org/issue/user/User.java
+++ b/src/it/MCOMPILER-224/annotation-user/src/main/java/org/issue/user/User.java
@@ -1,5 +1,3 @@
-package org.issue.user;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,12 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.issue.user;
import org.issue.MCompiler224;
@MCompiler224
-public class User
-{
-
-}
+public class User {}
diff --git a/src/it/MCOMPILER-228/src/main/java/example/FinalExample.java b/src/it/MCOMPILER-228/src/main/java/example/FinalExample.java
index bb577774..dd510e86 100644
--- a/src/it/MCOMPILER-228/src/main/java/example/FinalExample.java
+++ b/src/it/MCOMPILER-228/src/main/java/example/FinalExample.java
@@ -1,49 +1,40 @@
-package example;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.util.Comparator;
-
-public class FinalExample
-{
- public static final Comparator comparator = ( o1, o2 ) ->
- {
- final String desc1 = o1;
- final String desc2 = o2;
- final int compareTo;
- if ( desc1 == null )
- {
- compareTo = -1;
- }
- else if ( desc2 == null )
- {
- compareTo = 1;
- }
- else
- {
- compareTo = desc1.compareTo( desc2 );
- }
- if ( compareTo == 0 )
- {
- return 3;
- }
- return compareTo;
- };
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package example;
+
+import java.util.Comparator;
+
+public class FinalExample {
+ public static final Comparator comparator = (o1, o2) -> {
+ final String desc1 = o1;
+ final String desc2 = o2;
+ final int compareTo;
+ if (desc1 == null) {
+ compareTo = -1;
+ } else if (desc2 == null) {
+ compareTo = 1;
+ } else {
+ compareTo = desc1.compareTo(desc2);
+ }
+ if (compareTo == 0) {
+ return 3;
+ }
+ return compareTo;
+ };
+}
diff --git a/src/it/MCOMPILER-260_customArguments/src/main/java/com/foo/MyClass.java b/src/it/MCOMPILER-260_customArguments/src/main/java/com/foo/MyClass.java
index dae085a4..f646e4ae 100644
--- a/src/it/MCOMPILER-260_customArguments/src/main/java/com/foo/MyClass.java
+++ b/src/it/MCOMPILER-260_customArguments/src/main/java/com/foo/MyClass.java
@@ -1,25 +1,21 @@
-package com.foo;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class MyClass
-{
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package com.foo;
+
+public class MyClass {}
diff --git a/src/it/MCOMPILER-268_modulepath/src/main/java/com/foo/MyClass.java b/src/it/MCOMPILER-268_modulepath/src/main/java/com/foo/MyClass.java
index dae085a4..f646e4ae 100644
--- a/src/it/MCOMPILER-268_modulepath/src/main/java/com/foo/MyClass.java
+++ b/src/it/MCOMPILER-268_modulepath/src/main/java/com/foo/MyClass.java
@@ -1,25 +1,21 @@
-package com.foo;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class MyClass
-{
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package com.foo;
+
+public class MyClass {}
diff --git a/src/it/MCOMPILER-268_modulepath/src/main/java/module-info.java b/src/it/MCOMPILER-268_modulepath/src/main/java/module-info.java
index d9800e36..029b6e71 100644
--- a/src/it/MCOMPILER-268_modulepath/src/main/java/module-info.java
+++ b/src/it/MCOMPILER-268_modulepath/src/main/java/module-info.java
@@ -1,22 +1,22 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-module M.N {
- requires org.apache.commons.lang3;
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+module M.N {
+ requires org.apache.commons.lang3;
+}
diff --git a/src/it/MCOMPILER-268_modulepath/src/test/java/com/foo/MyTest.java b/src/it/MCOMPILER-268_modulepath/src/test/java/com/foo/MyTest.java
index efb936e6..072b8086 100644
--- a/src/it/MCOMPILER-268_modulepath/src/test/java/com/foo/MyTest.java
+++ b/src/it/MCOMPILER-268_modulepath/src/test/java/com/foo/MyTest.java
@@ -1,28 +1,25 @@
-package com.foo;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import junit.framework.TestCase;
-
-public class MyTest
- extends TestCase
-{
- private MyClass myClass = new MyClass();
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package com.foo;
+
+import junit.framework.TestCase;
+
+public class MyTest extends TestCase {
+ private MyClass myClass = new MyClass();
+}
diff --git a/src/it/MCOMPILER-270_release/src/main/java/MyClass.java b/src/it/MCOMPILER-270_release/src/main/java/MyClass.java
index 4f947346..d4132bb2 100644
--- a/src/it/MCOMPILER-270_release/src/main/java/MyClass.java
+++ b/src/it/MCOMPILER-270_release/src/main/java/MyClass.java
@@ -1,23 +1,21 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class MyClass
-{
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package foo;
+
+public class MyClass {}
diff --git a/src/it/MCOMPILER-270_release/src/test/java/MyTest.java b/src/it/MCOMPILER-270_release/src/test/java/MyTest.java
index d80ce855..77db4f1d 100644
--- a/src/it/MCOMPILER-270_release/src/test/java/MyTest.java
+++ b/src/it/MCOMPILER-270_release/src/test/java/MyTest.java
@@ -1,26 +1,23 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import junit.framework.TestCase;
-
-public class MyTest
- extends TestCase
-{
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package foo;
+
+import junit.framework.TestCase;
+
+public class MyTest extends TestCase {}
diff --git a/src/it/MCOMPILER-272/processor1/src/main/java/processor1/Processor1.java b/src/it/MCOMPILER-272/processor1/src/main/java/processor1/Processor1.java
index 319d2740..d1638492 100644
--- a/src/it/MCOMPILER-272/processor1/src/main/java/processor1/Processor1.java
+++ b/src/it/MCOMPILER-272/processor1/src/main/java/processor1/Processor1.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,21 +18,18 @@
*/
package processor1;
-import java.util.Set;
-
import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedAnnotationTypes;
import javax.lang.model.element.TypeElement;
+import java.util.Set;
+
@SupportedAnnotationTypes({"java.lang.SuppressWarnings"})
-public class Processor1
- extends AbstractProcessor
-{
+public class Processor1 extends AbstractProcessor {
@Override
- public boolean process ( Set extends TypeElement> annotations, RoundEnvironment roundEnv )
- {
- System.out.println( "Run processor1" );
+ public boolean process(Set extends TypeElement> annotations, RoundEnvironment roundEnv) {
+ System.out.println("Run processor1");
return false;
}
}
diff --git a/src/it/MCOMPILER-272/processor2-dep/src/main/java/processor2/dep/Foo.java b/src/it/MCOMPILER-272/processor2-dep/src/main/java/processor2/dep/Foo.java
index bd1e92a4..f9fa52a5 100644
--- a/src/it/MCOMPILER-272/processor2-dep/src/main/java/processor2/dep/Foo.java
+++ b/src/it/MCOMPILER-272/processor2-dep/src/main/java/processor2/dep/Foo.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,4 @@
*/
package processor2.dep;
-public class Foo
-{
-
-}
+public class Foo {}
diff --git a/src/it/MCOMPILER-272/processor2/src/main/java/processor2/Processor2.java b/src/it/MCOMPILER-272/processor2/src/main/java/processor2/Processor2.java
index b96a20f4..c2adcb04 100644
--- a/src/it/MCOMPILER-272/processor2/src/main/java/processor2/Processor2.java
+++ b/src/it/MCOMPILER-272/processor2/src/main/java/processor2/Processor2.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,21 +18,18 @@
*/
package processor2;
-import java.util.Set;
-
import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedAnnotationTypes;
import javax.lang.model.element.TypeElement;
+import java.util.Set;
+
@SupportedAnnotationTypes({"java.lang.SuppressWarnings"})
-public class Processor2
- extends AbstractProcessor
-{
+public class Processor2 extends AbstractProcessor {
@Override
- public boolean process ( Set extends TypeElement> annotations, RoundEnvironment roundEnv )
- {
- System.out.println( "Run processor2" );
+ public boolean process(Set extends TypeElement> annotations, RoundEnvironment roundEnv) {
+ System.out.println("Run processor2");
new processor2.dep.Foo();
return false;
}
diff --git a/src/it/MCOMPILER-272/project/src/main/java/project/Project.java b/src/it/MCOMPILER-272/project/src/main/java/project/Project.java
index 9f00a997..be9e170a 100644
--- a/src/it/MCOMPILER-272/project/src/main/java/project/Project.java
+++ b/src/it/MCOMPILER-272/project/src/main/java/project/Project.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -20,11 +20,7 @@
import java.util.List;
-public class Project
-{
- @SuppressWarnings( "rawtypes" )
- public void foo( List toto )
- {
-
- }
+public class Project {
+ @SuppressWarnings("rawtypes")
+ public void foo(List toto) {}
}
diff --git a/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/com/foo/MyClass.java b/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/com/foo/MyClass.java
index dae085a4..f646e4ae 100644
--- a/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/com/foo/MyClass.java
+++ b/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/com/foo/MyClass.java
@@ -1,25 +1,21 @@
-package com.foo;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class MyClass
-{
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package com.foo;
+
+public class MyClass {}
diff --git a/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/module-info.java b/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/module-info.java
index c0e023a4..e30faf17 100644
--- a/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/module-info.java
+++ b/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/module-info.java
@@ -1,22 +1,21 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-module M.N {
-
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package com.foo;
+
+module M.N {}
diff --git a/src/it/MCOMPILER-275_separate-moduleinfo/src/test/java/com/foo/MyTest.java b/src/it/MCOMPILER-275_separate-moduleinfo/src/test/java/com/foo/MyTest.java
index efb936e6..072b8086 100644
--- a/src/it/MCOMPILER-275_separate-moduleinfo/src/test/java/com/foo/MyTest.java
+++ b/src/it/MCOMPILER-275_separate-moduleinfo/src/test/java/com/foo/MyTest.java
@@ -1,28 +1,25 @@
-package com.foo;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import junit.framework.TestCase;
-
-public class MyTest
- extends TestCase
-{
- private MyClass myClass = new MyClass();
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package com.foo;
+
+import junit.framework.TestCase;
+
+public class MyTest extends TestCase {
+ private MyClass myClass = new MyClass();
+}
diff --git a/src/it/MCOMPILER-284/src/main/java/com/foo/MyClass.java b/src/it/MCOMPILER-284/src/main/java/com/foo/MyClass.java
index 7370ac08..f646e4ae 100644
--- a/src/it/MCOMPILER-284/src/main/java/com/foo/MyClass.java
+++ b/src/it/MCOMPILER-284/src/main/java/com/foo/MyClass.java
@@ -1,5 +1,3 @@
-package com.foo;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,8 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/
+package com.foo;
-public class MyClass
-{
-
-}
+public class MyClass {}
diff --git a/src/it/MCOMPILER-284/src/test/java/com/foo/MyTest.java b/src/it/MCOMPILER-284/src/test/java/com/foo/MyTest.java
index f152b90e..072b8086 100644
--- a/src/it/MCOMPILER-284/src/test/java/com/foo/MyTest.java
+++ b/src/it/MCOMPILER-284/src/test/java/com/foo/MyTest.java
@@ -1,5 +1,3 @@
-package com.foo;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,11 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
+package com.foo;
import junit.framework.TestCase;
-public class MyTest
- extends TestCase
-{
+public class MyTest extends TestCase {
private MyClass myClass = new MyClass();
}
diff --git a/src/it/MCOMPILER-294/app/src/main/java/module-info.java b/src/it/MCOMPILER-294/app/src/main/java/module-info.java
index 3cda7211..d90b8a19 100644
--- a/src/it/MCOMPILER-294/app/src/main/java/module-info.java
+++ b/src/it/MCOMPILER-294/app/src/main/java/module-info.java
@@ -1,22 +1,22 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-module org.maven.test.app {
- requires org.maven.test.lib;
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+module org.maven.test.app {
+ requires org.maven.test.lib;
+}
diff --git a/src/it/MCOMPILER-294/app/src/main/java/org/maven/test/app/Main.java b/src/it/MCOMPILER-294/app/src/main/java/org/maven/test/app/Main.java
index 5d94eec5..cdd399a9 100644
--- a/src/it/MCOMPILER-294/app/src/main/java/org/maven/test/app/Main.java
+++ b/src/it/MCOMPILER-294/app/src/main/java/org/maven/test/app/Main.java
@@ -1,32 +1,31 @@
-package org.maven.test.app;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import org.maven.test.lib.Sout;
-
-public class Main {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
- Sout.println( args );
- }
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.maven.test.app;
+
+import org.maven.test.lib.Sout;
+
+public class Main {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ Sout.println(args);
+ }
+}
diff --git a/src/it/MCOMPILER-294/lib/src/main/java/module-info.java b/src/it/MCOMPILER-294/lib/src/main/java/module-info.java
index a218436f..52414cf8 100644
--- a/src/it/MCOMPILER-294/lib/src/main/java/module-info.java
+++ b/src/it/MCOMPILER-294/lib/src/main/java/module-info.java
@@ -1,22 +1,22 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-module org.maven.test.lib {
- exports org.maven.test.lib;
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+module org.maven.test.lib {
+ exports org.maven.test.lib;
+}
diff --git a/src/it/MCOMPILER-294/lib/src/main/java/org/maven/test/lib/Sout.java b/src/it/MCOMPILER-294/lib/src/main/java/org/maven/test/lib/Sout.java
index 658044ec..99c65f94 100644
--- a/src/it/MCOMPILER-294/lib/src/main/java/org/maven/test/lib/Sout.java
+++ b/src/it/MCOMPILER-294/lib/src/main/java/org/maven/test/lib/Sout.java
@@ -1,33 +1,31 @@
-package org.maven.test.lib;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class Sout {
-
- /**
- * @param args
- */
- public static void println(String[] args) {
- for ( String string : args )
- {
- System.out.println( args );
- }
- }
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.maven.test.lib;
+
+public class Sout {
+
+ /**
+ * @param args
+ */
+ public static void println(String[] args) {
+ for (String string : args) {
+ System.out.println(args);
+ }
+ }
+}
diff --git a/src/it/MCOMPILER-298/src/main/java/com/foo/ParameterClass.java b/src/it/MCOMPILER-298/src/main/java/com/foo/ParameterClass.java
index 439e1e1e..44d79122 100644
--- a/src/it/MCOMPILER-298/src/main/java/com/foo/ParameterClass.java
+++ b/src/it/MCOMPILER-298/src/main/java/com/foo/ParameterClass.java
@@ -1,5 +1,3 @@
-package com.foo;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,12 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
+package com.foo;
-
-public class ParameterClass
-{
- public void method( String parameterName )
- {
+public class ParameterClass {
+ public void method(String parameterName) {
// nothing
}
}
diff --git a/src/it/MCOMPILER-298/src/test/java/com/foo/ParameterTest.java b/src/it/MCOMPILER-298/src/test/java/com/foo/ParameterTest.java
index b552b774..42d771df 100644
--- a/src/it/MCOMPILER-298/src/test/java/com/foo/ParameterTest.java
+++ b/src/it/MCOMPILER-298/src/test/java/com/foo/ParameterTest.java
@@ -1,5 +1,3 @@
-package com.foo;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,19 +16,21 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-import static org.junit.Assert.*;
+package com.foo;
import org.junit.Test;
+import static org.junit.Assert.*;
-
-public class ParameterTest
-{
+public class ParameterTest {
@Test
- public void testParameter() throws Exception
- {
- assertEquals( "parameterName", ParameterClass.class.getMethod( "method", String.class ).getParameters()[0].getName() );
+ public void testParameter() throws Exception {
+ assertEquals(
+ "parameterName",
+ ParameterClass.class
+ .getMethod("method", String.class)
+ .getParameters()[0]
+ .getName());
}
}
diff --git a/src/it/MCOMPILER-321_pathexceptions/src/main/java/module-info.java b/src/it/MCOMPILER-321_pathexceptions/src/main/java/module-info.java
index 0f43b063..a57384df 100644
--- a/src/it/MCOMPILER-321_pathexceptions/src/main/java/module-info.java
+++ b/src/it/MCOMPILER-321_pathexceptions/src/main/java/module-info.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -17,6 +17,4 @@
* under the License.
*/
-module M.N {
-
-}
\ No newline at end of file
+module M.N {}
diff --git a/src/it/MCOMPILER-321_pathexceptions/src/test/java/test/MyTest.java b/src/it/MCOMPILER-321_pathexceptions/src/test/java/test/MyTest.java
index e2e08352..c42edd69 100644
--- a/src/it/MCOMPILER-321_pathexceptions/src/test/java/test/MyTest.java
+++ b/src/it/MCOMPILER-321_pathexceptions/src/test/java/test/MyTest.java
@@ -1,5 +1,3 @@
-package test;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/
+package test;
-public class MyTest
-{
-}
\ No newline at end of file
+public class MyTest {}
diff --git a/src/it/MCOMPILER-328_multiReleaseOutput/src/main/java/MyClass.java b/src/it/MCOMPILER-328_multiReleaseOutput/src/main/java/MyClass.java
index 90a93702..d4132bb2 100644
--- a/src/it/MCOMPILER-328_multiReleaseOutput/src/main/java/MyClass.java
+++ b/src/it/MCOMPILER-328_multiReleaseOutput/src/main/java/MyClass.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,4 @@
*/
package foo;
-public class MyClass
-{
-
-}
+public class MyClass {}
diff --git a/src/it/MCOMPILER-336_incremental-modulepath/a/src/main/java/module-info.java b/src/it/MCOMPILER-336_incremental-modulepath/a/src/main/java/module-info.java
index 234b5f94..aef91dbb 100644
--- a/src/it/MCOMPILER-336_incremental-modulepath/a/src/main/java/module-info.java
+++ b/src/it/MCOMPILER-336_incremental-modulepath/a/src/main/java/module-info.java
@@ -16,6 +16,4 @@
* specific language governing permissions and limitations
* under the License.
*/
-module test.a
-{
-}
+module test.a {}
diff --git a/src/it/MCOMPILER-336_incremental-modulepath/b/src/main/java/module-info.java b/src/it/MCOMPILER-336_incremental-modulepath/b/src/main/java/module-info.java
index c9f16f17..f2213e3c 100644
--- a/src/it/MCOMPILER-336_incremental-modulepath/b/src/main/java/module-info.java
+++ b/src/it/MCOMPILER-336_incremental-modulepath/b/src/main/java/module-info.java
@@ -16,7 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/
-module test.b
-{
+module test.b {
requires transitive test.a;
}
diff --git a/src/it/MCOMPILER-336_incremental-modulepath/b/src/main/java/test/Foo.java b/src/it/MCOMPILER-336_incremental-modulepath/b/src/main/java/test/Foo.java
index c22b20aa..0ec20eb3 100644
--- a/src/it/MCOMPILER-336_incremental-modulepath/b/src/main/java/test/Foo.java
+++ b/src/it/MCOMPILER-336_incremental-modulepath/b/src/main/java/test/Foo.java
@@ -1,5 +1,3 @@
-package org.opengis.annotation;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.opengis.annotation;
-public class Foo {
-}
+public class Foo {}
diff --git a/src/it/MCOMPILER-336_incremental-modulepath/b/src/main/java/test/package-info.java b/src/it/MCOMPILER-336_incremental-modulepath/b/src/main/java/test/package-info.java
index 41a65d1f..d4eae974 100644
--- a/src/it/MCOMPILER-336_incremental-modulepath/b/src/main/java/test/package-info.java
+++ b/src/it/MCOMPILER-336_incremental-modulepath/b/src/main/java/test/package-info.java
@@ -1,5 +1,3 @@
-package org.opengis.annotation;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -17,4 +15,5 @@
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
- */
\ No newline at end of file
+ */
+package org.opengis.annotation;
diff --git a/src/it/MCOMPILER-346/src/main/java/org/jenkinsci/test/acceptance/server/PooledJenkinsController.java b/src/it/MCOMPILER-346/src/main/java/org/jenkinsci/test/acceptance/server/PooledJenkinsController.java
index f7fbf61f..06706f90 100644
--- a/src/it/MCOMPILER-346/src/main/java/org/jenkinsci/test/acceptance/server/PooledJenkinsController.java
+++ b/src/it/MCOMPILER-346/src/main/java/org/jenkinsci/test/acceptance/server/PooledJenkinsController.java
@@ -1,5 +1,3 @@
-package org.jenkinsci.test.acceptance.server;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,8 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.jenkinsci.test.acceptance.server;
import javax.inject.Inject;
+
import java.io.File;
import java.io.IOException;
import java.net.URL;
@@ -27,23 +27,22 @@
import java.util.List;
import java.util.concurrent.Executors;
-import org.jenkinsci.remoting.RoleChecker;
-import org.jenkinsci.test.acceptance.controller.IJenkinsController;
-import org.jenkinsci.test.acceptance.controller.JenkinsController;
-import org.jenkinsci.test.acceptance.controller.LocalController.LocalFactoryImpl;
-import org.jenkinsci.test.acceptance.log.LogListenable;
-import org.jenkinsci.test.acceptance.log.LogListener;
-import org.jenkinsci.test.acceptance.log.LogSplitter;
-
import com.cloudbees.sdk.extensibility.Extension;
import com.google.inject.Injector;
-
import hudson.remoting.Callable;
import hudson.remoting.Channel;
import hudson.remoting.Channel.Mode;
import hudson.remoting.ChannelBuilder;
import jnr.unixsocket.UnixSocketAddress;
import jnr.unixsocket.UnixSocketChannel;
+import org.jenkinsci.remoting.RoleChecker;
+import org.jenkinsci.test.acceptance.controller.IJenkinsController;
+import org.jenkinsci.test.acceptance.controller.JenkinsController;
+import org.jenkinsci.test.acceptance.controller.LocalController.LocalFactoryImpl;
+import org.jenkinsci.test.acceptance.log.LogListenable;
+import org.jenkinsci.test.acceptance.log.LogListener;
+import org.jenkinsci.test.acceptance.log.LogSplitter;
+
import static java.lang.System.*;
/**
@@ -76,7 +75,7 @@ public void removeLogListener(LogListener l) {
}
private boolean connect() throws IOException {
- if (conn != null) return false;
+ if (conn != null) return false;
System.out.println("Requesting jut instance using socket " + socket.getAbsolutePath());
UnixSocketAddress address = new UnixSocketAddress(socket);
@@ -87,7 +86,7 @@ private boolean connect() throws IOException {
.build(ChannelStream.in(conn), ChannelStream.out(conn));
try {
- controller = (IJenkinsController)channel.waitForRemoteProperty("controller");
+ controller = (IJenkinsController) channel.waitForRemoteProperty("controller");
controller.start();
url = controller.getUrl();
@@ -96,7 +95,7 @@ private boolean connect() throws IOException {
}
final LogListener l = channel.export(LogListener.class, splitter);
- channel.call(new InstallLogger(controller,l));
+ channel.call(new InstallLogger(controller, l));
for (byte[] content : toUnpack) {
controller.populateJenkinsHome(content, false);
@@ -133,8 +132,7 @@ public void populateJenkinsHome(byte[] template, boolean clean) throws IOExcepti
@Override
public URL getUrl() {
- if (url==null)
- throw new IllegalStateException("This controller has not been started");
+ if (url == null) throw new IllegalStateException("This controller has not been started");
return url;
}
@@ -146,8 +144,7 @@ public void tearDown() throws IOException {
} catch (InterruptedException e) {
throw new IOException(e);
} finally {
- if (conn !=null)
- conn.close();
+ if (conn != null) conn.close();
conn = null;
}
}
@@ -156,7 +153,7 @@ public void tearDown() throws IOException {
public void diagnose(Throwable cause) {
// TODO: Report jenkins log
cause.printStackTrace(out);
- if(getenv("INTERACTIVE") != null && getenv("INTERACTIVE").equals("true")){
+ if (getenv("INTERACTIVE") != null && getenv("INTERACTIVE").equals("true")) {
out.println("Commencing interactive debugging. Browser session was kept open.");
out.println("Press return to proceed.");
try {
@@ -169,7 +166,8 @@ public void diagnose(Throwable cause) {
@Extension
public static class FactoryImpl extends LocalFactoryImpl {
- @Inject Injector i;
+ @Inject
+ Injector i;
@Override
public String getId() {
@@ -204,8 +202,7 @@ public Void call() throws IOException {
}
@Override
- public void checkRoles(RoleChecker checker) throws SecurityException {
- }
+ public void checkRoles(RoleChecker checker) throws SecurityException {}
private static final long serialVersionUID = 1L;
}
diff --git a/src/it/MCOMPILER-349_dependencyChanged/dependent-module/src/main/java/Main.java b/src/it/MCOMPILER-349_dependencyChanged/dependent-module/src/main/java/Main.java
index 1d0ba1f1..3f50a05e 100644
--- a/src/it/MCOMPILER-349_dependencyChanged/dependent-module/src/main/java/Main.java
+++ b/src/it/MCOMPILER-349_dependencyChanged/dependent-module/src/main/java/Main.java
@@ -18,11 +18,9 @@
*/
package foo;
-public class Main
-{
- public static void main( String[] args )
- {
+public class Main {
+ public static void main(String[] args) {
TestService testService = new TestService();
testService.run();
}
-}
\ No newline at end of file
+}
diff --git a/src/it/MCOMPILER-349_dependencyChanged/service/src/main/java/TestService.java b/src/it/MCOMPILER-349_dependencyChanged/service/src/main/java/TestService.java
index 2e1d747a..08e2016a 100644
--- a/src/it/MCOMPILER-349_dependencyChanged/service/src/main/java/TestService.java
+++ b/src/it/MCOMPILER-349_dependencyChanged/service/src/main/java/TestService.java
@@ -18,11 +18,7 @@
*/
package foo;
-public class TestService
-{
+public class TestService {
- public void run()
- {
-
- }
-}
\ No newline at end of file
+ public void run() {}
+}
diff --git a/src/it/MCOMPILER-349_dependencyChanged/verify.groovy b/src/it/MCOMPILER-349_dependencyChanged/verify.groovy
index c2182819..f09d28da 100644
--- a/src/it/MCOMPILER-349_dependencyChanged/verify.groovy
+++ b/src/it/MCOMPILER-349_dependencyChanged/verify.groovy
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
diff --git a/src/it/MCOMPILER-360/main360/src/main/java/module-info.java b/src/it/MCOMPILER-360/main360/src/main/java/module-info.java
index 2ad68325..084009f0 100644
--- a/src/it/MCOMPILER-360/main360/src/main/java/module-info.java
+++ b/src/it/MCOMPILER-360/main360/src/main/java/module-info.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -17,5 +17,4 @@
* under the License.
*/
-module org.maven.test.app {
-}
+module org.maven.test.app {}
diff --git a/src/it/MCOMPILER-366/src/main/java/module-info.java b/src/it/MCOMPILER-366/src/main/java/module-info.java
index 95e72665..543dc053 100644
--- a/src/it/MCOMPILER-366/src/main/java/module-info.java
+++ b/src/it/MCOMPILER-366/src/main/java/module-info.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-module lib
-{
+module lib {
requires plexus.utils;
requires plexus.resources;
+
exports org.maven.test;
-}
\ No newline at end of file
+}
diff --git a/src/it/MCOMPILER-366/src/main/java/org/maven/test/Main.java b/src/it/MCOMPILER-366/src/main/java/org/maven/test/Main.java
index f2c4a2fa..833bee54 100644
--- a/src/it/MCOMPILER-366/src/main/java/org/maven/test/Main.java
+++ b/src/it/MCOMPILER-366/src/main/java/org/maven/test/Main.java
@@ -1,5 +1,3 @@
-package org.maven.test;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,9 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.maven.test;
-import org.codehaus.plexus.util.StringUtils;
import org.codehaus.plexus.resource.ResourceManager;
+import org.codehaus.plexus.util.StringUtils;
public class Main {
@@ -28,7 +27,7 @@ public class Main {
* @param args
*/
public static void main(String[] args) {
- System.out.println( StringUtils.concatenate( args ) );
+ System.out.println(StringUtils.concatenate(args));
ResourceManager manager = null;
}
-}
\ No newline at end of file
+}
diff --git a/src/it/MCOMPILER-373_mrjar/src/main/java/org/maven/bug/A.java b/src/it/MCOMPILER-373_mrjar/src/main/java/org/maven/bug/A.java
index 03303316..7360b4a5 100644
--- a/src/it/MCOMPILER-373_mrjar/src/main/java/org/maven/bug/A.java
+++ b/src/it/MCOMPILER-373_mrjar/src/main/java/org/maven/bug/A.java
@@ -1,5 +1,3 @@
-package org.maven.bug;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,11 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.maven.bug;
-public class A
-{
- static int getCount()
- {
+public class A {
+ static int getCount() {
return 1;
}
}
diff --git a/src/it/MCOMPILER-373_mrjar/src/main/java/org/maven/bug/B.java b/src/it/MCOMPILER-373_mrjar/src/main/java/org/maven/bug/B.java
index e30f7296..aec29939 100644
--- a/src/it/MCOMPILER-373_mrjar/src/main/java/org/maven/bug/B.java
+++ b/src/it/MCOMPILER-373_mrjar/src/main/java/org/maven/bug/B.java
@@ -1,5 +1,3 @@
-package org.maven.bug;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,11 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.maven.bug;
-public class B
-{
- static int getCount()
- {
+public class B {
+ static int getCount() {
return A.getCount() + 1;
}
}
diff --git a/src/it/MCOMPILER-373_mrjar/src/main/java11/org/maven/bug/B.java b/src/it/MCOMPILER-373_mrjar/src/main/java11/org/maven/bug/B.java
index 8963f312..1797e69e 100644
--- a/src/it/MCOMPILER-373_mrjar/src/main/java11/org/maven/bug/B.java
+++ b/src/it/MCOMPILER-373_mrjar/src/main/java11/org/maven/bug/B.java
@@ -1,5 +1,3 @@
-package org.maven.bug;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,11 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.maven.bug;
-public class B
-{
- int getCount()
- {
+public class B {
+ int getCount() {
return A9.getCount() + 2;
}
}
diff --git a/src/it/MCOMPILER-373_mrjar/src/main/java9/org/maven/bug/A9.java b/src/it/MCOMPILER-373_mrjar/src/main/java9/org/maven/bug/A9.java
index 16fcc261..4b56281d 100644
--- a/src/it/MCOMPILER-373_mrjar/src/main/java9/org/maven/bug/A9.java
+++ b/src/it/MCOMPILER-373_mrjar/src/main/java9/org/maven/bug/A9.java
@@ -1,5 +1,3 @@
-package org.maven.bug;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,11 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.maven.bug;
-public class A9
-{
- static int getCount()
- {
+public class A9 {
+ static int getCount() {
return A.getCount() + 1;
}
}
diff --git a/src/it/MCOMPILER-373_mrjar/src/main/java9/org/maven/bug/B.java b/src/it/MCOMPILER-373_mrjar/src/main/java9/org/maven/bug/B.java
index cfb033b6..1e54a47e 100644
--- a/src/it/MCOMPILER-373_mrjar/src/main/java9/org/maven/bug/B.java
+++ b/src/it/MCOMPILER-373_mrjar/src/main/java9/org/maven/bug/B.java
@@ -1,5 +1,3 @@
-package org.maven.bug;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,11 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.maven.bug;
-public class B
-{
- static int getCount()
- {
+public class B {
+ static int getCount() {
return A9.getCount() + 1;
}
}
diff --git a/src/it/MCOMPILER-379/module2/src/main/java/com/natros/mcp/Foo.java b/src/it/MCOMPILER-379/module2/src/main/java/com/natros/mcp/Foo.java
index 7e6d55c2..c63e6e40 100644
--- a/src/it/MCOMPILER-379/module2/src/main/java/com/natros/mcp/Foo.java
+++ b/src/it/MCOMPILER-379/module2/src/main/java/com/natros/mcp/Foo.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,5 +18,4 @@
*/
package com.natros.mcp;
-public class Foo {
-}
+public class Foo {}
diff --git a/src/it/MCOMPILER-474_recompile-dependent-when-package/dependent-module/src/main/java/Main.java b/src/it/MCOMPILER-474_recompile-dependent-when-package/dependent-module/src/main/java/Main.java
index 14039917..3f50a05e 100644
--- a/src/it/MCOMPILER-474_recompile-dependent-when-package/dependent-module/src/main/java/Main.java
+++ b/src/it/MCOMPILER-474_recompile-dependent-when-package/dependent-module/src/main/java/Main.java
@@ -18,10 +18,8 @@
*/
package foo;
-public class Main
-{
- public static void main( String[] args )
- {
+public class Main {
+ public static void main(String[] args) {
TestService testService = new TestService();
testService.run();
}
diff --git a/src/it/MCOMPILER-474_recompile-dependent-when-package/service/src/main/java/TestService.java b/src/it/MCOMPILER-474_recompile-dependent-when-package/service/src/main/java/TestService.java
index 4fb1ade5..08e2016a 100644
--- a/src/it/MCOMPILER-474_recompile-dependent-when-package/service/src/main/java/TestService.java
+++ b/src/it/MCOMPILER-474_recompile-dependent-when-package/service/src/main/java/TestService.java
@@ -18,11 +18,7 @@
*/
package foo;
-public class TestService
-{
+public class TestService {
- public void run()
- {
-
- }
+ public void run() {}
}
diff --git a/src/it/MCOMPILER-474_recompile-dependent-when-package/verify.groovy b/src/it/MCOMPILER-474_recompile-dependent-when-package/verify.groovy
index 11789f72..e32f7a63 100644
--- a/src/it/MCOMPILER-474_recompile-dependent-when-package/verify.groovy
+++ b/src/it/MCOMPILER-474_recompile-dependent-when-package/verify.groovy
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
diff --git a/src/it/MCOMPILER-481-requires-static-included/app/src/main/java/org/test/app/Main.java b/src/it/MCOMPILER-481-requires-static-included/app/src/main/java/org/test/app/Main.java
index 6debb0cf..631169b8 100644
--- a/src/it/MCOMPILER-481-requires-static-included/app/src/main/java/org/test/app/Main.java
+++ b/src/it/MCOMPILER-481-requires-static-included/app/src/main/java/org/test/app/Main.java
@@ -1,5 +1,3 @@
-package org.test.app;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,7 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.test.app;
-public class Main
-{
-}
+public class Main {}
diff --git a/src/it/MCOMPILER-481-requires-static-included/app/src/test/java/org/test/app/MainTest.java b/src/it/MCOMPILER-481-requires-static-included/app/src/test/java/org/test/app/MainTest.java
index 9c220a88..216b3a9a 100644
--- a/src/it/MCOMPILER-481-requires-static-included/app/src/test/java/org/test/app/MainTest.java
+++ b/src/it/MCOMPILER-481-requires-static-included/app/src/test/java/org/test/app/MainTest.java
@@ -1,5 +1,3 @@
-package org.test.app;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,16 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.test.app;
import org.eclipse.jetty.util.ajax.JSON;
import org.junit.jupiter.api.Test;
import org.test.service.JSONService;
-public class MainTest
-{
+public class MainTest {
@Test
- public void test()
- {
+ public void test() {
JSON json = new JSONService().json;
System.err.println("json = " + json);
}
diff --git a/src/it/MCOMPILER-481-requires-static-included/service/src/main/java/org/test/service/JSONService.java b/src/it/MCOMPILER-481-requires-static-included/service/src/main/java/org/test/service/JSONService.java
index 0bca3de1..022fd19a 100644
--- a/src/it/MCOMPILER-481-requires-static-included/service/src/main/java/org/test/service/JSONService.java
+++ b/src/it/MCOMPILER-481-requires-static-included/service/src/main/java/org/test/service/JSONService.java
@@ -1,5 +1,3 @@
-package org.test.service;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.test.service;
import org.eclipse.jetty.util.ajax.JSON;
-public class JSONService extends Service
-{
+public class JSONService extends Service {
public final JSON json = new JSON();
}
diff --git a/src/it/MCOMPILER-481-requires-static-included/service/src/main/java/org/test/service/Service.java b/src/it/MCOMPILER-481-requires-static-included/service/src/main/java/org/test/service/Service.java
index 69b865f1..7bd21cf5 100644
--- a/src/it/MCOMPILER-481-requires-static-included/service/src/main/java/org/test/service/Service.java
+++ b/src/it/MCOMPILER-481-requires-static-included/service/src/main/java/org/test/service/Service.java
@@ -1,5 +1,3 @@
-package org.test.service;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,7 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.test.service;
-public abstract class Service
-{
-}
+public abstract class Service {}
diff --git a/src/it/MCOMPILER-485/src/main/java/dummy/HelloWorld.java b/src/it/MCOMPILER-485/src/main/java/dummy/HelloWorld.java
index cda1006a..7ceb91cb 100644
--- a/src/it/MCOMPILER-485/src/main/java/dummy/HelloWorld.java
+++ b/src/it/MCOMPILER-485/src/main/java/dummy/HelloWorld.java
@@ -1,5 +1,3 @@
-package dummy;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,11 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
+package dummy;
-
-public class HelloWorld
-{
- public static void main(String[] argv) {
- System.out.println("Hello World");
- }
+public class HelloWorld {
+ public static void main(String[] argv) {
+ System.out.println("Hello World");
+ }
}
diff --git a/src/it/MCOMPILER-485/src/main/java/dummy/package-info.java b/src/it/MCOMPILER-485/src/main/java/dummy/package-info.java
index ed72542b..9d2deff2 100644
--- a/src/it/MCOMPILER-485/src/main/java/dummy/package-info.java
+++ b/src/it/MCOMPILER-485/src/main/java/dummy/package-info.java
@@ -20,4 +20,4 @@
/**
* This is the package javadoc
*/
-package dummy;
\ No newline at end of file
+package dummy;
diff --git a/src/it/MCOMPILER-485/verify.groovy b/src/it/MCOMPILER-485/verify.groovy
index 2384fecd..d8ccdafe 100644
--- a/src/it/MCOMPILER-485/verify.groovy
+++ b/src/it/MCOMPILER-485/verify.groovy
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
diff --git a/src/it/MCOMPILER-495/src/main/java/dummy/package-info.java b/src/it/MCOMPILER-495/src/main/java/dummy/package-info.java
index ed72542b..9d2deff2 100644
--- a/src/it/MCOMPILER-495/src/main/java/dummy/package-info.java
+++ b/src/it/MCOMPILER-495/src/main/java/dummy/package-info.java
@@ -20,4 +20,4 @@
/**
* This is the package javadoc
*/
-package dummy;
\ No newline at end of file
+package dummy;
diff --git a/src/it/MCOMPILER-495/verify.groovy b/src/it/MCOMPILER-495/verify.groovy
index 2384fecd..d8ccdafe 100644
--- a/src/it/MCOMPILER-495/verify.groovy
+++ b/src/it/MCOMPILER-495/verify.groovy
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
diff --git a/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/Person.java b/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/Person.java
index e5fbf583..f07d0f37 100644
--- a/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/Person.java
+++ b/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/Person.java
@@ -1,5 +1,3 @@
-package dummy;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package dummy;
public class Person {
private long id;
diff --git a/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/foo/Person.java b/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/foo/Person.java
index 9b56c1d6..15d396d1 100644
--- a/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/foo/Person.java
+++ b/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/foo/Person.java
@@ -1,5 +1,3 @@
-package dummy.foo;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package dummy.foo;
public class Person {
private long id;
diff --git a/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/package-info.java b/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/package-info.java
index ed72542b..9d2deff2 100644
--- a/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/package-info.java
+++ b/src/it/MCOMPILER-500-package-info-incr/src/main/java/dummy/package-info.java
@@ -20,4 +20,4 @@
/**
* This is the package javadoc
*/
-package dummy;
\ No newline at end of file
+package dummy;
diff --git a/src/it/MCOMPILER-500-package-info-incr/verify.groovy b/src/it/MCOMPILER-500-package-info-incr/verify.groovy
index ecba9c29..ef41bdec 100644
--- a/src/it/MCOMPILER-500-package-info-incr/verify.groovy
+++ b/src/it/MCOMPILER-500-package-info-incr/verify.groovy
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
diff --git a/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-processor-dep-v1/src/main/java/mcompiler503/AnnotationProcessorDependencyV1.java b/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-processor-dep-v1/src/main/java/mcompiler503/AnnotationProcessorDependencyV1.java
index 3df98c47..35fe82b1 100644
--- a/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-processor-dep-v1/src/main/java/mcompiler503/AnnotationProcessorDependencyV1.java
+++ b/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-processor-dep-v1/src/main/java/mcompiler503/AnnotationProcessorDependencyV1.java
@@ -1,4 +1,3 @@
-package mcompiler503;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -17,7 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mcompiler503;
-public class AnnotationProcessorDependencyV1
-{
-}
\ No newline at end of file
+public class AnnotationProcessorDependencyV1 {}
diff --git a/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-processor-dep-v2/src/main/java/mcompiler503/AnnotationProcessorDependencyV2.java b/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-processor-dep-v2/src/main/java/mcompiler503/AnnotationProcessorDependencyV2.java
index 43f09f39..08c5067d 100644
--- a/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-processor-dep-v2/src/main/java/mcompiler503/AnnotationProcessorDependencyV2.java
+++ b/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-processor-dep-v2/src/main/java/mcompiler503/AnnotationProcessorDependencyV2.java
@@ -1,4 +1,3 @@
-package mcompiler503;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -17,7 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mcompiler503;
-public class AnnotationProcessorDependencyV2
-{
-}
\ No newline at end of file
+public class AnnotationProcessorDependencyV2 {}
diff --git a/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-processor/src/main/java/mcompiler503/SimpleAnnotationProcessor.java b/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-processor/src/main/java/mcompiler503/SimpleAnnotationProcessor.java
index 05f205c0..74c44a4b 100644
--- a/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-processor/src/main/java/mcompiler503/SimpleAnnotationProcessor.java
+++ b/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-processor/src/main/java/mcompiler503/SimpleAnnotationProcessor.java
@@ -1,4 +1,3 @@
-package mcompiler503;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -17,10 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-import java.io.IOException;
-import java.io.Writer;
-import java.util.Set;
+package mcompiler503;
import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.Filer;
@@ -37,43 +33,37 @@
import javax.tools.JavaFileObject;
import javax.tools.StandardLocation;
-@SupportedSourceVersion( SourceVersion.RELEASE_6 )
-@SupportedAnnotationTypes( "mcompiler503.SimpleAnnotation" )
-public class SimpleAnnotationProcessor
- extends AbstractProcessor
-{
+import java.io.IOException;
+import java.io.Writer;
+import java.util.Set;
+
+@SupportedSourceVersion(SourceVersion.RELEASE_6)
+@SupportedAnnotationTypes("mcompiler503.SimpleAnnotation")
+public class SimpleAnnotationProcessor extends AbstractProcessor {
@Override
- public boolean process( Set extends TypeElement> annotations, RoundEnvironment roundEnv )
- {
- if ( annotations.isEmpty() )
- {
+ public boolean process(Set extends TypeElement> annotations, RoundEnvironment roundEnv) {
+ if (annotations.isEmpty()) {
return true;
}
// assert that mcompiler503-annotation-processor-dep:2.0.0-SNAPSHOT is on the classpath
- try
- {
- getClass().getClassLoader().loadClass( "mcompiler503.AnnotationProcessorDependencyV2" );
- }
- catch ( ClassNotFoundException expected )
- {
- throw new RuntimeException( "Expected mcompiler503.AnnotationProcessorDependencyV2 to be on the"
+ try {
+ getClass().getClassLoader().loadClass("mcompiler503.AnnotationProcessorDependencyV2");
+ } catch (ClassNotFoundException expected) {
+ throw new RuntimeException("Expected mcompiler503.AnnotationProcessorDependencyV2 to be on the"
+ "processorpath, because mcompiler503-annotation-processor-dep:2.0.0-SNAPSHOT is specifically"
- + "configured as one the elements of the processorpath." );
+ + "configured as one the elements of the processorpath.");
}
// assert that mcompiler503-annotation-processor-dep:1.0.0-SNAPSHOT is NOT on the classpath,
// since it should be replaced by mcompiler503-annotation-processor-dep:2.0.0-SNAPSHOT
// when resolving annotation processors and their dependencies
- try
- {
- getClass().getClassLoader().loadClass( "mcompiler503.AnnotationProcessorDependencyV1" );
- throw new RuntimeException( "Expected a ClassNotFoundException, because "
- + "mcompiler503.AnnotationProcessorDependencyV1 is not supposed to be on the processorpath." );
- }
- catch ( ClassNotFoundException expected )
- {
+ try {
+ getClass().getClassLoader().loadClass("mcompiler503.AnnotationProcessorDependencyV1");
+ throw new RuntimeException("Expected a ClassNotFoundException, because "
+ + "mcompiler503.AnnotationProcessorDependencyV1 is not supposed to be on the processorpath.");
+ } catch (ClassNotFoundException expected) {
// expected.
}
@@ -81,38 +71,35 @@ public boolean process( Set extends TypeElement> annotations, RoundEnvironment
Elements elementUtils = processingEnv.getElementUtils();
- Set extends Element> elements = roundEnv.getElementsAnnotatedWith( annotations.iterator().next() );
+ Set extends Element> elements =
+ roundEnv.getElementsAnnotatedWith(annotations.iterator().next());
- for ( Element element : elements )
- {
+ for (Element element : elements) {
Name name = element.getSimpleName();
- PackageElement packageElement = elementUtils.getPackageOf( element );
+ PackageElement packageElement = elementUtils.getPackageOf(element);
- try
- {
+ try {
Name packageName = packageElement.getQualifiedName();
FileObject resource =
- filer.createResource( StandardLocation.SOURCE_OUTPUT, packageName, name + ".txt", element );
+ filer.createResource(StandardLocation.SOURCE_OUTPUT, packageName, name + ".txt", element);
Writer writer = resource.openWriter();
- writer.write( name.toString() );
+ writer.write(name.toString());
writer.close();
String className = name + "Companion";
- JavaFileObject javaFile = filer.createSourceFile( packageName + "." + className, element );
+ JavaFileObject javaFile = filer.createSourceFile(packageName + "." + className, element);
Writer javaWriter = javaFile.openWriter();
- javaWriter.append( "package " ).append( packageName ).append( ";\n\n" );
- javaWriter.append( "public class " ).append( className ).append( " {\n" );
- javaWriter.append( " public " ).append( className ).append( "() {\n" );
- javaWriter.append( " System.out.println(\"Hey there!\");\n" );
- javaWriter.append( " }\n}\n" );
+ javaWriter.append("package ").append(packageName).append(";\n\n");
+ javaWriter.append("public class ").append(className).append(" {\n");
+ javaWriter.append(" public ").append(className).append("() {\n");
+ javaWriter.append(" System.out.println(\"Hey there!\");\n");
+ javaWriter.append(" }\n}\n");
javaWriter.close();
- }
- catch ( IOException e )
- {
- throw new RuntimeException( e );
+ } catch (IOException e) {
+ throw new RuntimeException(e);
}
}
diff --git a/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-user/src/main/java/mcompiler503/SimpleAnnotation.java b/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-user/src/main/java/mcompiler503/SimpleAnnotation.java
index 72649385..40846cd5 100644
--- a/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-user/src/main/java/mcompiler503/SimpleAnnotation.java
+++ b/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-user/src/main/java/mcompiler503/SimpleAnnotation.java
@@ -1,4 +1,3 @@
-package mcompiler503;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -17,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mcompiler503;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
@@ -25,6 +25,4 @@
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
-public @interface SimpleAnnotation
-{
-}
+public @interface SimpleAnnotation {}
diff --git a/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-user/src/main/java/mcompiler503/SimpleObject.java b/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-user/src/main/java/mcompiler503/SimpleObject.java
index faa913f6..954d70e6 100644
--- a/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-user/src/main/java/mcompiler503/SimpleObject.java
+++ b/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-user/src/main/java/mcompiler503/SimpleObject.java
@@ -1,4 +1,3 @@
-package mcompiler503;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -17,8 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mcompiler503;
@SimpleAnnotation
-public class SimpleObject
-{
-}
+public class SimpleObject {}
diff --git a/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-user/src/test/java/mcompiler503/SimpleTestObject.java b/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-user/src/test/java/mcompiler503/SimpleTestObject.java
index 5c47d303..43640f43 100644
--- a/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-user/src/test/java/mcompiler503/SimpleTestObject.java
+++ b/src/it/MCOMPILER-503-processorpath-duplicated-deps/annotation-user/src/test/java/mcompiler503/SimpleTestObject.java
@@ -1,4 +1,3 @@
-package mcompiler503;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -17,8 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mcompiler503;
@SimpleAnnotation
-public class SimpleTestObject
-{
-}
+public class SimpleTestObject {}
diff --git a/src/it/MCOMPILER-512/src/main/java/dummy/Main.java b/src/it/MCOMPILER-512/src/main/java/dummy/Main.java
index 7b36fb73..09cdacc5 100644
--- a/src/it/MCOMPILER-512/src/main/java/dummy/Main.java
+++ b/src/it/MCOMPILER-512/src/main/java/dummy/Main.java
@@ -1,5 +1,3 @@
-package dummy;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,15 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
+package dummy;
import javax.smartcardio.TerminalFactory;
-public class Main
-{
+public class Main {
- public static void main(String[] args)
- {
- TerminalFactory tf = TerminalFactory.getDefault();
+ public static void main(String[] args) {
+ TerminalFactory tf = TerminalFactory.getDefault();
}
-
}
diff --git a/src/it/MCOMPILER-512/src/test/java/dummy/Test.java b/src/it/MCOMPILER-512/src/test/java/dummy/Test.java
index a0cc02cf..eb7058cd 100644
--- a/src/it/MCOMPILER-512/src/test/java/dummy/Test.java
+++ b/src/it/MCOMPILER-512/src/test/java/dummy/Test.java
@@ -1,5 +1,3 @@
-package dummy;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,13 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
+package dummy;
import javax.smartcardio.TerminalFactory;
-public class Test
-{
- public void test()
- {
- TerminalFactory tf = TerminalFactory.getDefault();
+public class Test {
+ public void test() {
+ TerminalFactory tf = TerminalFactory.getDefault();
}
}
diff --git a/src/it/MCOMPILER-522-unresolvable-dependency/src/main/java/org/apache.maven.plugins.compiler.it/SimpleAnnotation.java b/src/it/MCOMPILER-522-unresolvable-dependency/src/main/java/org/apache.maven.plugins.compiler.it/SimpleAnnotation.java
index 0c79335f..f84e9d09 100644
--- a/src/it/MCOMPILER-522-unresolvable-dependency/src/main/java/org/apache.maven.plugins.compiler.it/SimpleAnnotation.java
+++ b/src/it/MCOMPILER-522-unresolvable-dependency/src/main/java/org/apache.maven.plugins.compiler.it/SimpleAnnotation.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.apache.maven.plugins.compiler.it;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
@@ -26,7 +25,4 @@
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
-public @interface SimpleAnnotation
-{
-
-}
+public @interface SimpleAnnotation {}
diff --git a/src/it/MCOMPILER-522-unresolvable-dependency/src/main/java/org/apache.maven.plugins.compiler.it/SimpleObject.java b/src/it/MCOMPILER-522-unresolvable-dependency/src/main/java/org/apache.maven.plugins.compiler.it/SimpleObject.java
index 5d8760e5..9f507195 100644
--- a/src/it/MCOMPILER-522-unresolvable-dependency/src/main/java/org/apache.maven.plugins.compiler.it/SimpleObject.java
+++ b/src/it/MCOMPILER-522-unresolvable-dependency/src/main/java/org/apache.maven.plugins.compiler.it/SimpleObject.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,9 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.apache.maven.plugins.compiler.it;
@SimpleAnnotation
-public class SimpleObject
-{
-
-}
+public class SimpleObject {}
diff --git a/src/it/automodules-application/src/main/java/module-info.java b/src/it/automodules-application/src/main/java/module-info.java
index 047359df..cd75a746 100644
--- a/src/it/automodules-application/src/main/java/module-info.java
+++ b/src/it/automodules-application/src/main/java/module-info.java
@@ -1,22 +1,21 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-module app
-{
- requires plexus.utils;
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+module app {
+ requires plexus.utils;
+}
diff --git a/src/it/automodules-application/src/main/java/org/maven/test/Main.java b/src/it/automodules-application/src/main/java/org/maven/test/Main.java
index eea50369..76cd55e4 100644
--- a/src/it/automodules-application/src/main/java/org/maven/test/Main.java
+++ b/src/it/automodules-application/src/main/java/org/maven/test/Main.java
@@ -1,32 +1,31 @@
-package org.maven.test;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import org.codehaus.plexus.util.StringUtils;
-
-public class Main {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
- System.out.println( StringUtils.concatenate( args ) );
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.maven.test;
+
+import org.codehaus.plexus.util.StringUtils;
+
+public class Main {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ System.out.println(StringUtils.concatenate(args));
+ }
+}
diff --git a/src/it/automodules-library/src/main/java/module-info.java b/src/it/automodules-library/src/main/java/module-info.java
index 17205e31..ace11219 100644
--- a/src/it/automodules-library/src/main/java/module-info.java
+++ b/src/it/automodules-library/src/main/java/module-info.java
@@ -1,24 +1,23 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-module lib
-{
- requires plexus.utils;
-
- exports org.maven.test;
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+module lib {
+ requires plexus.utils;
+
+ exports org.maven.test;
+}
diff --git a/src/it/automodules-library/src/main/java/org/maven/test/Main.java b/src/it/automodules-library/src/main/java/org/maven/test/Main.java
index 463feac7..76cd55e4 100644
--- a/src/it/automodules-library/src/main/java/org/maven/test/Main.java
+++ b/src/it/automodules-library/src/main/java/org/maven/test/Main.java
@@ -1,32 +1,31 @@
-package org.maven.test;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import org.codehaus.plexus.util.StringUtils;
-
-public class Main {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
- System.out.println( StringUtils.concatenate( args ) );
- }
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.maven.test;
+
+import org.codehaus.plexus.util.StringUtils;
+
+public class Main {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ System.out.println(StringUtils.concatenate(args));
+ }
+}
diff --git a/src/it/automodules-manifest/src/main/java/module-info.java b/src/it/automodules-manifest/src/main/java/module-info.java
index 5bd017f6..684f7e3b 100644
--- a/src/it/automodules-manifest/src/main/java/module-info.java
+++ b/src/it/automodules-manifest/src/main/java/module-info.java
@@ -1,22 +1,21 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-module app
-{
- requires com.ta3;
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+module app {
+ requires com.ta3;
+}
diff --git a/src/it/automodules-manifest/src/main/java/org/maven/test/Main.java b/src/it/automodules-manifest/src/main/java/org/maven/test/Main.java
index b81a7208..642ee05f 100644
--- a/src/it/automodules-manifest/src/main/java/org/maven/test/Main.java
+++ b/src/it/automodules-manifest/src/main/java/org/maven/test/Main.java
@@ -1,28 +1,25 @@
-package org.maven.test;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class Main
-{
- public static void main( String[] args )
- {
- System.out.println( com.ta3.MyClass.class.getName() );
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.maven.test;
+
+public class Main {
+ public static void main(String[] args) {
+ System.out.println(com.ta3.MyClass.class.getName());
+ }
+}
diff --git a/src/it/automodules-transitive-module/src/main/java/module-info.java b/src/it/automodules-transitive-module/src/main/java/module-info.java
index 17205e31..ace11219 100644
--- a/src/it/automodules-transitive-module/src/main/java/module-info.java
+++ b/src/it/automodules-transitive-module/src/main/java/module-info.java
@@ -1,24 +1,23 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-module lib
-{
- requires plexus.utils;
-
- exports org.maven.test;
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+module lib {
+ requires plexus.utils;
+
+ exports org.maven.test;
+}
diff --git a/src/it/automodules-transitive-module/src/main/java/org/maven/test/Main.java b/src/it/automodules-transitive-module/src/main/java/org/maven/test/Main.java
index 463feac7..76cd55e4 100644
--- a/src/it/automodules-transitive-module/src/main/java/org/maven/test/Main.java
+++ b/src/it/automodules-transitive-module/src/main/java/org/maven/test/Main.java
@@ -1,32 +1,31 @@
-package org.maven.test;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import org.codehaus.plexus.util.StringUtils;
-
-public class Main {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
- System.out.println( StringUtils.concatenate( args ) );
- }
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.maven.test;
+
+import org.codehaus.plexus.util.StringUtils;
+
+public class Main {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ System.out.println(StringUtils.concatenate(args));
+ }
+}
diff --git a/src/it/default-fork-windows/src/main/java/MyClass.java b/src/it/default-fork-windows/src/main/java/MyClass.java
index 90a93702..d4132bb2 100644
--- a/src/it/default-fork-windows/src/main/java/MyClass.java
+++ b/src/it/default-fork-windows/src/main/java/MyClass.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,4 @@
*/
package foo;
-public class MyClass
-{
-
-}
+public class MyClass {}
diff --git a/src/it/default-fork-windows/src/test/java/MyTest.java b/src/it/default-fork-windows/src/test/java/MyTest.java
index 33d41784..77db4f1d 100644
--- a/src/it/default-fork-windows/src/test/java/MyTest.java
+++ b/src/it/default-fork-windows/src/test/java/MyTest.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -20,8 +20,4 @@
import junit.framework.TestCase;
-public class MyTest
- extends TestCase
-{
-
-}
+public class MyTest extends TestCase {}
diff --git a/src/it/default-fork/src/main/java/MyClass.java b/src/it/default-fork/src/main/java/MyClass.java
index 90a93702..d4132bb2 100644
--- a/src/it/default-fork/src/main/java/MyClass.java
+++ b/src/it/default-fork/src/main/java/MyClass.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,4 @@
*/
package foo;
-public class MyClass
-{
-
-}
+public class MyClass {}
diff --git a/src/it/default-fork/src/test/java/MyTest.java b/src/it/default-fork/src/test/java/MyTest.java
index 33d41784..77db4f1d 100644
--- a/src/it/default-fork/src/test/java/MyTest.java
+++ b/src/it/default-fork/src/test/java/MyTest.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -20,8 +20,4 @@
import junit.framework.TestCase;
-public class MyTest
- extends TestCase
-{
-
-}
+public class MyTest extends TestCase {}
diff --git a/src/it/default-incremental-disable/src/main/java/foo/MyClass.java b/src/it/default-incremental-disable/src/main/java/foo/MyClass.java
index 90a93702..d4132bb2 100644
--- a/src/it/default-incremental-disable/src/main/java/foo/MyClass.java
+++ b/src/it/default-incremental-disable/src/main/java/foo/MyClass.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,4 @@
*/
package foo;
-public class MyClass
-{
-
-}
+public class MyClass {}
diff --git a/src/it/default-incremental-disable/src/test/java/foo/MyTest.java b/src/it/default-incremental-disable/src/test/java/foo/MyTest.java
index 33d41784..77db4f1d 100644
--- a/src/it/default-incremental-disable/src/test/java/foo/MyTest.java
+++ b/src/it/default-incremental-disable/src/test/java/foo/MyTest.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -20,8 +20,4 @@
import junit.framework.TestCase;
-public class MyTest
- extends TestCase
-{
-
-}
+public class MyTest extends TestCase {}
diff --git a/src/it/default/src/main/java/MyClass.java b/src/it/default/src/main/java/MyClass.java
index 90a93702..d4132bb2 100644
--- a/src/it/default/src/main/java/MyClass.java
+++ b/src/it/default/src/main/java/MyClass.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,4 @@
*/
package foo;
-public class MyClass
-{
-
-}
+public class MyClass {}
diff --git a/src/it/default/src/test/java/MyTest.java b/src/it/default/src/test/java/MyTest.java
index 33d41784..77db4f1d 100644
--- a/src/it/default/src/test/java/MyTest.java
+++ b/src/it/default/src/test/java/MyTest.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -20,8 +20,4 @@
import junit.framework.TestCase;
-public class MyTest
- extends TestCase
-{
-
-}
+public class MyTest extends TestCase {}
diff --git a/src/it/groovy-project-with-new-plexus-compiler/verify.groovy b/src/it/groovy-project-with-new-plexus-compiler/verify.groovy
index 500f7f96..4ea3c478 100644
--- a/src/it/groovy-project-with-new-plexus-compiler/verify.groovy
+++ b/src/it/groovy-project-with-new-plexus-compiler/verify.groovy
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
diff --git a/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.java b/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.java
index d1ecf61c..1fa3d8cf 100644
--- a/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.java
+++ b/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.java
@@ -1,5 +1,3 @@
-package org.apache.maven.it0055;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,19 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.apache.maven.it0055;
-
-public class Person
-{
+public class Person {
private String name;
-
- public void setName( String name )
- {
+
+ public void setName(String name) {
this.name = name;
}
-
- public String getName()
- {
+
+ public String getName() {
return name;
}
}
diff --git a/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.java b/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.java
index 7f1914b6..8bb36452 100644
--- a/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.java
+++ b/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.java
@@ -1,5 +1,3 @@
-package org.apache.maven.it0055;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,19 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.apache.maven.it0055;
-
-public class PersonTwo
-{
+public class PersonTwo {
private String name;
-
- public void setName( String name )
- {
+
+ public void setName(String name) {
this.name = name;
}
-
- public String getName()
- {
+
+ public String getName() {
return name;
}
}
diff --git a/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java b/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java
index c8c40ed0..f3601658 100644
--- a/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java
+++ b/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java
@@ -1,5 +1,3 @@
-package org.apache.maven.it0055;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,19 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.it0055;
import junit.framework.TestCase;
-public class PersonTest
- extends TestCase
-{
- public void testPerson()
- {
+public class PersonTest extends TestCase {
+ public void testPerson() {
Person person = new Person();
-
- person.setName( "foo" );
-
- assertEquals( "foo", person.getName() );
+
+ person.setName("foo");
+
+ assertEquals("foo", person.getName());
}
}
diff --git a/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java b/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java
index 6a51799c..a9096ee3 100644
--- a/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java
+++ b/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java
@@ -1,5 +1,3 @@
-package org.apache.maven.it0055;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,19 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.apache.maven.it0055;
import junit.framework.TestCase;
-public class PersonTwoTest
- extends TestCase
-{
- public void testPerson()
- {
+public class PersonTwoTest extends TestCase {
+ public void testPerson() {
Person person = new Person();
-
- person.setName( "foo" );
-
- assertEquals( "foo", person.getName() );
+
+ person.setName("foo");
+
+ assertEquals("foo", person.getName());
}
}
diff --git a/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/App.java b/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/App.java
index 814edb98..41ebecd3 100644
--- a/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/App.java
+++ b/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/App.java
@@ -1,5 +1,3 @@
-package com.mycompany.jdk16annotation;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,16 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package com.mycompany.jdk16annotation;
/**
* Hello world!
*
*/
-public class App
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
+public class App {
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
}
}
diff --git a/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProvider.java b/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProvider.java
index b87cc680..a7921fdb 100644
--- a/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProvider.java
+++ b/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProvider.java
@@ -1,5 +1,3 @@
-package com.mycompany.jdk16annotation;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,19 +16,19 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package com.mycompany.jdk16annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
-
-
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.TYPE)
public @interface ServiceProvider {
Class> service();
+
int position() default Integer.MAX_VALUE;
+
String path() default "";
}
diff --git a/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProviderProcessor.java b/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProviderProcessor.java
index 8f39d10c..f5777e90 100644
--- a/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProviderProcessor.java
+++ b/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProviderProcessor.java
@@ -1,5 +1,3 @@
-package com.mycompany.jdk16annotation;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,33 +16,31 @@
* specific language governing permissions and limitations
* under the License.
*/
+package com.mycompany.jdk16annotation;
-
-import java.io.IOException;
-import java.io.OutputStream;
-import java.io.OutputStreamWriter;
-import java.io.PrintWriter;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedSourceVersion;
import javax.lang.model.SourceVersion;
import javax.lang.model.element.Element;
import javax.lang.model.element.TypeElement;
-
import javax.tools.Diagnostic.Kind;
import javax.tools.FileObject;
import javax.tools.StandardLocation;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.io.OutputStreamWriter;
+import java.io.PrintWriter;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
@SupportedSourceVersion(SourceVersion.RELEASE_6)
public class ServiceProviderProcessor extends AbstractProcessor {
public @Override Set getSupportedAnnotationTypes() {
- return new HashSet(Arrays.asList(
- ServiceProvider.class.getCanonicalName()
- ));
+ return new HashSet(Arrays.asList(ServiceProvider.class.getCanonicalName()));
}
/** public for ServiceLoader */
@@ -61,14 +57,18 @@ public boolean process(Set extends TypeElement> annotations, RoundEnvironment
} else {
return true;
}
-
}
private void writeServices() {
try {
- FileObject out = processingEnv.getFiler().createResource(StandardLocation.CLASS_OUTPUT, "", "META-INF/one",new Element[0]);
+ FileObject out = processingEnv
+ .getFiler()
+ .createResource(StandardLocation.CLASS_OUTPUT, "", "META-INF/one", new Element[0]);
OutputStream os = out.openOutputStream();
- OutputStream os2 = processingEnv.getFiler().createSourceFile("org.Milos", new Element[0]).openOutputStream();
+ OutputStream os2 = processingEnv
+ .getFiler()
+ .createSourceFile("org.Milos", new Element[0])
+ .openOutputStream();
OutputStreamWriter osr = new OutputStreamWriter(os2);
try {
PrintWriter w = new PrintWriter(new OutputStreamWriter(os, "UTF-8"));
@@ -82,10 +82,8 @@ private void writeServices() {
os.close();
}
-
} catch (IOException x) {
processingEnv.getMessager().printMessage(Kind.ERROR, "Failed to write to one: " + x.toString());
}
}
-
}
diff --git a/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppTest.java b/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppTest.java
index 9faeebec..63bde8ed 100644
--- a/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppTest.java
+++ b/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppTest.java
@@ -1,5 +1,3 @@
-package com.mycompany.jdk16annotation;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package com.mycompany.jdk16annotation;
import junit.framework.Test;
import junit.framework.TestCase;
@@ -27,33 +25,28 @@
/**
* Unit test for simple App.
*/
-@ServiceProvider(service=App.class, path="xxx", position=1)
-public class AppTest
- extends TestCase
-{
+@ServiceProvider(service = App.class, path = "xxx", position = 1)
+public class AppTest extends TestCase {
/**
* Create the test case
*
* @param testName name of the test case
*/
- public AppTest( String testName )
- {
- super( testName );
+ public AppTest(String testName) {
+ super(testName);
}
/**
* @return the suite of tests being tested
*/
- public static Test suite()
- {
- return new TestSuite( AppTest.class );
+ public static Test suite() {
+ return new TestSuite(AppTest.class);
}
/**
* Rigourous Test :-)
*/
- public void testApp()
- {
- assertTrue( true );
+ public void testApp() {
+ assertTrue(true);
}
}
diff --git a/src/it/jdk9-exportsto/bar/src/main/java/module-info.java b/src/it/jdk9-exportsto/bar/src/main/java/module-info.java
index 22d23765..5cdec552 100644
--- a/src/it/jdk9-exportsto/bar/src/main/java/module-info.java
+++ b/src/it/jdk9-exportsto/bar/src/main/java/module-info.java
@@ -1,22 +1,22 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-module bar {
- requires foo;
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+module bar {
+ requires foo;
+}
diff --git a/src/it/jdk9-exportsto/foo/src/main/java/foo/Foo.java b/src/it/jdk9-exportsto/foo/src/main/java/foo/Foo.java
index 156976c8..0fd6b804 100644
--- a/src/it/jdk9-exportsto/foo/src/main/java/foo/Foo.java
+++ b/src/it/jdk9-exportsto/foo/src/main/java/foo/Foo.java
@@ -1,22 +1,21 @@
-package foo;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class Foo {}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package foo;
+
+public class Foo {}
diff --git a/src/it/jdk9-exportsto/foo/src/main/java/module-info.java b/src/it/jdk9-exportsto/foo/src/main/java/module-info.java
index 17d226f2..48dd5786 100644
--- a/src/it/jdk9-exportsto/foo/src/main/java/module-info.java
+++ b/src/it/jdk9-exportsto/foo/src/main/java/module-info.java
@@ -1,22 +1,23 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-module foo {
- exports foo to bar;
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+module foo {
+ exports foo to
+ bar;
+}
diff --git a/src/it/jpms_add-exports/src/main/java/module-info.java b/src/it/jpms_add-exports/src/main/java/module-info.java
index c48284ef..cfa968a8 100644
--- a/src/it/jpms_add-exports/src/main/java/module-info.java
+++ b/src/it/jpms_add-exports/src/main/java/module-info.java
@@ -1,22 +1,19 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-module app
-{
-
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+module app {}
diff --git a/src/it/jpms_add-exports/src/main/java/org/maven/test/Main.java b/src/it/jpms_add-exports/src/main/java/org/maven/test/Main.java
index 51d5c4a6..8fab0b26 100644
--- a/src/it/jpms_add-exports/src/main/java/org/maven/test/Main.java
+++ b/src/it/jpms_add-exports/src/main/java/org/maven/test/Main.java
@@ -1,36 +1,33 @@
-package org.maven.test;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class Main {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
- try {
- Class.forName( "jdk.internal.util.Preconditions" ).newInstance();
- }
- catch ( Exception e )
- {
- // noop
- }
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.maven.test;
+
+public class Main {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ try {
+ Class.forName("jdk.internal.util.Preconditions").newInstance();
+ } catch (Exception e) {
+ // noop
+ }
+ }
+}
diff --git a/src/it/jpms_compile-main-empty-test-bar/src/test/java/bar/BarTests.java b/src/it/jpms_compile-main-empty-test-bar/src/test/java/bar/BarTests.java
index 872ca40f..2316ac32 100644
--- a/src/it/jpms_compile-main-empty-test-bar/src/test/java/bar/BarTests.java
+++ b/src/it/jpms_compile-main-empty-test-bar/src/test/java/bar/BarTests.java
@@ -19,15 +19,14 @@
package bar;
import javax.script.*;
+
import org.junit.jupiter.api.*;
-class BarTests
-{
+class BarTests {
@Test
- void scripting() throws ScriptException
- {
+ void scripting() throws ScriptException {
ScriptEngineManager factory = new ScriptEngineManager();
- ScriptEngine engine = factory.getEngineByName( "JavaScript" );
- Assertions.assertDoesNotThrow​( () -> engine.eval( "print('Hello, World')" ), "Script evaluation failed!" );
+ ScriptEngine engine = factory.getEngineByName("JavaScript");
+ Assertions.assertDoesNotThrow(() -> engine.eval("print('Hello, World')"), "Script evaluation failed!");
}
}
diff --git a/src/it/jpms_compile-main-empty-test-bar/src/test/java/module-info.java b/src/it/jpms_compile-main-empty-test-bar/src/test/java/module-info.java
index ed157adf..55840434 100644
--- a/src/it/jpms_compile-main-empty-test-bar/src/test/java/module-info.java
+++ b/src/it/jpms_compile-main-empty-test-bar/src/test/java/module-info.java
@@ -17,8 +17,7 @@
* under the License.
*/
-open module bar
-{
+open module bar {
requires java.scripting;
requires org.junit.jupiter.api;
}
diff --git a/src/it/jpms_compile-main-foo-test-bar/src/main/java/foo/Foo.java b/src/it/jpms_compile-main-foo-test-bar/src/main/java/foo/Foo.java
index efcf8221..f361b016 100644
--- a/src/it/jpms_compile-main-foo-test-bar/src/main/java/foo/Foo.java
+++ b/src/it/jpms_compile-main-foo-test-bar/src/main/java/foo/Foo.java
@@ -16,15 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-
package foo;
import org.apache.commons.lang3.*;
-public class Foo
-{
- public Foo()
- {
- System.out.println( StringUtils.swapCase( "fOO" ) + " created!" );
+public class Foo {
+ public Foo() {
+ System.out.println(StringUtils.swapCase("fOO") + " created!");
}
}
diff --git a/src/it/jpms_compile-main-foo-test-bar/src/main/java/module-info.java b/src/it/jpms_compile-main-foo-test-bar/src/main/java/module-info.java
index ec0bd80f..fd24faa4 100644
--- a/src/it/jpms_compile-main-foo-test-bar/src/main/java/module-info.java
+++ b/src/it/jpms_compile-main-foo-test-bar/src/main/java/module-info.java
@@ -17,8 +17,8 @@
* under the License.
*/
-module foo
-{
+module foo {
requires org.apache.commons.lang3;
+
exports foo;
}
diff --git a/src/it/jpms_compile-main-foo-test-bar/src/test/java/bar/BarTests.java b/src/it/jpms_compile-main-foo-test-bar/src/test/java/bar/BarTests.java
index 25d48191..60ba2856 100644
--- a/src/it/jpms_compile-main-foo-test-bar/src/test/java/bar/BarTests.java
+++ b/src/it/jpms_compile-main-foo-test-bar/src/test/java/bar/BarTests.java
@@ -21,18 +21,15 @@
import foo.*;
import org.junit.jupiter.api.*;
-class BarTests
-{
+class BarTests {
@Test
- void constructor()
- {
- Assertions.assertNotNull( new Foo() );
+ void constructor() {
+ Assertions.assertNotNull(new Foo());
}
@Test
- void moduleNameIsFoo()
- {
- Assertions.assertTrue( Foo.class.getModule().isNamed(), "Foo resides in a named module" );
- Assertions.assertEquals( "foo", Foo.class.getModule().getName() );
+ void moduleNameIsFoo() {
+ Assertions.assertTrue(Foo.class.getModule().isNamed(), "Foo resides in a named module");
+ Assertions.assertEquals("foo", Foo.class.getModule().getName());
}
}
diff --git a/src/it/jpms_compile-main-foo-test-bar/src/test/java/module-info.java b/src/it/jpms_compile-main-foo-test-bar/src/test/java/module-info.java
index ed971d40..9bd6f9c1 100644
--- a/src/it/jpms_compile-main-foo-test-bar/src/test/java/module-info.java
+++ b/src/it/jpms_compile-main-foo-test-bar/src/test/java/module-info.java
@@ -17,8 +17,7 @@
* under the License.
*/
-open module bar
-{
+open module bar {
requires foo;
requires java.scripting;
requires org.junit.jupiter.api;
diff --git a/src/it/jpms_compile-main-foo-test-foo/src/main/java/foo/Foo.java b/src/it/jpms_compile-main-foo-test-foo/src/main/java/foo/Foo.java
index 8d00c098..5e99dc28 100644
--- a/src/it/jpms_compile-main-foo-test-foo/src/main/java/foo/Foo.java
+++ b/src/it/jpms_compile-main-foo-test-foo/src/main/java/foo/Foo.java
@@ -16,15 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-
package foo;
import org.apache.commons.lang3.*;
-class Foo
-{
- Foo()
- {
- System.out.println( StringUtils.swapCase( "fOO" ) + " created!" );
+class Foo {
+ Foo() {
+ System.out.println(StringUtils.swapCase("fOO") + " created!");
}
}
diff --git a/src/it/jpms_compile-main-foo-test-foo/src/main/java/module-info.java b/src/it/jpms_compile-main-foo-test-foo/src/main/java/module-info.java
index dbd4fea8..84db0b19 100644
--- a/src/it/jpms_compile-main-foo-test-foo/src/main/java/module-info.java
+++ b/src/it/jpms_compile-main-foo-test-foo/src/main/java/module-info.java
@@ -17,7 +17,6 @@
* under the License.
*/
-module foo
-{
+module foo {
requires org.apache.commons.lang3;
}
diff --git a/src/it/jpms_compile-main-foo-test-foo/src/test/java/foo/FooTests.java b/src/it/jpms_compile-main-foo-test-foo/src/test/java/foo/FooTests.java
index 78d1ae1c..98fb088f 100644
--- a/src/it/jpms_compile-main-foo-test-foo/src/test/java/foo/FooTests.java
+++ b/src/it/jpms_compile-main-foo-test-foo/src/test/java/foo/FooTests.java
@@ -20,18 +20,15 @@
import org.junit.jupiter.api.*;
-class FooTests
-{
+class FooTests {
@Test
- void constructor()
- {
- Assertions.assertNotNull( new Foo() );
+ void constructor() {
+ Assertions.assertNotNull(new Foo());
}
@Test
- void moduleNameIsFoo()
- {
- Assertions.assertTrue( Foo.class.getModule().isNamed(), "Foo resides in a named module" );
- Assertions.assertEquals( "foo", Foo.class.getModule().getName() );
+ void moduleNameIsFoo() {
+ Assertions.assertTrue(Foo.class.getModule().isNamed(), "Foo resides in a named module");
+ Assertions.assertEquals("foo", Foo.class.getModule().getName());
}
}
diff --git a/src/it/jpms_compile-main-foo-test-foo/src/test/java/module-info.java b/src/it/jpms_compile-main-foo-test-foo/src/test/java/module-info.java
index 1196f176..38ecd13f 100644
--- a/src/it/jpms_compile-main-foo-test-foo/src/test/java/module-info.java
+++ b/src/it/jpms_compile-main-foo-test-foo/src/test/java/module-info.java
@@ -17,8 +17,7 @@
* under the License.
*/
-open module foo
-{
+open module foo {
// main
requires org.apache.commons.lang3;
diff --git a/src/it/jpms_patch-module/src/main/java/module-info.java b/src/it/jpms_patch-module/src/main/java/module-info.java
index c48284ef..cfa968a8 100644
--- a/src/it/jpms_patch-module/src/main/java/module-info.java
+++ b/src/it/jpms_patch-module/src/main/java/module-info.java
@@ -1,22 +1,19 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-module app
-{
-
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+module app {}
diff --git a/src/it/jpms_patch-module/src/main/java/org/maven/test/Main.java b/src/it/jpms_patch-module/src/main/java/org/maven/test/Main.java
index 51d5c4a6..8fab0b26 100644
--- a/src/it/jpms_patch-module/src/main/java/org/maven/test/Main.java
+++ b/src/it/jpms_patch-module/src/main/java/org/maven/test/Main.java
@@ -1,36 +1,33 @@
-package org.maven.test;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class Main {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
- try {
- Class.forName( "jdk.internal.util.Preconditions" ).newInstance();
- }
- catch ( Exception e )
- {
- // noop
- }
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.maven.test;
+
+public class Main {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ try {
+ Class.forName("jdk.internal.util.Preconditions").newInstance();
+ } catch (Exception e) {
+ // noop
+ }
+ }
+}
diff --git a/src/it/jpms_patch-module/src/test/java/org/maven/test/MainTest.java b/src/it/jpms_patch-module/src/test/java/org/maven/test/MainTest.java
index a6fd3af5..dbcfba6f 100644
--- a/src/it/jpms_patch-module/src/test/java/org/maven/test/MainTest.java
+++ b/src/it/jpms_patch-module/src/test/java/org/maven/test/MainTest.java
@@ -1,30 +1,29 @@
-package org.maven.test;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class MainTest {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
- Main.main( args );
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.maven.test;
+
+public class MainTest {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ Main.main(args);
+ }
+}
diff --git a/src/it/mcompiler-106/src/main/java/MyClass.java b/src/it/mcompiler-106/src/main/java/MyClass.java
index 90a93702..d4132bb2 100644
--- a/src/it/mcompiler-106/src/main/java/MyClass.java
+++ b/src/it/mcompiler-106/src/main/java/MyClass.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,4 @@
*/
package foo;
-public class MyClass
-{
-
-}
+public class MyClass {}
diff --git a/src/it/mcompiler-120/src/main/java/org/maven/test/Main.java b/src/it/mcompiler-120/src/main/java/org/maven/test/Main.java
index 695e93d1..4298c7eb 100644
--- a/src/it/mcompiler-120/src/main/java/org/maven/test/Main.java
+++ b/src/it/mcompiler-120/src/main/java/org/maven/test/Main.java
@@ -1,5 +1,3 @@
-package org.maven.test;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,12 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.maven.test;
import java.util.ArrayList;
import java.util.List;
-
-
public class Main {
/**
* @param args
diff --git a/src/it/mcompiler-120/verify.groovy b/src/it/mcompiler-120/verify.groovy
index c04959f6..cd6ef26e 100644
--- a/src/it/mcompiler-120/verify.groovy
+++ b/src/it/mcompiler-120/verify.groovy
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
diff --git a/src/it/mcompiler-135/src/main/java/MyClass.java b/src/it/mcompiler-135/src/main/java/MyClass.java
index 90a93702..d4132bb2 100644
--- a/src/it/mcompiler-135/src/main/java/MyClass.java
+++ b/src/it/mcompiler-135/src/main/java/MyClass.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,4 @@
*/
package foo;
-public class MyClass
-{
-
-}
+public class MyClass {}
diff --git a/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java b/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java
index bfa8aafc..386f9fed 100644
--- a/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java
+++ b/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java
@@ -1,5 +1,3 @@
-package org.maven.test;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -8,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+package org.maven.test;
import java.util.ArrayList;
import java.util.List;
diff --git a/src/it/mcompiler-182/src/main/java/BeanA.java b/src/it/mcompiler-182/src/main/java/BeanA.java
index aa6a35ee..c53e6bd6 100644
--- a/src/it/mcompiler-182/src/main/java/BeanA.java
+++ b/src/it/mcompiler-182/src/main/java/BeanA.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -23,7 +23,7 @@
*/
public class BeanA {
- private int i,y;
+ private int i, y;
public int getI() {
return i;
diff --git a/src/it/mcompiler-182/src/main/java/BeanA2.java b/src/it/mcompiler-182/src/main/java/BeanA2.java
index 42731363..076a1fc2 100644
--- a/src/it/mcompiler-182/src/main/java/BeanA2.java
+++ b/src/it/mcompiler-182/src/main/java/BeanA2.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/src/it/mcompiler-182/verify.groovy b/src/it/mcompiler-182/verify.groovy
index fdff21e0..40cb317c 100644
--- a/src/it/mcompiler-182/verify.groovy
+++ b/src/it/mcompiler-182/verify.groovy
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
diff --git a/src/it/mcompiler-21_class-remove/src/main/java/BeanA.java b/src/it/mcompiler-21_class-remove/src/main/java/BeanA.java
index aa6a35ee..c53e6bd6 100644
--- a/src/it/mcompiler-21_class-remove/src/main/java/BeanA.java
+++ b/src/it/mcompiler-21_class-remove/src/main/java/BeanA.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -23,7 +23,7 @@
*/
public class BeanA {
- private int i,y;
+ private int i, y;
public int getI() {
return i;
diff --git a/src/it/mcompiler-21_class-remove/src/main/java/BeanA2.java b/src/it/mcompiler-21_class-remove/src/main/java/BeanA2.java
index 42731363..076a1fc2 100644
--- a/src/it/mcompiler-21_class-remove/src/main/java/BeanA2.java
+++ b/src/it/mcompiler-21_class-remove/src/main/java/BeanA2.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/src/it/mcompiler-21_class-remove/verify.groovy b/src/it/mcompiler-21_class-remove/verify.groovy
index 306622da..3e4f8d17 100644
--- a/src/it/mcompiler-21_class-remove/verify.groovy
+++ b/src/it/mcompiler-21_class-remove/verify.groovy
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
diff --git a/src/it/mcompiler-21_methodname-change/src/main/java/BeanA.java b/src/it/mcompiler-21_methodname-change/src/main/java/BeanA.java
index aa6a35ee..c53e6bd6 100644
--- a/src/it/mcompiler-21_methodname-change/src/main/java/BeanA.java
+++ b/src/it/mcompiler-21_methodname-change/src/main/java/BeanA.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -23,7 +23,7 @@
*/
public class BeanA {
- private int i,y;
+ private int i, y;
public int getI() {
return i;
diff --git a/src/it/mcompiler-21_methodname-change/src/main/java/BeanA2.java b/src/it/mcompiler-21_methodname-change/src/main/java/BeanA2.java
index 42731363..076a1fc2 100644
--- a/src/it/mcompiler-21_methodname-change/src/main/java/BeanA2.java
+++ b/src/it/mcompiler-21_methodname-change/src/main/java/BeanA2.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/src/it/mcompiler-21_methodname-change/verify.groovy b/src/it/mcompiler-21_methodname-change/verify.groovy
index 306622da..3e4f8d17 100644
--- a/src/it/mcompiler-21_methodname-change/verify.groovy
+++ b/src/it/mcompiler-21_methodname-change/verify.groovy
@@ -1,4 +1,3 @@
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
diff --git a/src/it/multirelease-patterns/multimodule/multirelease-base/src/main/java/base/Base.java b/src/it/multirelease-patterns/multimodule/multirelease-base/src/main/java/base/Base.java
index 513f9099..19ec7d8f 100644
--- a/src/it/multirelease-patterns/multimodule/multirelease-base/src/main/java/base/Base.java
+++ b/src/it/multirelease-patterns/multimodule/multirelease-base/src/main/java/base/Base.java
@@ -1,5 +1,3 @@
-package base;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package base;
public class Base {
diff --git a/src/it/multirelease-patterns/multimodule/multirelease-base/src/main/java/mr/A.java b/src/it/multirelease-patterns/multimodule/multirelease-base/src/main/java/mr/A.java
index 6c2eb86b..0e48eee6 100644
--- a/src/it/multirelease-patterns/multimodule/multirelease-base/src/main/java/mr/A.java
+++ b/src/it/multirelease-patterns/multimodule/multirelease-base/src/main/java/mr/A.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mr;
import base.Base;
-public class A implements I
-{
+public class A implements I {
public static String getString() {
return Base.get() + " -> 8";
}
-
+
@Override
public Class> introducedClass() {
return java.time.LocalDateTime.class;
diff --git a/src/it/multirelease-patterns/multimodule/multirelease-base/src/main/java/mr/I.java b/src/it/multirelease-patterns/multimodule/multirelease-base/src/main/java/mr/I.java
index f9858cfc..a0523266 100644
--- a/src/it/multirelease-patterns/multimodule/multirelease-base/src/main/java/mr/I.java
+++ b/src/it/multirelease-patterns/multimodule/multirelease-base/src/main/java/mr/I.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,8 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mr;
-public interface I
-{
+public interface I {
Class> introducedClass();
-}
\ No newline at end of file
+}
diff --git a/src/it/multirelease-patterns/multimodule/multirelease-base/src/test/java/mr/ATest.java b/src/it/multirelease-patterns/multimodule/multirelease-base/src/test/java/mr/ATest.java
index cca71135..c5ba719e 100644
--- a/src/it/multirelease-patterns/multimodule/multirelease-base/src/test/java/mr/ATest.java
+++ b/src/it/multirelease-patterns/multimodule/multirelease-base/src/test/java/mr/ATest.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,37 +16,35 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-import static org.junit.Assert.assertThat;
-import static org.junit.Assume.assumeThat;
-import static org.hamcrest.CoreMatchers.is;
+package mr;
import org.junit.Ignore;
import org.junit.Test;
+import static org.hamcrest.CoreMatchers.is;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assume.assumeThat;
+
public class ATest {
-
- private static final String javaVersion = System.getProperty( "java.version" );
-
+
+ private static final String javaVersion = System.getProperty("java.version");
+
@Test
- public void testGet8() throws Exception
- {
-// assumeThat( javaVersion, is( "8" ) );
-
- assertThat( A.getString(), is( "BASE -> 8" ) );
+ public void testGet8() throws Exception {
+ // assumeThat( javaVersion, is( "8" ) );
+
+ assertThat(A.getString(), is("BASE -> 8"));
- assertThat( new A().introducedClass().getName(), is( "java.time.LocalDateTime" ) );
+ assertThat(new A().introducedClass().getName(), is("java.time.LocalDateTime"));
}
-
+
@Test
- @Ignore( "Maven module only creates Java 8 classes" )
- public void testGet9() throws Exception
- {
- assumeThat( javaVersion, is( "9" ) );
+ @Ignore("Maven module only creates Java 8 classes")
+ public void testGet9() throws Exception {
+ assumeThat(javaVersion, is("9"));
- assertThat( A.getString(), is( "BASE -> 9" ) );
+ assertThat(A.getString(), is("BASE -> 9"));
- assertThat( new A().introducedClass().getName(), is( "java.lang.Module" ) );
+ assertThat(new A().introducedClass().getName(), is("java.lang.Module"));
}
-
-}
\ No newline at end of file
+}
diff --git a/src/it/multirelease-patterns/multimodule/multirelease-nine/src/main/java/mr/A.java b/src/it/multirelease-patterns/multimodule/multirelease-nine/src/main/java/mr/A.java
index e2b9598e..5083e1ce 100644
--- a/src/it/multirelease-patterns/multimodule/multirelease-nine/src/main/java/mr/A.java
+++ b/src/it/multirelease-patterns/multimodule/multirelease-nine/src/main/java/mr/A.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,17 +16,17 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-import base.Base;
+package mr;
import java.util.Optional;
-public class A implements I
-{
+import base.Base;
+
+public class A implements I {
public static String getString() {
- return Base.get() + " -> " + Optional.of( "9" ).get();
+ return Base.get() + " -> " + Optional.of("9").get();
}
-
+
@Override
public Class> introducedClass() {
return Module.class;
diff --git a/src/it/multirelease-patterns/multimodule/multirelease-nine/src/test/java/mr/ATest.java b/src/it/multirelease-patterns/multimodule/multirelease-nine/src/test/java/mr/ATest.java
index ef26fe6d..c86fc468 100644
--- a/src/it/multirelease-patterns/multimodule/multirelease-nine/src/test/java/mr/ATest.java
+++ b/src/it/multirelease-patterns/multimodule/multirelease-nine/src/test/java/mr/ATest.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,37 +16,35 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-import static org.junit.Assert.assertThat;
-import static org.junit.Assume.assumeThat;
-import static org.hamcrest.CoreMatchers.is;
+package mr;
import org.junit.Ignore;
import org.junit.Test;
+import static org.hamcrest.CoreMatchers.is;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assume.assumeThat;
+
public class ATest {
-
- private static final String javaVersion = System.getProperty( "java.version" );
-
+
+ private static final String javaVersion = System.getProperty("java.version");
+
@Test
- @Ignore( "Maven module only creates Java 9 classes" )
- public void testGet8() throws Exception
- {
- assumeThat( javaVersion, is( "8" ) );
-
- assertThat( A.getString(), is( "BASE -> 8" ) );
-
- assertThat( new A().introducedClass().getName(), is( "java.time.LocalDateTime" ) );
+ @Ignore("Maven module only creates Java 9 classes")
+ public void testGet8() throws Exception {
+ assumeThat(javaVersion, is("8"));
+
+ assertThat(A.getString(), is("BASE -> 8"));
+
+ assertThat(new A().introducedClass().getName(), is("java.time.LocalDateTime"));
}
-
+
@Test
- public void testGet9() throws Exception
- {
-// assumeThat( javaVersion, is( "9" ) );
+ public void testGet9() throws Exception {
+ // assumeThat( javaVersion, is( "9" ) );
- assertThat( A.getString(), is( "BASE -> 9" ) );
+ assertThat(A.getString(), is("BASE -> 9"));
- assertThat( new A().introducedClass().getName(), is( "java.lang.Module" ) );
+ assertThat(new A().introducedClass().getName(), is("java.lang.Module"));
}
-
-}
\ No newline at end of file
+}
diff --git a/src/it/multirelease-patterns/multiproject/multirelease-base/src/main/java/base/Base.java b/src/it/multirelease-patterns/multiproject/multirelease-base/src/main/java/base/Base.java
index 513f9099..19ec7d8f 100644
--- a/src/it/multirelease-patterns/multiproject/multirelease-base/src/main/java/base/Base.java
+++ b/src/it/multirelease-patterns/multiproject/multirelease-base/src/main/java/base/Base.java
@@ -1,5 +1,3 @@
-package base;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package base;
public class Base {
diff --git a/src/it/multirelease-patterns/multiproject/multirelease-base/src/main/java/mr/A.java b/src/it/multirelease-patterns/multiproject/multirelease-base/src/main/java/mr/A.java
index 6c2eb86b..0e48eee6 100644
--- a/src/it/multirelease-patterns/multiproject/multirelease-base/src/main/java/mr/A.java
+++ b/src/it/multirelease-patterns/multiproject/multirelease-base/src/main/java/mr/A.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mr;
import base.Base;
-public class A implements I
-{
+public class A implements I {
public static String getString() {
return Base.get() + " -> 8";
}
-
+
@Override
public Class> introducedClass() {
return java.time.LocalDateTime.class;
diff --git a/src/it/multirelease-patterns/multiproject/multirelease-base/src/main/java/mr/I.java b/src/it/multirelease-patterns/multiproject/multirelease-base/src/main/java/mr/I.java
index f9858cfc..a0523266 100644
--- a/src/it/multirelease-patterns/multiproject/multirelease-base/src/main/java/mr/I.java
+++ b/src/it/multirelease-patterns/multiproject/multirelease-base/src/main/java/mr/I.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,8 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mr;
-public interface I
-{
+public interface I {
Class> introducedClass();
-}
\ No newline at end of file
+}
diff --git a/src/it/multirelease-patterns/multiproject/multirelease-base/src/test/java/mr/ATest.java b/src/it/multirelease-patterns/multiproject/multirelease-base/src/test/java/mr/ATest.java
index cca71135..c5ba719e 100644
--- a/src/it/multirelease-patterns/multiproject/multirelease-base/src/test/java/mr/ATest.java
+++ b/src/it/multirelease-patterns/multiproject/multirelease-base/src/test/java/mr/ATest.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,37 +16,35 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-import static org.junit.Assert.assertThat;
-import static org.junit.Assume.assumeThat;
-import static org.hamcrest.CoreMatchers.is;
+package mr;
import org.junit.Ignore;
import org.junit.Test;
+import static org.hamcrest.CoreMatchers.is;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assume.assumeThat;
+
public class ATest {
-
- private static final String javaVersion = System.getProperty( "java.version" );
-
+
+ private static final String javaVersion = System.getProperty("java.version");
+
@Test
- public void testGet8() throws Exception
- {
-// assumeThat( javaVersion, is( "8" ) );
-
- assertThat( A.getString(), is( "BASE -> 8" ) );
+ public void testGet8() throws Exception {
+ // assumeThat( javaVersion, is( "8" ) );
+
+ assertThat(A.getString(), is("BASE -> 8"));
- assertThat( new A().introducedClass().getName(), is( "java.time.LocalDateTime" ) );
+ assertThat(new A().introducedClass().getName(), is("java.time.LocalDateTime"));
}
-
+
@Test
- @Ignore( "Maven module only creates Java 8 classes" )
- public void testGet9() throws Exception
- {
- assumeThat( javaVersion, is( "9" ) );
+ @Ignore("Maven module only creates Java 8 classes")
+ public void testGet9() throws Exception {
+ assumeThat(javaVersion, is("9"));
- assertThat( A.getString(), is( "BASE -> 9" ) );
+ assertThat(A.getString(), is("BASE -> 9"));
- assertThat( new A().introducedClass().getName(), is( "java.lang.Module" ) );
+ assertThat(new A().introducedClass().getName(), is("java.lang.Module"));
}
-
-}
\ No newline at end of file
+}
diff --git a/src/it/multirelease-patterns/multiproject/multirelease-nine/src/main/java/mr/A.java b/src/it/multirelease-patterns/multiproject/multirelease-nine/src/main/java/mr/A.java
index e2b9598e..5083e1ce 100644
--- a/src/it/multirelease-patterns/multiproject/multirelease-nine/src/main/java/mr/A.java
+++ b/src/it/multirelease-patterns/multiproject/multirelease-nine/src/main/java/mr/A.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,17 +16,17 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-import base.Base;
+package mr;
import java.util.Optional;
-public class A implements I
-{
+import base.Base;
+
+public class A implements I {
public static String getString() {
- return Base.get() + " -> " + Optional.of( "9" ).get();
+ return Base.get() + " -> " + Optional.of("9").get();
}
-
+
@Override
public Class> introducedClass() {
return Module.class;
diff --git a/src/it/multirelease-patterns/multiproject/multirelease-nine/src/test/java/mr/ATest.java b/src/it/multirelease-patterns/multiproject/multirelease-nine/src/test/java/mr/ATest.java
index ef26fe6d..c86fc468 100644
--- a/src/it/multirelease-patterns/multiproject/multirelease-nine/src/test/java/mr/ATest.java
+++ b/src/it/multirelease-patterns/multiproject/multirelease-nine/src/test/java/mr/ATest.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,37 +16,35 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-import static org.junit.Assert.assertThat;
-import static org.junit.Assume.assumeThat;
-import static org.hamcrest.CoreMatchers.is;
+package mr;
import org.junit.Ignore;
import org.junit.Test;
+import static org.hamcrest.CoreMatchers.is;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assume.assumeThat;
+
public class ATest {
-
- private static final String javaVersion = System.getProperty( "java.version" );
-
+
+ private static final String javaVersion = System.getProperty("java.version");
+
@Test
- @Ignore( "Maven module only creates Java 9 classes" )
- public void testGet8() throws Exception
- {
- assumeThat( javaVersion, is( "8" ) );
-
- assertThat( A.getString(), is( "BASE -> 8" ) );
-
- assertThat( new A().introducedClass().getName(), is( "java.time.LocalDateTime" ) );
+ @Ignore("Maven module only creates Java 9 classes")
+ public void testGet8() throws Exception {
+ assumeThat(javaVersion, is("8"));
+
+ assertThat(A.getString(), is("BASE -> 8"));
+
+ assertThat(new A().introducedClass().getName(), is("java.time.LocalDateTime"));
}
-
+
@Test
- public void testGet9() throws Exception
- {
-// assumeThat( javaVersion, is( "9" ) );
+ public void testGet9() throws Exception {
+ // assumeThat( javaVersion, is( "9" ) );
- assertThat( A.getString(), is( "BASE -> 9" ) );
+ assertThat(A.getString(), is("BASE -> 9"));
- assertThat( new A().introducedClass().getName(), is( "java.lang.Module" ) );
+ assertThat(new A().introducedClass().getName(), is("java.lang.Module"));
}
-
-}
\ No newline at end of file
+}
diff --git a/src/it/multirelease-patterns/packaging-plugin/src/main/java-mr/9/module-info.java b/src/it/multirelease-patterns/packaging-plugin/src/main/java-mr/9/module-info.java
index 2407e6b1..36f00e07 100644
--- a/src/it/multirelease-patterns/packaging-plugin/src/main/java-mr/9/module-info.java
+++ b/src/it/multirelease-patterns/packaging-plugin/src/main/java-mr/9/module-info.java
@@ -16,8 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-module example.mrjar
-{
- exports base;
- exports mr;
+module example.mrjar {
+ exports base;
+ exports mr;
}
diff --git a/src/it/multirelease-patterns/packaging-plugin/src/main/java-mr/9/mr/A.java b/src/it/multirelease-patterns/packaging-plugin/src/main/java-mr/9/mr/A.java
index e2b9598e..5083e1ce 100644
--- a/src/it/multirelease-patterns/packaging-plugin/src/main/java-mr/9/mr/A.java
+++ b/src/it/multirelease-patterns/packaging-plugin/src/main/java-mr/9/mr/A.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,17 +16,17 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-import base.Base;
+package mr;
import java.util.Optional;
-public class A implements I
-{
+import base.Base;
+
+public class A implements I {
public static String getString() {
- return Base.get() + " -> " + Optional.of( "9" ).get();
+ return Base.get() + " -> " + Optional.of("9").get();
}
-
+
@Override
public Class> introducedClass() {
return Module.class;
diff --git a/src/it/multirelease-patterns/packaging-plugin/src/main/java/base/Base.java b/src/it/multirelease-patterns/packaging-plugin/src/main/java/base/Base.java
index 513f9099..19ec7d8f 100644
--- a/src/it/multirelease-patterns/packaging-plugin/src/main/java/base/Base.java
+++ b/src/it/multirelease-patterns/packaging-plugin/src/main/java/base/Base.java
@@ -1,5 +1,3 @@
-package base;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package base;
public class Base {
diff --git a/src/it/multirelease-patterns/packaging-plugin/src/main/java/mr/A.java b/src/it/multirelease-patterns/packaging-plugin/src/main/java/mr/A.java
index 6c2eb86b..0e48eee6 100644
--- a/src/it/multirelease-patterns/packaging-plugin/src/main/java/mr/A.java
+++ b/src/it/multirelease-patterns/packaging-plugin/src/main/java/mr/A.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mr;
import base.Base;
-public class A implements I
-{
+public class A implements I {
public static String getString() {
return Base.get() + " -> 8";
}
-
+
@Override
public Class> introducedClass() {
return java.time.LocalDateTime.class;
diff --git a/src/it/multirelease-patterns/packaging-plugin/src/main/java/mr/I.java b/src/it/multirelease-patterns/packaging-plugin/src/main/java/mr/I.java
index f9858cfc..a0523266 100644
--- a/src/it/multirelease-patterns/packaging-plugin/src/main/java/mr/I.java
+++ b/src/it/multirelease-patterns/packaging-plugin/src/main/java/mr/I.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,8 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mr;
-public interface I
-{
+public interface I {
Class> introducedClass();
-}
\ No newline at end of file
+}
diff --git a/src/it/multirelease-patterns/packaging-plugin/src/test/java/mr/ATest.java b/src/it/multirelease-patterns/packaging-plugin/src/test/java/mr/ATest.java
index 07a207ca..510fb1c4 100644
--- a/src/it/multirelease-patterns/packaging-plugin/src/test/java/mr/ATest.java
+++ b/src/it/multirelease-patterns/packaging-plugin/src/test/java/mr/ATest.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,35 +16,33 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mr;
+import org.junit.Test;
+
+import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assume.assumeThat;
-import static org.hamcrest.CoreMatchers.is;
-
-import org.junit.Test;
public class ATest {
-
- private static final String javaVersion = System.getProperty( "java.version" );
-
+
+ private static final String javaVersion = System.getProperty("java.version");
+
@Test
- public void testGet8() throws Exception
- {
- assumeThat( javaVersion, is( "8" ) );
-
- assertThat( A.getString(), is( "BASE -> 8" ) );
+ public void testGet8() throws Exception {
+ assumeThat(javaVersion, is("8"));
- assertThat( new A().introducedClass().getName(), is( "java.time.LocalDateTime" ) );
+ assertThat(A.getString(), is("BASE -> 8"));
+
+ assertThat(new A().introducedClass().getName(), is("java.time.LocalDateTime"));
}
-
+
@Test
- public void testGet9() throws Exception
- {
- assumeThat( javaVersion, is( "9" ) );
+ public void testGet9() throws Exception {
+ assumeThat(javaVersion, is("9"));
- assertThat( A.getString(), is( "BASE -> 9" ) );
+ assertThat(A.getString(), is("BASE -> 9"));
- assertThat( new A().introducedClass().getName(), is( "java.lang.Module" ) );
+ assertThat(new A().introducedClass().getName(), is("java.lang.Module"));
}
-
-}
\ No newline at end of file
+}
diff --git a/src/it/multirelease-patterns/singleproject-runtime/src/main/java/base/Base.java b/src/it/multirelease-patterns/singleproject-runtime/src/main/java/base/Base.java
index 513f9099..19ec7d8f 100644
--- a/src/it/multirelease-patterns/singleproject-runtime/src/main/java/base/Base.java
+++ b/src/it/multirelease-patterns/singleproject-runtime/src/main/java/base/Base.java
@@ -1,5 +1,3 @@
-package base;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package base;
public class Base {
diff --git a/src/it/multirelease-patterns/singleproject-runtime/src/main/java/mr/A.java b/src/it/multirelease-patterns/singleproject-runtime/src/main/java/mr/A.java
index 6c2eb86b..0e48eee6 100644
--- a/src/it/multirelease-patterns/singleproject-runtime/src/main/java/mr/A.java
+++ b/src/it/multirelease-patterns/singleproject-runtime/src/main/java/mr/A.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mr;
import base.Base;
-public class A implements I
-{
+public class A implements I {
public static String getString() {
return Base.get() + " -> 8";
}
-
+
@Override
public Class> introducedClass() {
return java.time.LocalDateTime.class;
diff --git a/src/it/multirelease-patterns/singleproject-runtime/src/main/java/mr/I.java b/src/it/multirelease-patterns/singleproject-runtime/src/main/java/mr/I.java
index f9858cfc..a0523266 100644
--- a/src/it/multirelease-patterns/singleproject-runtime/src/main/java/mr/I.java
+++ b/src/it/multirelease-patterns/singleproject-runtime/src/main/java/mr/I.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,8 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mr;
-public interface I
-{
+public interface I {
Class> introducedClass();
-}
\ No newline at end of file
+}
diff --git a/src/it/multirelease-patterns/singleproject-runtime/src/main/java9/module-info.java b/src/it/multirelease-patterns/singleproject-runtime/src/main/java9/module-info.java
index 2407e6b1..36f00e07 100644
--- a/src/it/multirelease-patterns/singleproject-runtime/src/main/java9/module-info.java
+++ b/src/it/multirelease-patterns/singleproject-runtime/src/main/java9/module-info.java
@@ -16,8 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-module example.mrjar
-{
- exports base;
- exports mr;
+module example.mrjar {
+ exports base;
+ exports mr;
}
diff --git a/src/it/multirelease-patterns/singleproject-runtime/src/main/java9/mr/A.java b/src/it/multirelease-patterns/singleproject-runtime/src/main/java9/mr/A.java
index e2b9598e..5083e1ce 100644
--- a/src/it/multirelease-patterns/singleproject-runtime/src/main/java9/mr/A.java
+++ b/src/it/multirelease-patterns/singleproject-runtime/src/main/java9/mr/A.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,17 +16,17 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-import base.Base;
+package mr;
import java.util.Optional;
-public class A implements I
-{
+import base.Base;
+
+public class A implements I {
public static String getString() {
- return Base.get() + " -> " + Optional.of( "9" ).get();
+ return Base.get() + " -> " + Optional.of("9").get();
}
-
+
@Override
public Class> introducedClass() {
return Module.class;
diff --git a/src/it/multirelease-patterns/singleproject-runtime/src/test/java/mr/ATest.java b/src/it/multirelease-patterns/singleproject-runtime/src/test/java/mr/ATest.java
index 07a207ca..510fb1c4 100644
--- a/src/it/multirelease-patterns/singleproject-runtime/src/test/java/mr/ATest.java
+++ b/src/it/multirelease-patterns/singleproject-runtime/src/test/java/mr/ATest.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,35 +16,33 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mr;
+import org.junit.Test;
+
+import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assume.assumeThat;
-import static org.hamcrest.CoreMatchers.is;
-
-import org.junit.Test;
public class ATest {
-
- private static final String javaVersion = System.getProperty( "java.version" );
-
+
+ private static final String javaVersion = System.getProperty("java.version");
+
@Test
- public void testGet8() throws Exception
- {
- assumeThat( javaVersion, is( "8" ) );
-
- assertThat( A.getString(), is( "BASE -> 8" ) );
+ public void testGet8() throws Exception {
+ assumeThat(javaVersion, is("8"));
- assertThat( new A().introducedClass().getName(), is( "java.time.LocalDateTime" ) );
+ assertThat(A.getString(), is("BASE -> 8"));
+
+ assertThat(new A().introducedClass().getName(), is("java.time.LocalDateTime"));
}
-
+
@Test
- public void testGet9() throws Exception
- {
- assumeThat( javaVersion, is( "9" ) );
+ public void testGet9() throws Exception {
+ assumeThat(javaVersion, is("9"));
- assertThat( A.getString(), is( "BASE -> 9" ) );
+ assertThat(A.getString(), is("BASE -> 9"));
- assertThat( new A().introducedClass().getName(), is( "java.lang.Module" ) );
+ assertThat(new A().introducedClass().getName(), is("java.lang.Module"));
}
-
-}
\ No newline at end of file
+}
diff --git a/src/it/multirelease-patterns/singleproject-toolchains/src/main/java/base/Base.java b/src/it/multirelease-patterns/singleproject-toolchains/src/main/java/base/Base.java
index 513f9099..19ec7d8f 100644
--- a/src/it/multirelease-patterns/singleproject-toolchains/src/main/java/base/Base.java
+++ b/src/it/multirelease-patterns/singleproject-toolchains/src/main/java/base/Base.java
@@ -1,5 +1,3 @@
-package base;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package base;
public class Base {
diff --git a/src/it/multirelease-patterns/singleproject-toolchains/src/main/java/mr/A.java b/src/it/multirelease-patterns/singleproject-toolchains/src/main/java/mr/A.java
index 6c2eb86b..0e48eee6 100644
--- a/src/it/multirelease-patterns/singleproject-toolchains/src/main/java/mr/A.java
+++ b/src/it/multirelease-patterns/singleproject-toolchains/src/main/java/mr/A.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mr;
import base.Base;
-public class A implements I
-{
+public class A implements I {
public static String getString() {
return Base.get() + " -> 8";
}
-
+
@Override
public Class> introducedClass() {
return java.time.LocalDateTime.class;
diff --git a/src/it/multirelease-patterns/singleproject-toolchains/src/main/java/mr/I.java b/src/it/multirelease-patterns/singleproject-toolchains/src/main/java/mr/I.java
index f9858cfc..a0523266 100644
--- a/src/it/multirelease-patterns/singleproject-toolchains/src/main/java/mr/I.java
+++ b/src/it/multirelease-patterns/singleproject-toolchains/src/main/java/mr/I.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,8 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mr;
-public interface I
-{
+public interface I {
Class> introducedClass();
-}
\ No newline at end of file
+}
diff --git a/src/it/multirelease-patterns/singleproject-toolchains/src/main/java9/module-info.java b/src/it/multirelease-patterns/singleproject-toolchains/src/main/java9/module-info.java
index 2407e6b1..36f00e07 100644
--- a/src/it/multirelease-patterns/singleproject-toolchains/src/main/java9/module-info.java
+++ b/src/it/multirelease-patterns/singleproject-toolchains/src/main/java9/module-info.java
@@ -16,8 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-module example.mrjar
-{
- exports base;
- exports mr;
+module example.mrjar {
+ exports base;
+ exports mr;
}
diff --git a/src/it/multirelease-patterns/singleproject-toolchains/src/main/java9/mr/A.java b/src/it/multirelease-patterns/singleproject-toolchains/src/main/java9/mr/A.java
index e2b9598e..5083e1ce 100644
--- a/src/it/multirelease-patterns/singleproject-toolchains/src/main/java9/mr/A.java
+++ b/src/it/multirelease-patterns/singleproject-toolchains/src/main/java9/mr/A.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,17 +16,17 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-import base.Base;
+package mr;
import java.util.Optional;
-public class A implements I
-{
+import base.Base;
+
+public class A implements I {
public static String getString() {
- return Base.get() + " -> " + Optional.of( "9" ).get();
+ return Base.get() + " -> " + Optional.of("9").get();
}
-
+
@Override
public Class> introducedClass() {
return Module.class;
diff --git a/src/it/multirelease-patterns/singleproject-toolchains/src/test/java/mr/ATest.java b/src/it/multirelease-patterns/singleproject-toolchains/src/test/java/mr/ATest.java
index 07a207ca..510fb1c4 100644
--- a/src/it/multirelease-patterns/singleproject-toolchains/src/test/java/mr/ATest.java
+++ b/src/it/multirelease-patterns/singleproject-toolchains/src/test/java/mr/ATest.java
@@ -1,5 +1,3 @@
-package mr;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,35 +16,33 @@
* specific language governing permissions and limitations
* under the License.
*/
+package mr;
+import org.junit.Test;
+
+import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assume.assumeThat;
-import static org.hamcrest.CoreMatchers.is;
-
-import org.junit.Test;
public class ATest {
-
- private static final String javaVersion = System.getProperty( "java.version" );
-
+
+ private static final String javaVersion = System.getProperty("java.version");
+
@Test
- public void testGet8() throws Exception
- {
- assumeThat( javaVersion, is( "8" ) );
-
- assertThat( A.getString(), is( "BASE -> 8" ) );
+ public void testGet8() throws Exception {
+ assumeThat(javaVersion, is("8"));
- assertThat( new A().introducedClass().getName(), is( "java.time.LocalDateTime" ) );
+ assertThat(A.getString(), is("BASE -> 8"));
+
+ assertThat(new A().introducedClass().getName(), is("java.time.LocalDateTime"));
}
-
+
@Test
- public void testGet9() throws Exception
- {
- assumeThat( javaVersion, is( "9" ) );
+ public void testGet9() throws Exception {
+ assumeThat(javaVersion, is("9"));
- assertThat( A.getString(), is( "BASE -> 9" ) );
+ assertThat(A.getString(), is("BASE -> 9"));
- assertThat( new A().introducedClass().getName(), is( "java.lang.Module" ) );
+ assertThat(new A().introducedClass().getName(), is("java.lang.Module"));
}
-
-}
\ No newline at end of file
+}
diff --git a/src/it/non-english-warnings/src/main/java/MyClass.java b/src/it/non-english-warnings/src/main/java/MyClass.java
index 62c02eea..16ecae3e 100644
--- a/src/it/non-english-warnings/src/main/java/MyClass.java
+++ b/src/it/non-english-warnings/src/main/java/MyClass.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,13 +18,10 @@
*/
package foo;
-public class MyClass
-{
+public class MyClass {
- public static void main( String[] args )
- {
+ public static void main(String[] args) {
// the date constructor is deprecated and will cause a warning
- System.out.println( new java.util.Date( 2010, 8, 29 ) );
+ System.out.println(new java.util.Date(2010, 8, 29));
}
-
}
diff --git a/src/it/non-english-warnings/src/test/java/MyTest.java b/src/it/non-english-warnings/src/test/java/MyTest.java
index a51de2bb..b9427e90 100644
--- a/src/it/non-english-warnings/src/test/java/MyTest.java
+++ b/src/it/non-english-warnings/src/test/java/MyTest.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,13 +18,10 @@
*/
package foo;
-public class MyTest
-{
+public class MyTest {
- public static void main( String[] args )
- {
+ public static void main(String[] args) {
// the date constructor is deprecated and will cause a warning
- System.out.println( new java.util.Date( 2010, 8, 29 ) );
+ System.out.println(new java.util.Date(2010, 8, 29));
}
-
}
diff --git a/src/it/non-english-warnings/verify.bsh b/src/it/non-english-warnings/verify.bsh
index 919db9da..db162700 100644
--- a/src/it/non-english-warnings/verify.bsh
+++ b/src/it/non-english-warnings/verify.bsh
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package foo;
import java.io.*;
import java.util.*;
diff --git a/src/it/setup_annotation-verify-plugin/src/main/java/org.apache.maven.plugins.compiler.it/SourcePathReadGoal.java b/src/it/setup_annotation-verify-plugin/src/main/java/org.apache.maven.plugins.compiler.it/SourcePathReadGoal.java
index 668809a8..46b7d2b6 100644
--- a/src/it/setup_annotation-verify-plugin/src/main/java/org.apache.maven.plugins.compiler.it/SourcePathReadGoal.java
+++ b/src/it/setup_annotation-verify-plugin/src/main/java/org.apache.maven.plugins.compiler.it/SourcePathReadGoal.java
@@ -1,4 +1,3 @@
-package org.apache.maven.plugins.compiler.it;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -17,25 +16,23 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.apache.maven.plugins.compiler.it;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.List;
-import java.util.StringJoiner;
import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;
-@Mojo( name = "read-source", defaultPhase = LifecyclePhase.PROCESS_TEST_CLASSES )
-public class SourcePathReadGoal
- extends AbstractMojo
-{
+@Mojo(name = "read-source", defaultPhase = LifecyclePhase.PROCESS_TEST_CLASSES)
+public class SourcePathReadGoal extends AbstractMojo {
@Parameter
protected String sourceClass;
@@ -43,62 +40,49 @@ public class SourcePathReadGoal
@Parameter
protected String testSourceClass;
- @Parameter( defaultValue = "${project}" )
+ @Parameter(defaultValue = "${project}")
protected MavenProject project;
- @SuppressWarnings( "unchecked" )
- public void execute()
- throws MojoExecutionException, MojoFailureException
- {
- if ( sourceClass != null )
- {
- getLog().info( "Checking compile source roots for: '" + sourceClass + "'" );
- assertGeneratedSourceFileFor( sourceClass, project.getCompileSourceRoots() );
+ @SuppressWarnings("unchecked")
+ public void execute() throws MojoExecutionException, MojoFailureException {
+ if (sourceClass != null) {
+ getLog().info("Checking compile source roots for: '" + sourceClass + "'");
+ assertGeneratedSourceFileFor(sourceClass, project.getCompileSourceRoots());
}
- if ( testSourceClass != null )
- {
- getLog().info( "Checking test-compile source roots for: '" + testSourceClass + "'" );
- assertGeneratedSourceFileFor( testSourceClass, project.getTestCompileSourceRoots() );
+ if (testSourceClass != null) {
+ getLog().info("Checking test-compile source roots for: '" + testSourceClass + "'");
+ assertGeneratedSourceFileFor(testSourceClass, project.getTestCompileSourceRoots());
}
}
- private void assertGeneratedSourceFileFor( String sourceClass, List sourceRoots )
- throws MojoFailureException, MojoExecutionException
- {
- String sourceFile = sourceClass.replace( '.', '/' )
- .concat( ".txt" );
+ private void assertGeneratedSourceFileFor(String sourceClass, List sourceRoots)
+ throws MojoFailureException, MojoExecutionException {
+ String sourceFile = sourceClass.replace('.', '/').concat(".txt");
boolean found = false;
- for ( String root : sourceRoots )
- {
- File f = new File( root, sourceFile );
- getLog().info( "Looking for: " + f );
- if ( f.exists() )
- {
- try
- {
- String[] nameParts = sourceClass.split( "\\." );
- String content = new String( Files.readAllBytes( f.toPath() ) );
- if ( !nameParts[nameParts.length-1].equals( content ) )
- {
- throw new MojoFailureException( "Non-matching content in: " + f + "\n expected: '"
- + sourceClass + "'\n found: '" + content + "'" );
+ for (String root : sourceRoots) {
+ File f = new File(root, sourceFile);
+ getLog().info("Looking for: " + f);
+ if (f.exists()) {
+ try {
+ String[] nameParts = sourceClass.split("\\.");
+ String content = new String(Files.readAllBytes(f.toPath()));
+ if (!nameParts[nameParts.length - 1].equals(content)) {
+ throw new MojoFailureException("Non-matching content in: " + f + "\n expected: '" + sourceClass
+ + "'\n found: '" + content + "'");
}
found = true;
break;
- }
- catch ( IOException e )
- {
- throw new MojoExecutionException( "Cannot read contents of: " + f, e );
+ } catch (IOException e) {
+ throw new MojoExecutionException("Cannot read contents of: " + f, e);
}
}
}
- if ( !found )
- {
- throw new MojoFailureException( "Cannot find generated source file: " + sourceFile + " in:\n "
- + String.join( "\n ", sourceRoots ) );
+ if (!found) {
+ throw new MojoFailureException(
+ "Cannot find generated source file: " + sourceFile + " in:\n " + String.join("\n ", sourceRoots));
}
}
}
diff --git a/src/it/setup_jar_automodule/src/main/java/com/ta3/MyClass.java b/src/it/setup_jar_automodule/src/main/java/com/ta3/MyClass.java
index e6cbd8bd..728c244a 100644
--- a/src/it/setup_jar_automodule/src/main/java/com/ta3/MyClass.java
+++ b/src/it/setup_jar_automodule/src/main/java/com/ta3/MyClass.java
@@ -1,25 +1,21 @@
-package com.ta3;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class MyClass
-{
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package com.ta3;
+
+public class MyClass {}
diff --git a/src/it/setup_jar_module/src/main/java/com/ta2/MyClass.java b/src/it/setup_jar_module/src/main/java/com/ta2/MyClass.java
index 4309cae8..5d1cc1fa 100644
--- a/src/it/setup_jar_module/src/main/java/com/ta2/MyClass.java
+++ b/src/it/setup_jar_module/src/main/java/com/ta2/MyClass.java
@@ -1,25 +1,21 @@
-package com.ta2;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class MyClass
-{
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package com.ta2;
+
+public class MyClass {}
diff --git a/src/it/setup_jar_module/src/main/java/module-info.java b/src/it/setup_jar_module/src/main/java/module-info.java
index 85677180..11a00624 100644
--- a/src/it/setup_jar_module/src/main/java/module-info.java
+++ b/src/it/setup_jar_module/src/main/java/module-info.java
@@ -1,24 +1,22 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-module ta2 {
-
- exports com.ta2;
-
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+module ta2 {
+ exports com.ta2;
+}
diff --git a/src/it/setup_x/setup_jar_classic/src/main/java/com/ta2/MyClass.java b/src/it/setup_x/setup_jar_classic/src/main/java/com/ta2/MyClass.java
index 4309cae8..5d1cc1fa 100644
--- a/src/it/setup_x/setup_jar_classic/src/main/java/com/ta2/MyClass.java
+++ b/src/it/setup_x/setup_jar_classic/src/main/java/com/ta2/MyClass.java
@@ -1,25 +1,21 @@
-package com.ta2;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class MyClass
-{
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package com.ta2;
+
+public class MyClass {}
diff --git a/src/it/setup_x/setup_module-transitive/src/main/java/com/ta2/plus/MyClass.java b/src/it/setup_x/setup_module-transitive/src/main/java/com/ta2/plus/MyClass.java
index ce9abfee..2ec4f195 100644
--- a/src/it/setup_x/setup_module-transitive/src/main/java/com/ta2/plus/MyClass.java
+++ b/src/it/setup_x/setup_module-transitive/src/main/java/com/ta2/plus/MyClass.java
@@ -1,25 +1,21 @@
-package com.ta2.plus;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-public class MyClass
-{
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package com.ta2.plus;
+
+public class MyClass {}
diff --git a/src/it/setup_x/setup_module-transitive/src/main/java/module-info.java b/src/it/setup_x/setup_module-transitive/src/main/java/module-info.java
index 642a635d..bf7ff9d6 100644
--- a/src/it/setup_x/setup_module-transitive/src/main/java/module-info.java
+++ b/src/it/setup_x/setup_module-transitive/src/main/java/module-info.java
@@ -1,24 +1,22 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-module ta2.plus {
-
- exports com.ta2.plus;
-
-}
\ No newline at end of file
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+module ta2.plus {
+ exports com.ta2.plus;
+}
diff --git a/src/it/test1/src/main/java/MyClass.java b/src/it/test1/src/main/java/MyClass.java
index 90a93702..d4132bb2 100644
--- a/src/it/test1/src/main/java/MyClass.java
+++ b/src/it/test1/src/main/java/MyClass.java
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,4 @@
*/
package foo;
-public class MyClass
-{
-
-}
+public class MyClass {}
diff --git a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
index 03cd6af1..b199e24d 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugin.compiler;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+package org.apache.maven.plugin.compiler;
import java.io.File;
import java.io.IOException;
@@ -98,10 +97,8 @@
* @author Trygve Laugstøl
* @since 2.0
*/
-public abstract class AbstractCompilerMojo
- extends AbstractMojo
-{
- protected static final String PS = System.getProperty( "path.separator" );
+public abstract class AbstractCompilerMojo extends AbstractMojo {
+ protected static final String PS = System.getProperty("path.separator");
private static final String INPUT_FILES_LST_FILENAME = "inputFiles.lst";
@@ -111,7 +108,7 @@ public abstract class AbstractCompilerMojo
// Used to compare with older targets
static final String MODULE_INFO_TARGET = "1.9";
-
+
// ----------------------------------------------------------------------
// Configurables
// ----------------------------------------------------------------------
@@ -121,48 +118,47 @@ public abstract class AbstractCompilerMojo
*
* @since 2.0.2
*/
- @Parameter( property = "maven.compiler.failOnError", defaultValue = "true" )
+ @Parameter(property = "maven.compiler.failOnError", defaultValue = "true")
private boolean failOnError = true;
-
+
/**
* Indicates whether the build will continue even if there are compilation warnings.
*
* @since 3.6
*/
- @Parameter( property = "maven.compiler.failOnWarning", defaultValue = "false" )
- private boolean failOnWarning;
+ @Parameter(property = "maven.compiler.failOnWarning", defaultValue = "false")
+ private boolean failOnWarning;
/**
* Set to true to include debugging information in the compiled class files.
*/
- @Parameter( property = "maven.compiler.debug", defaultValue = "true" )
+ @Parameter(property = "maven.compiler.debug", defaultValue = "true")
private boolean debug = true;
/**
* Set to true to generate metadata for reflection on method parameters.
* @since 3.6.2
*/
- @Parameter( property = "maven.compiler.parameters", defaultValue = "false" )
+ @Parameter(property = "maven.compiler.parameters", defaultValue = "false")
private boolean parameters;
-
/**
* Set to true to Enable preview language features of the java compiler
* @since 3.10.1
*/
- @Parameter( property = "maven.compiler.enablePreview", defaultValue = "false" )
+ @Parameter(property = "maven.compiler.enablePreview", defaultValue = "false")
private boolean enablePreview;
/**
* Set to true to show messages about what the compiler is doing.
*/
- @Parameter( property = "maven.compiler.verbose", defaultValue = "false" )
+ @Parameter(property = "maven.compiler.verbose", defaultValue = "false")
private boolean verbose;
/**
* Sets whether to show source locations where deprecated APIs are used.
*/
- @Parameter( property = "maven.compiler.showDeprecation", defaultValue = "false" )
+ @Parameter(property = "maven.compiler.showDeprecation", defaultValue = "false")
private boolean showDeprecation;
/**
@@ -170,13 +166,13 @@ public abstract class AbstractCompilerMojo
* @deprecated This property is a no-op in {@code javac}.
*/
@Deprecated
- @Parameter( property = "maven.compiler.optimize", defaultValue = "false" )
+ @Parameter(property = "maven.compiler.optimize", defaultValue = "false")
private boolean optimize;
/**
* Set to false to disable warnings during compilation.
*/
- @Parameter( property = "maven.compiler.showWarnings", defaultValue = "true" )
+ @Parameter(property = "maven.compiler.showWarnings", defaultValue = "true")
private boolean showWarnings;
/**
@@ -187,7 +183,7 @@ public abstract class AbstractCompilerMojo
*
Since 3.9.0 the default value has changed from 1.6 to 1.7
*
Since 3.11.0 the default value has changed from 1.7 to 1.8