Skip to content

Commit

Permalink
fix(android): update log strings TIMOB-7786 (#11252)
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga authored and ewanharris committed Oct 8, 2019
1 parent 1571e40 commit 1fc77a1
Showing 1 changed file with 5 additions and 7 deletions.
Expand Up @@ -8,14 +8,12 @@

import java.io.UnsupportedEncodingException;
import java.nio.ByteOrder;

import org.appcelerator.kroll.KrollDict;
import org.appcelerator.kroll.KrollModule;
import org.appcelerator.kroll.annotations.Kroll;
import org.appcelerator.kroll.common.Log;
import org.appcelerator.titanium.TiC;
import org.appcelerator.titanium.util.TiConvert;

import ti.modules.titanium.BufferProxy;
import ti.modules.titanium.TitaniumModule;

Expand Down Expand Up @@ -62,7 +60,7 @@ public int encodeNumber(KrollDict args)
throw new IllegalArgumentException("dest was not specified for encodeNumber");
}
if (!args.containsKey(TiC.PROPERTY_SOURCE)) {
throw new IllegalArgumentException("src was not specified for encodeNumber");
throw new IllegalArgumentException("source was not specified for encodeNumber");
}
if (!args.containsKey(TiC.PROPERTY_TYPE)) {
throw new IllegalArgumentException("type was not specified for encodeNumber");
Expand Down Expand Up @@ -123,10 +121,10 @@ public static int encodeNumber(Number src, String type, byte dest[], int positio
public Object decodeNumber(KrollDict args)
{
if (!args.containsKey(TiC.PROPERTY_SOURCE)) {
throw new IllegalArgumentException("src was not specified for encodeNumber");
throw new IllegalArgumentException("source was not specified for decodeNumber");
}
if (!args.containsKey(TiC.PROPERTY_TYPE)) {
throw new IllegalArgumentException("type was not specified for encodeNumber");
throw new IllegalArgumentException("type was not specified for decodeNumber");
}

BufferProxy buffer = (BufferProxy) args.get(TiC.PROPERTY_SOURCE);
Expand Down Expand Up @@ -185,7 +183,7 @@ public int encodeString(KrollDict args)
throw new IllegalArgumentException("dest was not specified for encodeString");
}
if (!args.containsKey(TiC.PROPERTY_SOURCE) || args.get(TiC.PROPERTY_SOURCE) == null) {
throw new IllegalArgumentException("src was not specified for encodeString");
throw new IllegalArgumentException("source was not specified for encodeString");
}

BufferProxy dest = (BufferProxy) args.get(TiC.PROPERTY_DEST);
Expand Down Expand Up @@ -227,7 +225,7 @@ public int encodeString(KrollDict args)
public String decodeString(KrollDict args)
{
if (!args.containsKey(TiC.PROPERTY_SOURCE) || args.get(TiC.PROPERTY_SOURCE) == null) {
throw new IllegalArgumentException("src was not specified for decodeString");
throw new IllegalArgumentException("source was not specified for decodeString");
}

BufferProxy src = (BufferProxy) args.get(TiC.PROPERTY_SOURCE);
Expand Down

0 comments on commit 1fc77a1

Please sign in to comment.