Skip to content

Commit e0220e1

Browse files
committed
Fix 500+ checkstyle reported errors
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1705359 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2f8e0f5 commit e0220e1

60 files changed

Lines changed: 1321 additions & 1031 deletions

File tree

Some content is hidden

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

src/main/java/org/apache/maven/plugin/eclipse/AbstractWorkspaceMojo.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package org.apache.maven.plugin.eclipse;
2+
13
/*
24
* Licensed to the Apache Software Foundation (ASF) under one
35
* or more contributor license agreements. See the NOTICE file
@@ -16,12 +18,14 @@
1618
* specific language governing permissions and limitations
1719
* under the License.
1820
*/
19-
package org.apache.maven.plugin.eclipse;
2021

2122
import org.apache.maven.artifact.repository.ArtifactRepository;
2223
import org.apache.maven.plugin.AbstractMojo;
2324
import org.apache.maven.plugins.annotations.Parameter;
2425

26+
/**
27+
*
28+
*/
2529
public abstract class AbstractWorkspaceMojo
2630
extends AbstractMojo
2731
{

src/main/java/org/apache/maven/plugin/eclipse/BuildCommand.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package org.apache.maven.plugin.eclipse;
2+
13
/*
24
* Licensed to the Apache Software Foundation (ASF) under one
35
* or more contributor license agreements. See the NOTICE file
@@ -16,7 +18,6 @@
1618
* specific language governing permissions and limitations
1719
* under the License.
1820
*/
19-
package org.apache.maven.plugin.eclipse;
2021

2122
import java.util.HashMap;
2223
import java.util.Map;
@@ -178,15 +179,16 @@ public void print( XMLWriter writer )
178179

179180
writer.startElement( "dictionary" );
180181

181-
for (Object o : arguments.keySet()) {
182+
for ( Object o : arguments.keySet() )
183+
{
182184
String key = (String) o;
183185

184-
writer.startElement("key");
185-
writer.writeText(key);
186+
writer.startElement( "key" );
187+
writer.writeText( key );
186188
writer.endElement();
187189

188-
writer.startElement("value");
189-
writer.writeText((String) arguments.get(key));
190+
writer.startElement( "value" );
191+
writer.writeText( (String) arguments.get( key ) );
190192
writer.endElement();
191193
}
192194

src/main/java/org/apache/maven/plugin/eclipse/ConfigureWorkspaceMojo.java

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1+
package org.apache.maven.plugin.eclipse;
2+
13
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
3-
* agreements. See the NOTICE file distributed with this work for additional information regarding
4-
* copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
5-
* "License"); you may not use this file except in compliance with the License. You may obtain a
6-
* copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software distributed under the License
11-
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12-
* or implied. See the License for the specific language governing permissions and limitations under
13-
* the License.
4+
* Licensed to the Apache Software Foundation (ASF) under one
5+
* or more contributor license agreements. See the NOTICE file
6+
* distributed with this work for additional information
7+
* regarding copyright ownership. The ASF licenses this file
8+
* to you under the Apache License, Version 2.0 (the
9+
* "License"); you may not use this file except in compliance
10+
* with the License. You may obtain a copy of the License at
11+
*
12+
* http://www.apache.org/licenses/LICENSE-2.0
13+
*
14+
* Unless required by applicable law or agreed to in writing,
15+
* software distributed under the License is distributed on an
16+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
* KIND, either express or implied. See the License for the
18+
* specific language governing permissions and limitations
19+
* under the License.
1420
*/
15-
package org.apache.maven.plugin.eclipse;
1621

1722
import java.io.File;
1823
import java.net.MalformedURLException;

src/main/java/org/apache/maven/plugin/eclipse/Constants.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package org.apache.maven.plugin.eclipse;
2+
13
/*
24
* Licensed to the Apache Software Foundation (ASF) under one
35
* or more contributor license agreements. See the NOTICE file
@@ -16,8 +18,10 @@
1618
* specific language governing permissions and limitations
1719
* under the License.
1820
*/
19-
package org.apache.maven.plugin.eclipse;
2021

22+
/**
23+
* Constants for supported language and project packaging
24+
*/
2125
public final class Constants
2226
{
2327

src/main/java/org/apache/maven/plugin/eclipse/EclipseCleanMojo.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package org.apache.maven.plugin.eclipse;
2+
13
/*
24
* Licensed to the Apache Software Foundation (ASF) under one
35
* or more contributor license agreements. See the NOTICE file
@@ -16,7 +18,6 @@
1618
* specific language governing permissions and limitations
1719
* under the License.
1820
*/
19-
package org.apache.maven.plugin.eclipse;
2021

2122
import org.apache.maven.plugin.AbstractMojo;
2223
import org.apache.maven.plugin.MojoExecutionException;
@@ -98,8 +99,9 @@ public void execute()
9899

99100
if ( additionalConfig != null )
100101
{
101-
for (EclipseConfigFile anAdditionalConfig : additionalConfig) {
102-
delete(new File(basedir, anAdditionalConfig.getName()));
102+
for ( EclipseConfigFile anAdditionalConfig : additionalConfig )
103+
{
104+
delete( new File( basedir, anAdditionalConfig.getName() ) );
103105
}
104106
}
105107

src/main/java/org/apache/maven/plugin/eclipse/EclipseConfigFile.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package org.apache.maven.plugin.eclipse;
2+
13
/*
24
* Licensed to the Apache Software Foundation (ASF) under one
35
* or more contributor license agreements. See the NOTICE file
@@ -16,7 +18,6 @@
1618
* specific language governing permissions and limitations
1719
* under the License.
1820
*/
19-
package org.apache.maven.plugin.eclipse;
2021

2122
import java.net.URL;
2223

0 commit comments

Comments
 (0)