Skip to content
Permalink
Browse files

typos

Author:    adrian <a.adrian.tech@googlemail.com>
  • Loading branch information...
aadrian authored and bpsm committed Mar 28, 2017
1 parent 6a6754e commit c6eb54878be9c6e39919fc4bedc6a6caf9a8be8b
@@ -59,7 +59,7 @@ Most *edn* values map to regular Java types, except in such cases where Java doe

Integers map to, `Long` or `BigInteger` depending on the magnitude of the number. Appending `N` to an integer literal maps to `BigInteger` irrespective of the magnitude.

Floating point numbers with the suffix `M` are mapeped to `BigDecimal`. All others are mapped to `Double`.
Floating point numbers with the suffix `M` are mapped to `BigDecimal`. All others are mapped to `Double`.

Characters are mapped to `Character`, booleans to `Boolean` and strings to `String`. No great shock there, I trust.

@@ -130,7 +130,7 @@ The package `us.bpsm.edn.parser` makes three handlers for `#inst` available:

- `InstantToDate` is the default and converts each `#inst` to a `java.util.Date`.
- `InstantToCalendar` converts each `#inst` to a `java.util.Calendar`, which preserves the original GTM offset.
- `InstantToTimestamp` converts each `#inst` to a `java.sql.Timstamp`, which presrves nanoseconds.
- `InstantToTimestamp` converts each `#inst` to a `java.sql.Timstamp`, which preserves nanoseconds.

Extend `AbstractInstantHandler` to provide your own implementation of `#inst`.

@@ -356,5 +356,5 @@ public class CustomTagPrinter {
### Limitations

- Edn values must be *acyclic*. Any attempt to print a data structure containing cycles will surely end in a stack overflow.
- The current Printing support stikes me a as a bit of a hack. The API may change with 0.5.0.
- The current Printing support strikes me a as a bit of a hack. The API may change with 1.0.0.
- Edn-Java does not provide much by way of "convenience" methods. As a library it's still to young to really know what would be convenient, though I'm open to suggestions.
@@ -2,7 +2,7 @@
package us.bpsm.edn.parser;

/**
* A Handler for {@code #inst} which translates the intant into a
* A Handler for {@code #inst} which translates the instant into a
* {@link java.util.Calendar}.
*/
public class InstantToCalendar extends AbstractInstantHandler {
@@ -2,7 +2,7 @@
package us.bpsm.edn.parser;

/**
* A Handler for {@code #inst} which translates the intant into a
* A Handler for {@code #inst} which translates the instant into a
* {@link java.util.Date}.
*/
public final class InstantToDate extends AbstractInstantHandler {
@@ -66,7 +66,7 @@ static ParsedInstant parse(String value) {
assert 0 <= nanoseconds && nanoseconds <= 999999999:
"nanoseconds are assured to be in [0..999999999] by INSTANT Pattern";
assert -1 <= offsetSign && offsetSign <= 1:
"parser assuers offsetSign is -1, 0 or 1.";
"parser assures offsetSign is -1, 0 or 1.";
if (offsetHours < 0 || 23 < offsetHours) {
throw new EdnSyntaxException(
String.format("'%02d' is not a valid offset hour in '%s'",
@@ -12,7 +12,7 @@
public Object transform(Tag tag, Object value) {
if (!(value instanceof String)) {
throw new EdnSyntaxException(tag.toString() +
" expectes a String.");
" expects a String.");
}
return UUID.fromString((String) value);
}
@@ -23,8 +23,8 @@
*
* @return The linearization of c: never null and never empty.
*
* @throws EdnException if the inheritance hiearchy of {@code c}
* makes it impossible to compuate a consistent hierarchy
* @throws EdnException if the inheritance hierarchy of {@code c}
* makes it impossible to compute a consistent hierarchy
* for {@code c}.
*/
static List<Class<?>> methodResolutionOrder(Class<?> c) {

0 comments on commit c6eb548

Please sign in to comment.
You can’t perform that action at this time.