Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void run() {
try {
server.stop();
} catch (Exception ex) {
logger.info("Cann't stop the server", ex);
logger.info("Can't stop the server", ex);
}
}
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
* </pre>
*
* <h2>Loading templates</h2> Templates are loaded using the ```TemplateLoader``` class.
* Handlebars.java provides three implementations of a ```TemplateLodaer```:
* Handlebars.java provides three implementations of a ```TemplateLoader```:
* <ul>
* <li>ClassPathTemplateLoader (default)</li>
* <li>FileTemplateLoader</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public HandlebarsError(final String filename, final int line,
final int column, final String reason, final String evidence,
final String message) {
this.filename = notEmpty(filename, "The file's name is required");
isTrue(line > 0, "The error's line number must be greather than zero");
isTrue(line > 0, "The error's line number must be greater than zero");
this.line = line;
isTrue(column > 0, "The error's column number must be greather than zero");
isTrue(column > 0, "The error's column number must be greater than zero");
this.column = column;
this.reason = notEmpty(reason, "The file's reason is required");
this.evidence = notEmpty(evidence, "The file's evidence is required");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public void partial(final String path, final Template partial) {
* Object myClass = options.hash.get("class");
* </code>
* <p>
* This mehtod works as a shorthand and type safe call:
* This method works as a shorthand and type safe call:
* </p>
* <code>
* String myClass = options.hash("class");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected boolean isProtected(final M member) {
* True if the member is static.
*
* @param member The member object.
* @return True if the member is statuc.
* @return True if the member is static.
*/
protected boolean isStatic(final M member) {
return Modifier.isStatic(member.getModifiers());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public HelperRegistry registerHelpers(final Object helperSource) {
} catch (RuntimeException ex) {
throw ex;
} catch (Exception ex) {
throw new IllegalArgumentException("Can't register helpres", ex);
throw new IllegalArgumentException("Can't register helpers", ex);
}
registerDynamicHelper(helperSource, helperSource.getClass());
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class DefI18nSource implements I18nSource {
/**
* UTF8 resource bundle control.
*
* Source: Source: ckoverflow.com/questions/4659929
* Source: Source: https://stackoverflow.com/questions/4659929
*
* @author edgar
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private void configure(final HbsParser parser, final ANTLRErrorListener errorRep
/**
* Configure a recognizer with an error reporter.
*
* @param recognizer A recongnizer.
* @param recognizer A recognizer.
* @param errorReporter The error reporter.
*/
private void configure(final Recognizer<?, ?> recognizer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ private static class PartialInfo {
/**
* Creates a new {@link TemplateBuilder}.
*
* @param handlebars A handlbars object. required.
* @param handlebars A handlebars object. required.
* @param source The template source. required.
*/
public TemplateBuilder(final Handlebars handlebars, final TemplateSource source) {
this.handlebars = notNull(handlebars, "The handlebars can't be null.");
this.source = notNull(source, "The template source is requied.");
this.source = notNull(source, "The template source is required.");
}

@Override
Expand Down