Skip to content

Commit c06f1ec

Browse files
fixing javadocs...
1 parent b201c72 commit c06f1ec

File tree

10 files changed

+24
-25
lines changed

10 files changed

+24
-25
lines changed

SerialX-core/src/main/java/org/ugp/serialx/Serializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ public void setFormat(byte format)
737737
</tr>
738738
<tr>
739739
<td>{@link File}</td>
740-
<td>{@link Serializer#serializeTo(File)}</td>
740+
<td>{@link Serializer#serializeTo(File, Object...)}</td>
741741
</tr>
742742
<tr>
743743
<td>{@link Appendable}</td>

SerialX-core/src/main/java/org/ugp/serialx/converters/DataParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public interface DataParser
4646
public static final ParserRegistry REGISTRY = new ParserRegistry(new VariableParser(), new StringConverter(), new ProtocolConverter(), new NumberConverter(), new BooleanConverter(), new CharacterConverter(), new NullConverter(), new SerializableBase64Converter());
4747

4848
/**
49-
* @param myHomeRegistry | Registry where this parser is registered provided by {@link DataParser#parse(String, boolean, Class, Object...)} otherwise it demands on implementation (it should not be null)!
49+
* @param myHomeRegistry | Registry where this parser is registered provided by {@link ParserRegistry#parse(String, boolean, Class, Object...)} otherwise it demands on implementation (it should not be null)!
5050
* @param str | Source string, preferably trimed!
5151
* @param args | Some additional args. This can be anything and it demands on implementation of DataParser. Default SerialX API implementation will provide one optional argument with {@link Scope} that value was loaded from!
5252
*

SerialX-core/src/main/java/org/ugp/serialx/converters/ProtocolConverter.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class ProtocolConverter implements DataConverter
6868
* Note: Whole concept of SerialX API is about avoiding classic Java serialization from many reasons so you most likely want this on true! Also protocol will be almost certainly faster classic serialization!<br>
6969
* Note: This will only work when this converter is registered in {@link ParserRegistry} together with {@link SerializableBase64Converter}!
7070
*
71-
* @since 1.0.0 (moved to {@link SerializableBase64Converter} since 1.3.0 and since 1.3.5 into {@link ObjectConverter})
71+
* @since 1.0.0 (moved to {@link SerializableBase64Converter} since 1.3.0 and since 1.3.5 into {@link ProtocolConverter})
7272
*/
7373
protected boolean useBase64IfCan = false;
7474

@@ -95,7 +95,7 @@ public Object parse(ParserRegistry myHomeRegistry, String str, Object... compile
9595
/**
9696
* @param myHomeRegistry | Same as {@link DataParser#parse(ParserRegistry, String, Object...)}.
9797
* @param objClass | Class of object to parse using {@link SerializationProtocol}.
98-
* @param str | String that starts with {@link Class} of object to deserialized (it will be used with {@link SerializationProtocol#unserializeObj(ProtocolRegistry, Class, Object...)}).
98+
* @param str | String that starts with {@link Class} of object to deserialized (it will be used with {@link SerializationProtocol#unserializeObj(ProtocolRegistry, long, Class, Object...)}).
9999
* @param compilerArgs | Same as {@link DataParser#parse(ParserRegistry, String, Object...)}.
100100
*
101101
* @return Object od objClass parsed from str in accordance with compilerArgs!
@@ -108,7 +108,7 @@ protected Object parse(ParserRegistry myHomeRegistry, Class<?> objClass, String
108108
{
109109
StringBuilder sb = new StringBuilder(str);
110110
sb.setCharAt(str.indexOf(' '), '=');
111-
return myHomeRegistry.parse(sb.toString(), compilerArgs); //Should work only when ObjectConverter and VariableConverter are present...
111+
return myHomeRegistry.parse(sb.toString(), compilerArgs); //Should work only when ProtocolConverter and VariableConverter are present...
112112
}
113113

114114
if (compilerArgs.length < 5)
@@ -331,7 +331,7 @@ public Set<Class<?>> getInvokableClasses()
331331
* @param args | Parser args to get protocol from!
332332
*
333333
* @return Protocol obtained from args or from {@link SerializationProtocol#REGISTRY} if there is no protocol or {@link ProtocolRegistry} in args (index 3).<br>
334-
* Note: This is mainly used by {@link ObjectConverter}!
334+
* Note: This is mainly used by {@link ProtocolConverter}!
335335
*
336336
* @since 1.3.5
337337
*/
@@ -449,7 +449,7 @@ public static Object InvokeStaticFunc(Class<?> cls, Class<?> oldCls, String name
449449
}
450450

451451
/**
452-
* Used internally by {@link ObjectConverter}!<br>
452+
* Used internally by {@link ProtocolConverter}!<br>
453453
* Dummy class with no purpose except to be mark (.class) for shortened scope expression such as:
454454
* <code>
455455
* shortenedSelectorLikeScope {<br><br>

SerialX-core/src/main/java/org/ugp/serialx/converters/SerializableBase64Converter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <td>new ArrayList()</td>
3939
<td>new int[] {5, 5, 5}</td>
4040
</tr>
4141
</table>
42-
* Note: In most of the cases {@link ObjectConverter} and {@link SerializationProtocol} should be used as preferable alternative!<br>
42+
* Note: In most of the cases {@link SerializationProtocol} and therefore {@link ProtocolConverter} should be used as preferable alternative!<br>
4343
* Note: In order to avoid conflicts with JUSS syntax, this converter serializes and deserializes by using {@link Base64} and {@link URLEncoder} with addition of all % are being replaced by #!
4444
*
4545
* @author PETO

SerialX-core/src/main/java/org/ugp/serialx/converters/StringConverter.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
import static org.ugp.serialx.Utils.indexOfNotInObj;
55

66
import java.io.IOException;
7+
import java.util.HashMap;
78
import java.util.Map;
89

9-
import org.ugp.serialx.Registry;
10-
1110
/**
1211
* This converter is capable of converting {@link String}.
1312
* Its case sensitive!
@@ -30,7 +29,7 @@
3029
<td>new String("Hello world!")</td>
3130
</tr>
3231
</table>
33-
* If you enter string in ${yourString}, "yourString" will be returned by {@link StringConverter#toString(Registry, Object, Object...)} according to {@link StringConverter#CodeInsertion(String)}!
32+
* If you enter string in ${yourString}, "yourString" will be returned by {@link StringConverter#toString} according to {@link StringConverter#DirectCode}!
3433
*
3534
* @author PETO
3635
*
@@ -155,9 +154,9 @@ public void setSerializeStringNormally(boolean serializeStringNormally)
155154
}
156155

157156
/**
158-
* @param obj | Object to stringify directly.
157+
* @param obj | Object to stringify directly (without formating it as string).
159158
*
160-
* @return "${" + obj + "}" - if this is be inserted into {@link StringConverter#toString(Registry, Object, Object...)}, it will be returned without ${ and }!
159+
* @return "${" + obj + "}" - if this is be inserted into {@link StringConverter#toString}, it will be returned without ${ and }!
161160
*
162161
* @since 1.3.5
163162
*/

SerialX-core/src/main/java/org/ugp/serialx/converters/VariableParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/**
1212
* This parser is capable of reading variables from {@link GenericScope} by using <code>$</code>!<br>
13-
* {@link VariableParser#parse(String, Object...)} requires one additional Scope argument in args... at index 0!<br>
13+
* {@link VariableParser#parse} requires one additional Scope argument in args... at index 0!<br>
1414
* It also manages access member operator also known as separator <code>"."</code>.<br>
1515
* Its case sensitive!<br>
1616
* Exact outputs of this converter are based on inserted scope!

SerialX-juss/src/main/java/org/ugp/serialx/juss/JussSerializer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public Imports getImports()
192192
}
193193

194194
/**
195-
* @param absoluteClone | If true this scope will be cloned using {@link Serializer#Clone(Object, Registry, Object[], Object...)}, if false {@link Scope#clone()}!
195+
* @param absoluteClone | If true this scope will be cloned using {@link Utils#Clone}, if false {@link Scope#clone()}!
196196
*
197197
* @return Clone of this scope!
198198
*
@@ -622,7 +622,7 @@ else if (ch <= ' ') // Handle blanks, skip unnecessary
622622
}
623623

624624
/**
625-
* @deprecated (1.3.9) DO NOT USE, IT IS SLOW AND POORLY WRITTEN, USE {@link JussSerializer#readAndParse(Collection, Reader, Object...)} INSTEAD!
625+
* @deprecated (1.3.9) DO NOT USE, IT IS SLOW AND POORLY WRITTEN, USE {@link JussSerializer#readAndParse(Collection, Reader, int, Object...)} INSTEAD!
626626
*
627627
* @return Formated content of reader ready to parse! Should not modify this object in any way!
628628
*
@@ -710,7 +710,7 @@ else if (ch == '}' || ch == ']')
710710
}
711711

712712
/**
713-
* @deprecated (1.3.9) DO NOT USE, IT IS SLOW AND POORLY WRITTEN, USE {@link JussSerializer#readAndParse(Collection, Reader, Object...)} INSTEAD!
713+
* @deprecated (1.3.9) DO NOT USE, IT IS SLOW AND POORLY WRITTEN, USE {@link JussSerializer#readAndParse(Collection, Reader, int, Object...)} INSTEAD!
714714
*
715715
* @return List of objects parsed from given formatted string!
716716
*
@@ -791,9 +791,9 @@ else if (ch == '"')
791791
/**
792792
* @return Object parsed from str!
793793
* <br><br>
794-
* Note: Used by {@link JussSerializer#splitAndParse(String, int, Object...)}!
794+
* Note: Used by {@link JussSerializer#readAndParse(Collection, Reader, int, Object...)}!
795795
*
796-
* @see DataParser#parseObj(Registry, String, Object...)
796+
* @see ParserRegistry#parse(ParserRegistry, String, Object...)
797797
*
798798
* @since 1.3.2
799799
*/

SerialX-juss/src/main/java/org/ugp/serialx/juss/converters/VariableConverter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
/**
1717
* This converter is capable of converting {@link Map.Entry} and reading variables from {@link GenericScope} by using <code>$</code>!<br>
18-
* {@link VariableConverter#parse(String, Object...)} requires one additional Scope argument in args... at index 0!<br>
18+
* {@link VariableConverter#parse} requires one additional Scope argument in args... at index 0!<br>
1919
* It manages assign operator <code>=</code> as well as access member operator also known as separator <code>"."</code>.<br>
2020
* Its case sensitive!<br>
2121
* Exact outputs of this converter are based on inserted scope!
@@ -38,7 +38,7 @@ public VariableConverter()
3838

3939
/**
4040
* @deprecated (1.3.9) IF YOU WANT THIS TO BE TRUE, YOU WANT TO USE <code>JsonVariableConverter</code> FROM <code>json-serializer</code> MODULE!
41-
* FORMATING IS NO DONE IN {@link VariableConverter#appendEntry(StringBuilder, CharSequence, Object, Object...)}
41+
* ORMATING IS NO DONE IN <code>toString</code> FUNCTION!
4242
*
4343
* @param jsonStyle | If true, this converter will be using Json style of variables ("key" : value)!
4444
*
@@ -188,7 +188,7 @@ public Object setMemberOperator(ParserRegistry myHomeRegistry, Object source, St
188188

189189
/**
190190
* @deprecated (1.3.9) IF YOU WANT THIS TO BE TRUE, YOU WANT TO USE <code>JsonVariableConverter</code> FROM <code>json-serializer</code> MODULE!
191-
* FORMATING IS NO DONE IN {@link VariableConverter#appendEntry(StringBuilder, CharSequence, Object, Object...)}
191+
* ORMATING IS NO DONE IN <code>toString</code> FUNCTION!
192192
*
193193
* @return True if variables will be serialized using json style ("key" : value)!
194194
*
@@ -202,7 +202,7 @@ public boolean isJsonStyle()
202202

203203
/**
204204
* @deprecated (1.3.9) IF YOU WANT THIS TO BE TRUE, YOU WANT TO USE <code>JsonVariableConverter</code> FROM <code>json-serializer</code> MODULE!
205-
* FORMATING IS NO DONE IN {@link VariableConverter#appendEntry(StringBuilder, CharSequence, Object, Object...)}
205+
* FORMATING IS NO DONE IN <code>toString</code> FUNCTION!
206206
*
207207
* @param jsonStyle | If true, this converter will be using Json style of variables ("key" : value)!
208208
*

SerialX-juss/src/main/java/org/ugp/serialx/juss/protocols/SelfSerializableProtocol.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class SelfSerializableProtocol<T extends SelfSerializable> extends Univer
1515
{
1616
/**
1717
* @param applicableFor | Class implementing {@link SelfSerializable} that can be serialized using this protocol.<br>
18-
* Note: Passing {@link SelfSerializable#getClass()} will make this protocol universal and work for any {@link SelfSerializable} instance, this can be considered unsafe in some cases...
18+
* Note: Passing <code>{@link SelfSerializable}.class</code> will make this protocol universal and work for any {@link SelfSerializable} instance, this can be considered a security risk in some cases...
1919
*
2020
* @since 1.3.8
2121
*/

SerialX-operators/src/main/java/org/ugp/serialx/converters/operators/ArithmeticOperators.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
public class ArithmeticOperators implements DataParser
2424
{
2525
/**
26-
* Operator characters recognized by {@link ArithmeticOperators}, operators can be any combination of provided characters. Exact behavior is handled by {@link ArithmeticOperators#operator(Object, String, Object)}.<br> Intended for override, should not be null or empty!
26+
* Operator characters recognized by {@link ArithmeticOperators}, operators can be any combination of provided characters. Exact behavior is handled by {@link ArithmeticOperators#operator}.<br> Intended for override, should not be null or empty!
2727
*
2828
* @since 1.3.8
2929
*/

0 commit comments

Comments
 (0)