Skip to content

Commit 94b9581

Browse files
committed
[Java] Add Javadoc to generalLiteral.
1 parent 22b0451 commit 94b9581

File tree

1 file changed

+7
-1
lines changed
  • sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/java

1 file changed

+7
-1
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/java/JavaUtil.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@ public static String charset(final String encoding)
221221
}
222222
}
223223

224+
/**
225+
* Generate a literal value to be used in code generation.
226+
*
227+
* @param type of the lateral value.
228+
* @param value of the lateral.
229+
* @return a String representation of the Java literal.
230+
*/
224231
public static String generateLiteral(final PrimitiveType type, final String value)
225232
{
226233
String literal = "";
@@ -263,5 +270,4 @@ public static String generateLiteral(final PrimitiveType type, final String valu
263270

264271
return literal;
265272
}
266-
267273
}

0 commit comments

Comments
 (0)