Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(500)

Unified Diff: third_party/WebKit/Source/devtools/scripts/jsdoc_validator/src/org/chromium/devtools/jsdoc/FileCheckerCallable.java

Issue 2441163002: DevTools: clean up scripts folder (Closed)
Patch Set: Fix sys.path for chromevox to load rjsmin Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/scripts/jsdoc_validator/src/org/chromium/devtools/jsdoc/FileCheckerCallable.java
diff --git a/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/FileCheckerCallable.java b/third_party/WebKit/Source/devtools/scripts/jsdoc_validator/src/org/chromium/devtools/jsdoc/FileCheckerCallable.java
similarity index 90%
rename from third_party/WebKit/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/FileCheckerCallable.java
rename to third_party/WebKit/Source/devtools/scripts/jsdoc_validator/src/org/chromium/devtools/jsdoc/FileCheckerCallable.java
index c2dae58a3e589c37b0a77475fe976ce817bb8430..93d76372c54c3e744b7a1a9ae6a7973d1bfdeaa1 100644
--- a/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/FileCheckerCallable.java
+++ b/third_party/WebKit/Source/devtools/scripts/jsdoc_validator/src/org/chromium/devtools/jsdoc/FileCheckerCallable.java
@@ -24,11 +24,8 @@ import java.util.Set;
import java.util.concurrent.Callable;
public class FileCheckerCallable implements Callable<ValidatorContext> {
-
- private static Set<String> EXTRA_ANNOTATIONS = new HashSet<>(Arrays.asList(
- "suppressReceiverCheck",
- "suppressGlobalPropertiesCheck"
- ));
+ private static Set<String> EXTRA_ANNOTATIONS =
+ new HashSet<>(Arrays.asList("suppressReceiverCheck", "suppressGlobalPropertiesCheck"));
private final String fileName;
public FileCheckerCallable(String fileName) {
@@ -59,7 +56,7 @@ public class FileCheckerCallable implements Callable<ValidatorContext> {
private static Node parseScript(final ValidatorContext context) {
Config config = ParserRunner.createConfig(
- true, true, true, LanguageMode.ECMASCRIPT5_STRICT, EXTRA_ANNOTATIONS);
+ true, true, true, LanguageMode.ECMASCRIPT5_STRICT, EXTRA_ANNOTATIONS);
ErrorReporter errorReporter = new ErrorReporter() {
@Override
public void warning(String message, String sourceName, int line, int lineOffset) {
@@ -72,8 +69,9 @@ public class FileCheckerCallable implements Callable<ValidatorContext> {
}
};
try {
- return ParserRunner.parse(
- context.sourceFile, context.sourceFile.getCode(), config, errorReporter).ast;
+ return ParserRunner
+ .parse(context.sourceFile, context.sourceFile.getCode(), config, errorReporter)
+ .ast;
} catch (IOException e) {
// Does not happen with preloaded files.
return null;

Powered by Google App Engine
This is Rietveld 408576698