JavaScript: Autoformat extractor sources using google-java-format.

No special settings; command:

  find javascript/extractor/src -name "*.java" | xargs java -jar /path/to/google-java-format-1.7-all-deps.jar --replace
This commit is contained in:
Max Schaefer
2019-02-28 14:30:06 +00:00
parent 5478e0da62
commit c4fa29dd0f
304 changed files with 30389 additions and 30395 deletions

View File

@@ -5,26 +5,24 @@ import java.util.LinkedHashSet;
import java.util.Set;
public class ParsedProject {
private final File tsConfigFile;
private final Set<File> sourceFiles = new LinkedHashSet<>();
private final File tsConfigFile;
private final Set<File> sourceFiles = new LinkedHashSet<>();
public ParsedProject(File tsConfigFile) {
this.tsConfigFile = tsConfigFile;
}
public ParsedProject(File tsConfigFile) {
this.tsConfigFile = tsConfigFile;
}
/** Returns the <tt>tsconfig.json</tt> file that defines this project. */
public File getTsConfigFile() {
return tsConfigFile;
}
/** Returns the <tt>tsconfig.json</tt> file that defines this project. */
public File getTsConfigFile() {
return tsConfigFile;
}
/**
* Absolute paths to the files included in this project.
*/
public Set<File> getSourceFiles() {
return sourceFiles;
}
/** Absolute paths to the files included in this project. */
public Set<File> getSourceFiles() {
return sourceFiles;
}
public void addSourceFile(File file) {
sourceFiles.add(file);
}
public void addSourceFile(File file) {
sourceFiles.add(file);
}
}