Skip to content

Commit 2831f12

Browse files
xuwei-kjknack
authored andcommitted
fix some typo (#631)
1 parent a980a50 commit 2831f12

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

handlebars-proto/src/main/java/com/github/jknack/handlebars/server/HbsServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public void run() {
187187
try {
188188
server.stop();
189189
} catch (Exception ex) {
190-
logger.info("Cann't stop the server", ex);
190+
logger.info("Can't stop the server", ex);
191191
}
192192
}
193193
}));

handlebars/src/main/java/com/github/jknack/handlebars/Handlebars.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
* </pre>
7373
*
7474
* <h2>Loading templates</h2> Templates are loaded using the ```TemplateLoader``` class.
75-
* Handlebars.java provides three implementations of a ```TemplateLodaer```:
75+
* Handlebars.java provides three implementations of a ```TemplateLoader```:
7676
* <ul>
7777
* <li>ClassPathTemplateLoader (default)</li>
7878
* <li>FileTemplateLoader</li>

handlebars/src/main/java/com/github/jknack/handlebars/HandlebarsError.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public HandlebarsError(final String filename, final int line,
7272
final int column, final String reason, final String evidence,
7373
final String message) {
7474
this.filename = notEmpty(filename, "The file's name is required");
75-
isTrue(line > 0, "The error's line number must be greather than zero");
75+
isTrue(line > 0, "The error's line number must be greater than zero");
7676
this.line = line;
77-
isTrue(column > 0, "The error's column number must be greather than zero");
77+
isTrue(column > 0, "The error's column number must be greater than zero");
7878
this.column = column;
7979
this.reason = notEmpty(reason, "The file's reason is required");
8080
this.evidence = notEmpty(evidence, "The file's evidence is required");

handlebars/src/main/java/com/github/jknack/handlebars/Options.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ public void partial(final String path, final Template partial) {
672672
* Object myClass = options.hash.get("class");
673673
* </code>
674674
* <p>
675-
* This mehtod works as a shorthand and type safe call:
675+
* This method works as a shorthand and type safe call:
676676
* </p>
677677
* <code>
678678
* String myClass = options.hash("class");

handlebars/src/main/java/com/github/jknack/handlebars/context/MemberValueResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected boolean isProtected(final M member) {
140140
* True if the member is static.
141141
*
142142
* @param member The member object.
143-
* @return True if the member is statuc.
143+
* @return True if the member is static.
144144
*/
145145
protected boolean isStatic(final M member) {
146146
return Modifier.isStatic(member.getModifiers());

handlebars/src/main/java/com/github/jknack/handlebars/helper/DefaultHelperRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public HelperRegistry registerHelpers(final Object helperSource) {
136136
} catch (RuntimeException ex) {
137137
throw ex;
138138
} catch (Exception ex) {
139-
throw new IllegalArgumentException("Can't register helpres", ex);
139+
throw new IllegalArgumentException("Can't register helpers", ex);
140140
}
141141
registerDynamicHelper(helperSource, helperSource.getClass());
142142
return this;

handlebars/src/main/java/com/github/jknack/handlebars/helper/I18nHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ class DefI18nSource implements I18nSource {
354354
/**
355355
* UTF8 resource bundle control.
356356
*
357-
* Source: Source: ckoverflow.com/questions/4659929
357+
* Source: Source: https://stackoverflow.com/questions/4659929
358358
*
359359
* @author edgar
360360
*

handlebars/src/main/java/com/github/jknack/handlebars/internal/HbsParserFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private void configure(final HbsParser parser, final ANTLRErrorListener errorRep
193193
/**
194194
* Configure a recognizer with an error reporter.
195195
*
196-
* @param recognizer A recongnizer.
196+
* @param recognizer A recognizer.
197197
* @param errorReporter The error reporter.
198198
*/
199199
private void configure(final Recognizer<?, ?> recognizer,

handlebars/src/main/java/com/github/jknack/handlebars/internal/TemplateBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ private static class PartialInfo {
143143
/**
144144
* Creates a new {@link TemplateBuilder}.
145145
*
146-
* @param handlebars A handlbars object. required.
146+
* @param handlebars A handlebars object. required.
147147
* @param source The template source. required.
148148
*/
149149
public TemplateBuilder(final Handlebars handlebars, final TemplateSource source) {
150150
this.handlebars = notNull(handlebars, "The handlebars can't be null.");
151-
this.source = notNull(source, "The template source is requied.");
151+
this.source = notNull(source, "The template source is required.");
152152
}
153153

154154
@Override

0 commit comments

Comments
 (0)