Checkstyle, whitespace, formatting

This commit is contained in:
Andreas Dangel
2014-10-21 22:38:19 +02:00
parent 67b1ad9c98
commit d9ff018846
9 changed files with 264 additions and 262 deletions

View File

@ -25,14 +25,6 @@
</delimiters>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<xdocDirectory>${project.build.directory}/generated-xdocs</xdocDirectory>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
@ -41,11 +33,6 @@
<artifactId>pmd-core</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-test</artifactId>

View File

@ -4,11 +4,15 @@
package net.sourceforge.pmd.cpd;
/**
* GoLang
* Implements the Go Language
*
* @author oinume@gmail.com
*/
public class GoLanguage extends AbstractLanguage {
/**
* Creates a new instance of {@link GoLanguage}
*/
public GoLanguage() {
super("Go", "go", new GoTokenizer(), ".go");
}

View File

@ -6,11 +6,15 @@ package net.sourceforge.pmd.cpd;
import java.util.ArrayList;
/**
* GoLang
* Implements a tokenizer for the Go Language.
*
* @author oinume@gmail.com
*/
public class GoTokenizer extends AbstractTokenizer {
/**
* Creates a new {@link GoTokenizer}
*/
public GoTokenizer() {
// setting markers for "string" in Go
this.stringToken = new ArrayList<String>();