Skip to content
This repository was archived by the owner on Sep 26, 2020. It is now read-only.

Commit c5f8aa2

Browse files
author
stalcup@google.com
committed
corrects typos
Review at http://gwt-code-reviews.appspot.com/1902803 Review by: rluble@google.com git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@11598 8db76d5a-ed1c-0410-87a9-c151d255dfc7
1 parent 8043aa6 commit c5f8aa2

8 files changed

+21
-21
lines changed

dev/core/src/com/google/gwt/core/ext/linker/CompilationMetricsArtifact.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public int[] getJsSize() {
6666
/**
6767
* @return the permutation id associated with compiling this permutation.
6868
*/
69-
public int getPermuationId() {
69+
public int getPermutationId() {
7070
return permutationId;
7171
}
7272

dev/core/src/com/google/gwt/core/ext/linker/PrecompilationMetricsArtifact.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public String[] getFinalTypeOracleTypes() {
6767
/**
6868
* @return the first permutation Id associated with compiling this permutation.
6969
*/
70-
public int getPermuationBase() {
70+
public int getPermutationBase() {
7171
return permutationBase;
7272
}
7373

@@ -112,7 +112,7 @@ public PrecompilationMetricsArtifact setFinalTypeOracleTypes(List<String> types)
112112
/**
113113
* @param ids the permutation ids associated with this precompilation.
114114
*/
115-
public PrecompilationMetricsArtifact setPermuationIds(int[] ids) {
115+
public PrecompilationMetricsArtifact setPermutationIds(int[] ids) {
116116
this.permutationIds = ids;
117117
return this;
118118
}

dev/core/src/com/google/gwt/dev/DistillerRebindPermutationOracle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public String[] getAllPossibleRebindAnswers(TreeLogger logger,
8787

8888
Set<String> answers = new HashSet<String>();
8989
Event getAllRebindsEvent = SpeedTracerLogger.start(CompilerEventType.GET_ALL_REBINDS);
90-
for (int i = 0; i < getPermuationCount(); ++i) {
90+
for (int i = 0; i < getPermutationCount(); ++i) {
9191
String resultTypeName = rebindOracles[i].rebind(logger, requestTypeName);
9292
answers.add(resultTypeName);
9393
// Record the correct answer into each permutation.
@@ -106,7 +106,7 @@ public StandardGeneratorContext getGeneratorContext() {
106106
return generatorContext;
107107
}
108108

109-
public int getPermuationCount() {
109+
public int getPermutationCount() {
110110
return rebindOracles.length;
111111
}
112112

dev/core/src/com/google/gwt/dev/Precompile.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ static Precompilation precompile(TreeLogger logger, JJSOptions jjsOptions, Modul
277277
? new PrecompilationMetricsArtifact(permutationBase) : null;
278278
UnifiedAst unifiedAst =
279279
getCompiler(module).precompile(logger, module, rpo, declEntryPts, null, jjsOptions,
280-
rpo.getPermuationCount() == 1, precompilationMetrics);
280+
rpo.getPermutationCount() == 1, precompilationMetrics);
281281

282282
if (jjsOptions.isCompilerMetricsEnabled()) {
283283
ModuleMetricsArtifact moduleMetrics = new ModuleMetricsArtifact();
@@ -317,7 +317,7 @@ static Precompilation precompile(TreeLogger logger, JJSOptions jjsOptions, Modul
317317
for (int i = 0; i < allPermutations.size(); i++) {
318318
ids[i] = permutationBase + i;
319319
}
320-
precompilationMetrics.setPermuationIds(ids);
320+
precompilationMetrics.setPermutationIds(ids);
321321
// TODO(zundel): Right now this double counts module load and
322322
// precompile time. It correctly counts the amount of time spent
323323
// in this process. The elapsed time in ModuleMetricsArtifact

dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ public static PermutationResult compilePermutation(TreeLogger logger, UnifiedAst
280280
long permStart = System.currentTimeMillis();
281281
try {
282282
if (JProgram.isTracingEnabled()) {
283-
System.out.println("------------------------------------------------------------");
284-
System.out.println("| (new permuation) |");
285-
System.out.println("------------------------------------------------------------");
283+
System.out.println("-------------------------------------------------------------");
284+
System.out.println("| (new permutation) |");
285+
System.out.println("-------------------------------------------------------------");
286286
System.out.println("Properties: " + permutation.prettyPrint());
287287
}
288288

@@ -443,7 +443,7 @@ public static PermutationResult compilePermutation(TreeLogger logger, UnifiedAst
443443
}
444444
break;
445445
case PRETTY:
446-
// We don't intern strings in pretty mode to imprmakeSouove readability
446+
// We don't intern strings in pretty mode to improve readability
447447
JsPrettyNamer.exec(jsProgram, propertyOracles);
448448
break;
449449
case DETAILED:
@@ -1252,7 +1252,7 @@ private static Collection<? extends Artifact<?>> makeSoycArtifacts(TreeLogger lo
12521252
dashboard.generateForOnePermutation();
12531253
if (moduleMetricsArtifact != null && precompilationMetricsArtifact != null
12541254
&& compilationMetrics != null) {
1255-
dashboard.generateCompilerMetricsForOnePermuation(moduleMetricsArtifact,
1255+
dashboard.generateCompilerMetricsForOnePermutation(moduleMetricsArtifact,
12561256
precompilationMetricsArtifact, compilationMetrics);
12571257
}
12581258
soycArtifacts.addAll(outDir.getArtifacts());
@@ -1335,17 +1335,17 @@ public void endVisit(JsForIn x, JsContext ctx) {
13351335
@Override
13361336
public void endVisit(JsLabel x, JsContext ctx) {
13371337
nameUsed.add(x.getName().getIdent());
1338-
};
1338+
}
13391339

13401340
@Override
13411341
public void endVisit(JsParameter x, JsContext ctx) {
13421342
nameUsed.add(x.getName().getIdent());
1343-
};
1343+
}
13441344

13451345
@Override
13461346
public void endVisit(JsVars.JsVar x, JsContext ctx) {
13471347
nameUsed.add(x.getName().getIdent());
1348-
};
1348+
}
13491349

13501350
}.accept(jsProgram.getFragmentBlock(i));
13511351
}

dev/core/src/com/google/gwt/soyc/CompilerMetricsXmlFormatter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private static String escapeXmlAttributeContent(String content) {
116116

117117
private static void writeCompilationMetricsAsXml(
118118
CompilationMetricsArtifact metrics, PrintWriter pw) {
119-
pw.append(" <compilation id=\"" + metrics.getPermuationId() + "\" ");
119+
pw.append(" <compilation id=\"" + metrics.getPermutationId() + "\" ");
120120
pw.append("elapsed=\"" + metrics.getCompileElapsedMilliseconds() + "\" ");
121121
pw.append("totalElapsed=\"" + metrics.getElapsedMilliseconds() + "\" ");
122122
// TODO(zundel): Print out captured GC and heap memory analysis if it is
@@ -182,7 +182,7 @@ private static void writePrecompilationMetricsAsXml(
182182
ModuleMetricsArtifact moduleMetrics,
183183
PrecompilationMetricsArtifact metrics, PrintWriter pw) {
184184
pw.append(" <precompilation ");
185-
pw.append("base=\"" + metrics.getPermuationBase() + "\" ");
185+
pw.append("base=\"" + metrics.getPermutationBase() + "\" ");
186186
int[] permutationIds = metrics.getPermutationIds();
187187
if (permutationIds != null) {
188188
StringBuilder builder = new StringBuilder();

dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -810,10 +810,10 @@ public void makeCompilerMetricsPermFiles(ModuleMetricsArtifact moduleMetrics,
810810
PrecompilationMetricsArtifact precompilationMetrics,
811811
CompilationMetricsArtifact compilationMetrics) throws IOException {
812812
String outFileName = "CompilerMetrics-"
813-
+ precompilationMetrics.getPermuationBase() + "-index.html";
813+
+ precompilationMetrics.getPermutationBase() + "-index.html";
814814
PrintWriter outFile = new PrintWriter(getOutFile(outFileName));
815815
String title = "Compiler Metrics for Permutation "
816-
+ compilationMetrics.getPermuationId();
816+
+ compilationMetrics.getPermutationId();
817817
addStandardHtmlProlog(outFile, title, title, "Build Time Metrics");
818818

819819
NumberFormat elapsedFormatter = NumberFormat.getInstance();
@@ -822,7 +822,7 @@ public void makeCompilerMetricsPermFiles(ModuleMetricsArtifact moduleMetrics,
822822
elapsedFormatter.setMaximumFractionDigits(3);
823823

824824
outFile.println("<div id=\"bd\">");
825-
int permutationId = compilationMetrics.getPermuationId();
825+
int permutationId = compilationMetrics.getPermutationId();
826826

827827
// Build Time Metrics
828828
outFile.println("<table class=\"soyc-table\">");

dev/core/src/com/google/gwt/soyc/SoycDashboard.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public SoycDashboard(OutputDirectory outDir) {
312312
this.outDir = outDir;
313313
}
314314

315-
public void generateCompilerMetricsForOnePermuation(
315+
public void generateCompilerMetricsForOnePermutation(
316316
ModuleMetricsArtifact moduleMetrics,
317317
PrecompilationMetricsArtifact precompilationMetrics,
318318
CompilationMetricsArtifact compilationMetrics) throws IOException {

0 commit comments

Comments
 (0)