diff --git a/accessors-smart/src/main/java/net/minidev/asm/ASMUtil.java b/accessors-smart/src/main/java/net/minidev/asm/ASMUtil.java index 6cf07d8..b5752d9 100644 --- a/accessors-smart/src/main/java/net/minidev/asm/ASMUtil.java +++ b/accessors-smart/src/main/java/net/minidev/asm/ASMUtil.java @@ -33,7 +33,7 @@ */ public class ASMUtil { /** - * Append the call of proper autoboxing method for the given primitif type. + * Append the call of proper autoboxing method for the given primitive type. */ public static void autoBoxing(MethodVisitor mv, Class clz) { autoBoxing(mv, Type.getType(clz)); @@ -68,7 +68,7 @@ static public Accessor[] getAccessors(Class type, FieldFilter filter) { } /** - * Append the call of proper autoboxing method for the given primitif type. + * Append the call of proper autoboxing method for the given primitive type. */ protected static void autoBoxing(MethodVisitor mv, Type fieldType) { switch (fieldType.getSort()) { @@ -146,7 +146,7 @@ protected static void autoUnBoxing1(MethodVisitor mv, Type fieldType) { /** * Append the call of proper extract primitive type of an boxed object. this - * methode use Number interface to unbox object + * method use Number interface to unbox object */ protected static void autoUnBoxing2(MethodVisitor mv, Type fieldType) { switch (fieldType.getSort()) { diff --git a/accessors-smart/src/main/java/net/minidev/asm/Accessor.java b/accessors-smart/src/main/java/net/minidev/asm/Accessor.java index 0914772..e656b9b 100644 --- a/accessors-smart/src/main/java/net/minidev/asm/Accessor.java +++ b/accessors-smart/src/main/java/net/minidev/asm/Accessor.java @@ -25,7 +25,7 @@ * * field, getter setter * - * this object is used internally by BeansAcces + * this object is used internally by BeansAccess * * @see BeansAccess * diff --git a/accessors-smart/src/main/java/net/minidev/asm/BeansAccess.java b/accessors-smart/src/main/java/net/minidev/asm/BeansAccess.java index e42ad92..929639f 100644 --- a/accessors-smart/src/main/java/net/minidev/asm/BeansAccess.java +++ b/accessors-smart/src/main/java/net/minidev/asm/BeansAccess.java @@ -80,7 +80,7 @@ static public

BeansAccess

get(Class

type, FieldFilter filter) { if (access != null) return access; } - // extract all access methodes + // extract all access methods Accessor[] accs = ASMUtil.getAccessors(type, filter); diff --git a/accessors-smart/src/main/java/net/minidev/asm/BeansAccessBuilder.java b/accessors-smart/src/main/java/net/minidev/asm/BeansAccessBuilder.java index f1a6cd6..a0ea628 100644 --- a/accessors-smart/src/main/java/net/minidev/asm/BeansAccessBuilder.java +++ b/accessors-smart/src/main/java/net/minidev/asm/BeansAccessBuilder.java @@ -49,8 +49,8 @@ public class BeansAccessBuilder { final String accessClassNameInternal; final String classNameInternal; final HashMap, Method> convMtds = new HashMap, Method>(); -// Class exeptionClass = net.minidev.asm.ex.NoSuchFieldException.class; - Class exeptionClass = NoSuchFieldException.class; +// Class exceptionClass = net.minidev.asm.ex.NoSuchFieldException.class; + Class exceptionClass = NoSuchFieldException.class; /** * Build reflect bytecode from accessor list. @@ -158,8 +158,8 @@ public Class bulid() { i++; } } - if (exeptionClass != null) - throwExIntParam(mv, exeptionClass); + if (exceptionClass != null) + throwExIntParam(mv, exceptionClass); else mv.visitInsn(RETURN); mv.visitMaxs(0, 0); @@ -224,8 +224,8 @@ public Class bulid() { } } - if (exeptionClass != null) - throwExIntParam(mv, exeptionClass); + if (exceptionClass != null) + throwExIntParam(mv, exceptionClass); else { mv.visitInsn(ACONST_NULL); mv.visitInsn(ARETURN); @@ -251,8 +251,8 @@ public Class bulid() { mv.visitFrame(F_SAME, 0, null, 0, null); i++; } - if (exeptionClass != null) - throwExStrParam(mv, exeptionClass); + if (exceptionClass != null) + throwExStrParam(mv, exceptionClass); else mv.visitInsn(RETURN); mv.visitMaxs(0, 0); // 2,4 @@ -287,8 +287,8 @@ public Class bulid() { mv.visitFrame(F_SAME, 0, null, 0, null); i++; } - if (exeptionClass != null) - throwExStrParam(mv, exeptionClass); + if (exceptionClass != null) + throwExStrParam(mv, exceptionClass); else { mv.visitInsn(ACONST_NULL); mv.visitInsn(ARETURN); @@ -347,7 +347,7 @@ private void internalSetFiled(MethodVisitor mv, Accessor acc) { */ mv.visitVarInsn(ALOAD, 1); mv.visitTypeInsn(CHECKCAST, classNameInternal); - // get VELUE + // get VALUE mv.visitVarInsn(ALOAD, 3); Type fieldType = Type.getType(acc.getType()); Class type = acc.getType(); @@ -355,7 +355,7 @@ private void internalSetFiled(MethodVisitor mv, Accessor acc) { Method conMtd = convMtds.get(type); if (conMtd != null) { - // external converion + // external conversion String clsSig = Type.getInternalName(conMtd.getDeclaringClass()); String mtdName = conMtd.getName(); String mtdSig = Type.getMethodDescriptor(conMtd); @@ -436,7 +436,7 @@ private void throwExStrParam(MethodVisitor mv, Class exCls) { private void ifNotEqJmp(MethodVisitor mv, int param, int value, Label label) { mv.visitVarInsn(ILOAD, param); if (value == 0) { - /* notest forvalue 0 */ + /* notest for value 0 */ mv.visitJumpInsn(IFNE, label); } else if (value == 1) { mv.visitInsn(ICONST_1); diff --git a/accessors-smart/src/main/java/net/minidev/asm/DynamicClassLoader.java b/accessors-smart/src/main/java/net/minidev/asm/DynamicClassLoader.java index b904a96..bdefd99 100644 --- a/accessors-smart/src/main/java/net/minidev/asm/DynamicClassLoader.java +++ b/accessors-smart/src/main/java/net/minidev/asm/DynamicClassLoader.java @@ -18,7 +18,7 @@ import java.lang.reflect.Method; /** - * Simple extension from ClassLoader overiding the loadClass(String name, + * Simple extension from ClassLoader overriding the loadClass(String name, * boolean resolve) method and allowing to register new classes * * @author uriel diff --git a/json-smart/src/main/java/net/minidev/json/JSONArray.java b/json-smart/src/main/java/net/minidev/json/JSONArray.java index 9e6edbe..1a1c257 100644 --- a/json-smart/src/main/java/net/minidev/json/JSONArray.java +++ b/json-smart/src/main/java/net/minidev/json/JSONArray.java @@ -96,7 +96,7 @@ public void merge(Object o2) { } /** - * Explicitely Serialize Object as JSon String + * Explicitly Serialize Object as JSon String */ public String toJSONString() { return toJSONString(this, JSONValue.COMPRESSION); @@ -107,14 +107,14 @@ public String toJSONString(JSONStyle compression) { } /** - * Override natif toStirng() + * Override native toString() */ public String toString() { return toJSONString(); } /** - * JSONAwareEx inferface + * JSONAwareEx interface * * @param compression * compression param diff --git a/json-smart/src/main/java/net/minidev/json/JSONNavi.java b/json-smart/src/main/java/net/minidev/json/JSONNavi.java index 7a5b378..d508ffd 100644 --- a/json-smart/src/main/java/net/minidev/json/JSONNavi.java +++ b/json-smart/src/main/java/net/minidev/json/JSONNavi.java @@ -451,7 +451,7 @@ public JSONNavi object() { return this; if (isArray()) failure("can not use Object feature on Array.", null); - failure("Can not use current possition as Object", null); + failure("Can not use current position as Object", null); } else { current = mapper.createObject(); } @@ -477,7 +477,7 @@ public JSONNavi array() { return this; if (isObject()) failure("can not use Object feature on Array.", null); - failure("Can not use current possition as Object", null); + failure("Can not use current position as Object", null); } else { current = mapper.createArray(); } diff --git a/json-smart/src/main/java/net/minidev/json/JSONObject.java b/json-smart/src/main/java/net/minidev/json/JSONObject.java index 7218217..9c7ac5e 100644 --- a/json-smart/src/main/java/net/minidev/json/JSONObject.java +++ b/json-smart/src/main/java/net/minidev/json/JSONObject.java @@ -209,7 +209,7 @@ protected static JSONObject merge(JSONObject o1, Object o2) { return o1; if (o2 instanceof JSONObject) return merge(o1, (JSONObject) o2); - throw new RuntimeException("JSON megre can not merge JSONObject with " + o2.getClass()); + throw new RuntimeException("JSON merge can not merge JSONObject with " + o2.getClass()); } private static JSONObject merge(JSONObject o1, JSONObject o2) { diff --git a/json-smart/src/main/java/net/minidev/json/JSONStyle.java b/json-smart/src/main/java/net/minidev/json/JSONStyle.java index a024c6d..57d6735 100644 --- a/json-smart/src/main/java/net/minidev/json/JSONStyle.java +++ b/json-smart/src/main/java/net/minidev/json/JSONStyle.java @@ -152,7 +152,7 @@ public void objectStop(Appendable out) throws IOException { } /** - * Start the first Obeject element + * Start the first Object element */ public void objectFirstStart(Appendable out) throws IOException { } diff --git a/json-smart/src/main/java/net/minidev/json/JSONValue.java b/json-smart/src/main/java/net/minidev/json/JSONValue.java index 97b8aea..4272662 100644 --- a/json-smart/src/main/java/net/minidev/json/JSONValue.java +++ b/json-smart/src/main/java/net/minidev/json/JSONValue.java @@ -36,10 +36,10 @@ /** * JSONValue is the helper class In most of case you should use those static - * methode to user JSON-smart + * method to user JSON-smart * * - * The most commonly use methode are {@link #parse(String)} + * The most commonly use method are {@link #parse(String)} * {@link #toJSONString(Object)} * * @author Uriel Chemouni <uchemouni@gmail.com> diff --git a/json-smart/src/main/java/net/minidev/json/JStylerObj.java b/json-smart/src/main/java/net/minidev/json/JStylerObj.java index 0d69b8e..aa16675 100644 --- a/json-smart/src/main/java/net/minidev/json/JStylerObj.java +++ b/json-smart/src/main/java/net/minidev/json/JStylerObj.java @@ -181,7 +181,7 @@ public static boolean isSpecial(char c) { } public static boolean isUnicode(char c) { - // ANSI controle char + // ANSI control char return ((c >= '\u0000' && c <= '\u001F') || // DEL or unicode ctrl (c >= '\u007F' && c <= '\u009F') || @@ -261,7 +261,7 @@ public void escape(String s, Appendable out) { } } } catch (IOException e) { - throw new RuntimeException("Impossible Exeption"); + throw new RuntimeException("Impossible Exception"); } } } diff --git a/json-smart/src/main/java/net/minidev/json/parser/JSONParser.java b/json-smart/src/main/java/net/minidev/json/parser/JSONParser.java index 4ec8531..25e6f99 100644 --- a/json-smart/src/main/java/net/minidev/json/parser/JSONParser.java +++ b/json-smart/src/main/java/net/minidev/json/parser/JSONParser.java @@ -97,7 +97,7 @@ public class JSONParser { /** * strict RFC4627 mode. * - * slower than PERMISIF MODE. + * slower than PERMISSIVE MODE. * * @since 1.0.6 */ @@ -139,7 +139,7 @@ private JSONParserReader getPStream() { } /** - * cached construcor + * cached constructor * * @return instance of JSONParserInputStream */ @@ -150,7 +150,7 @@ private JSONParserInputStream getPBinStream() { } /** - * cached construcor + * cached constructor * * @return instance of JSONParserString */ @@ -161,7 +161,7 @@ private JSONParserString getPString() { } /** - * cached construcor + * cached constructor * * @return instance of JSONParserByteArray */ diff --git a/json-smart/src/main/java/net/minidev/json/reader/JsonWriter.java b/json-smart/src/main/java/net/minidev/json/reader/JsonWriter.java index 8a73d64..3d4a3a8 100644 --- a/json-smart/src/main/java/net/minidev/json/reader/JsonWriter.java +++ b/json-smart/src/main/java/net/minidev/json/reader/JsonWriter.java @@ -54,7 +54,7 @@ public WriterByInterface(Class _interface, JsonWriterI _writer) { } /** - * try to find a Writer by Cheking implemented interface + * try to find a Writer by Checking implemented interface * @param clazz class to serialize * @return a Writer or null */ diff --git a/json-smart/src/main/java/net/minidev/json/writer/CompessorMapper.java b/json-smart/src/main/java/net/minidev/json/writer/CompessorMapper.java index aab1319..b4612d1 100644 --- a/json-smart/src/main/java/net/minidev/json/writer/CompessorMapper.java +++ b/json-smart/src/main/java/net/minidev/json/writer/CompessorMapper.java @@ -94,7 +94,7 @@ private void startKey(String key) throws IOException { @Override public void setValue(Object current, String key, Object value) throws IOException { // System.out.println("setValue(" + key + "," + value + ")"); - // if comprossor => data allready writed + // if compressor => data already be written if (isCompressor(value)) { addComma(); return; diff --git a/json-smart/src/main/java/net/minidev/json/writer/JsonReaderI.java b/json-smart/src/main/java/net/minidev/json/writer/JsonReaderI.java index db54df7..5412773 100644 --- a/json-smart/src/main/java/net/minidev/json/writer/JsonReaderI.java +++ b/json-smart/src/main/java/net/minidev/json/writer/JsonReaderI.java @@ -99,7 +99,7 @@ public Object createArray() { } /** - * Allow a mapper to converte a temprary structure to the final data format. + * Allow a mapper to convert a temporary structure to the final data format. * * example: convert an List<Integer> to an int[] */ diff --git a/json-smart/src/main/java/net/minidev/json/writer/MapperRemapped.java b/json-smart/src/main/java/net/minidev/json/writer/MapperRemapped.java index 9705279..181a3f3 100644 --- a/json-smart/src/main/java/net/minidev/json/writer/MapperRemapped.java +++ b/json-smart/src/main/java/net/minidev/json/writer/MapperRemapped.java @@ -8,7 +8,7 @@ import net.minidev.json.parser.ParseException; /** - * Simple solution to supporr on read filed renaming + * Simple solution to support on read field renaming * * @author uriel * diff --git a/json-smart/src/main/java/net/minidev/json/writer/UpdaterMapper.java b/json-smart/src/main/java/net/minidev/json/writer/UpdaterMapper.java index 8c8cd2f..afc52ca 100644 --- a/json-smart/src/main/java/net/minidev/json/writer/UpdaterMapper.java +++ b/json-smart/src/main/java/net/minidev/json/writer/UpdaterMapper.java @@ -81,7 +81,7 @@ public Object createArray() { } /** - * Allow a mapper to converte a temprary structure to the final data format. + * Allow a mapper to convert a temporary structure to the final data format. * * example: convert an List<Integer> to an int[] */