Skip to content

Commit

Permalink
Merge branch 'jsonp-typo' into 'dev'
Browse files Browse the repository at this point in the history
Fix typo "intenal"

See merge request monticore/monticore!921
  • Loading branch information
MisterErwin committed Dec 21, 2023
2 parents cfafd19 + 868dbb5 commit a3fc14d
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public void member(String kind, JsonPrinter value) {
* @param value The double value of the Json attribute
*/
public void value(double value) {
intenalNumberValue(String.valueOf(value));
internalNumberValue(String.valueOf(value));
}

/**
Expand All @@ -405,7 +405,7 @@ public void value(double value) {
* @param value The long value of the Json attribute
*/
public void value(long value) {
intenalNumberValue(String.valueOf(value));
internalNumberValue(String.valueOf(value));
}

/**
Expand All @@ -414,7 +414,7 @@ public void value(long value) {
* @param value The float value of the Json attribute
*/
public void value(float value) {
intenalNumberValue(String.valueOf(value));
internalNumberValue(String.valueOf(value));
}

/**
Expand All @@ -424,7 +424,7 @@ public void value(float value) {
* @param value The int value of the Json attribute
*/
public void value(int value) {
intenalNumberValue(String.valueOf(value));
internalNumberValue(String.valueOf(value));
}

/**
Expand Down Expand Up @@ -454,7 +454,7 @@ else if (!currElements.isEmpty() && currElements.peek().isJsonObject()) {
* @param value The String value of the Json attribute
*/
public void value(String value) {
intenalStringValue("\"" +escapeSpecialChars(value) +"\"");
internalStringValue("\"" +escapeSpecialChars(value) +"\"");
}

/**
Expand All @@ -464,7 +464,7 @@ public void value(String value) {
* @param value The String encoded in JSON
*/
public void valueJson(String value) {
intenalStringValue(value);
internalStringValue(value);
}

/**
Expand All @@ -473,7 +473,7 @@ public void valueJson(String value) {
* @param value The JsonPrinter of the value object
*/
public void value(JsonPrinter value) {
intenalStringValue(value.getContent());
internalStringValue(value.getContent());
}

////////////////////////////////////////////////////////////////////////////////////////
Expand All @@ -485,7 +485,7 @@ protected String escapeSpecialChars(String input) {
return StringEscapeUtils.escapeJson(input);
}

protected void intenalNumberValue(String value) {
protected void internalNumberValue(String value) {
if (!currElements.isEmpty() && currElements.peek().isJsonArray()) {
JsonArray parent = currElements.peek().getAsJsonArray();
parent.add(createJsonNumber(String.valueOf(value)));
Expand All @@ -500,7 +500,7 @@ else if (!currElements.isEmpty() && currElements.peek().isJsonObject()) {
}
}

protected void intenalStringValue(String value) {
protected void internalStringValue(String value) {
if (!currElements.isEmpty() && currElements.peek().isJsonArray()) {
JsonArray parent = currElements.peek().getAsJsonArray();
parent.add(createJsonString(value));
Expand Down

0 comments on commit a3fc14d

Please sign in to comment.