View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.cpd;
5   
6   import java.util.Properties;
7   
8   public class JavaLanguage extends AbstractLanguage {
9   	public JavaLanguage() {
10  		this(System.getProperties());
11  	}
12  
13  	public JavaLanguage(Properties properties) {
14  		super(new JavaTokenizer(), ".java");
15  		JavaTokenizer tokenizer = (JavaTokenizer)getTokenizer();
16  		tokenizer.setProperties(properties);
17  	}
18  }