Make recommended changes
- Implicit casting - Use same_string
This commit is contained in:
@@ -37,7 +37,7 @@ feature
|
||||
state: JSON_OBJECT
|
||||
do
|
||||
Result := Precursor
|
||||
Result.put (create {JSON_NUMBER}.make_integer (max), create {JSON_STRING}.make_json ("max"))
|
||||
Result.put (create {JSON_NUMBER}.make_integer (max), "max")
|
||||
end
|
||||
|
||||
max: INTEGER
|
||||
|
||||
@@ -37,7 +37,7 @@ feature
|
||||
state: JSON_OBJECT
|
||||
do
|
||||
Result := Precursor
|
||||
Result.put (create {JSON_NUMBER}.make_integer (min), create {JSON_STRING}.make_json ("min"))
|
||||
Result.put (create {JSON_NUMBER}.make_integer (min), "min")
|
||||
end
|
||||
|
||||
min: INTEGER
|
||||
|
||||
@@ -42,9 +42,9 @@ feature
|
||||
state: JSON_OBJECT
|
||||
do
|
||||
create Result.make
|
||||
Result.put (create {JSON_STRING}.make_json ("WSF_REGEXP_VALIDATOR"), create {JSON_STRING}.make_json ("name"))
|
||||
Result.put (create {JSON_STRING}.make_json (regexp_string), create {JSON_STRING}.make_json ("expression"))
|
||||
Result.put (create {JSON_STRING}.make_json (error), create {JSON_STRING}.make_json ("error"))
|
||||
Result.put (create {JSON_STRING}.make_json ("WSF_REGEXP_VALIDATOR"), "name")
|
||||
Result.put (create {JSON_STRING}.make_json (regexp_string), "expression")
|
||||
Result.put (create {JSON_STRING}.make_json (error), "error")
|
||||
end
|
||||
|
||||
regexp_string: STRING
|
||||
|
||||
@@ -19,8 +19,8 @@ feature
|
||||
state: JSON_OBJECT
|
||||
do
|
||||
create Result.make
|
||||
Result.put (create {JSON_STRING}.make_json (generator), create {JSON_STRING}.make_json ("name"))
|
||||
Result.put (create {JSON_STRING}.make_json (error), create {JSON_STRING}.make_json ("error"))
|
||||
Result.put (create {JSON_STRING}.make_json (generator), "name")
|
||||
Result.put (create {JSON_STRING}.make_json (error), "error")
|
||||
end
|
||||
|
||||
is_valid (input: G): BOOLEAN
|
||||
|
||||
Reference in New Issue
Block a user