Commit c8e7f452 authored by Kristof Szabados's avatar Kristof Szabados

embrace the braces.

Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 065f121f
......@@ -2208,16 +2208,18 @@ public final class RecordOfGenerator {
source.append("\t\t }\n");
source.append("\t\t throw new TtcnError( MessageFormat.format( \"Performing {0}of() operation on a template of type "+displayName+" with no exact size.\", op_name ) );\n");
source.append("\t\t case SINGLE_LENGTH_RESTRICTION:\n");
source.append("\t\t if (single_length <= max_size)\n");
source.append("\t\t if (single_length <= max_size) {\n");
source.append("\t\t return new TitanInteger(single_length);\n");
source.append("\t\t }\n");
source.append("\t\t throw new TtcnError( MessageFormat.format( \"Performing {0}of() operation on an invalid template of type "+displayName+". The maximum size ({1}) contradicts the length restriction ({2}).\", op_name, max_size, single_length ) );\n");
source.append("\t\t case RANGE_LENGTH_RESTRICTION:\n");
source.append("\t\t if (max_size == range_length_min_length) {\n");
source.append("\t\t return new TitanInteger(max_size);\n");
source.append("\t\t } else if (max_size > range_length_min_length) {\n");
source.append("\t\t throw new TtcnError( MessageFormat.format( \"Performing {0}of() operation on a template of type "+displayName+" with no exact size.\", op_name ) );\n");
source.append("\t\t } else\n");
source.append("\t\t } else {\n");
source.append("\t\t throw new TtcnError( MessageFormat.format( \"Performing {0}of() operation on an invalid template of type "+displayName+". Maximum size ({1}) contradicts the length restriction ({2}..{3}).\", op_name, max_size, range_length_min_length, range_length_max_length ) );\n");
source.append("\t\t }\n");
source.append("\t\t default:\n");
source.append("\t\t throw new TtcnError(\"Internal error: Template has invalid length restriction type.\");\n");
source.append("\t\t }\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment