From bfc5f52f5c7863f0c01f813146b1b948712408f2 Mon Sep 17 00:00:00 2001 From: Lene Preuss Date: Wed, 13 Oct 2021 12:57:41 +0200 Subject: [PATCH] fixed typo Signed-off-by: Lene Preuss --- .../flexpolyline/PolylineEncoderDecoder.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/java/src/com/here/flexpolyline/PolylineEncoderDecoder.java b/java/src/com/here/flexpolyline/PolylineEncoderDecoder.java index dc8ef5f..4186e1d 100644 --- a/java/src/com/here/flexpolyline/PolylineEncoderDecoder.java +++ b/java/src/com/here/flexpolyline/PolylineEncoderDecoder.java @@ -188,9 +188,9 @@ private static class Decoder { private final char[] encoded; private final AtomicInteger index; - private final Converter latConveter; - private final Converter lngConveter; - private final Converter zConveter; + private final Converter latConverter; + private final Converter lngConverter; + private final Converter zConverter; private int precision; private int thirdDimPrecision; @@ -201,9 +201,9 @@ public Decoder(String encoded) { this.encoded = encoded.toCharArray(); this.index = new AtomicInteger(0); decodeHeader(); - this.latConveter = new Converter(precision); - this.lngConveter = new Converter(precision); - this.zConveter = new Converter(thirdDimPrecision); + this.latConverter = new Converter(precision); + this.lngConverter = new Converter(precision); + this.zConverter = new Converter(thirdDimPrecision); } private boolean hasThirdDimension() { @@ -243,14 +243,14 @@ private boolean decodeOne(AtomicReference lat, if (index.get() == encoded.length) { return false; } - if (!latConveter.decodeValue(encoded, index, lat)) { + if (!latConverter.decodeValue(encoded, index, lat)) { throw new IllegalArgumentException("Invalid encoding"); } - if (!lngConveter.decodeValue(encoded, index, lng)) { + if (!lngConverter.decodeValue(encoded, index, lng)) { throw new IllegalArgumentException("Invalid encoding"); } if (hasThirdDimension()) { - if (!zConveter.decodeValue(encoded, index, z)) { + if (!zConverter.decodeValue(encoded, index, z)) { throw new IllegalArgumentException("Invalid encoding"); } }