@@ -121,45 +121,46 @@ public IssuesSearchResultIncluded deserialize(JsonParser jp, DeserializationCont
121121 log .log (Level .FINER , "Input data does not match schema 'Issue'" , e );
122122 }
123123
124- // deserialize Case
124+ // deserialize IssueCase
125125 try {
126126 boolean attemptParsing = true ;
127127 // ensure that we respect type coercion as set on the client ObjectMapper
128- if (Case .class .equals (Integer .class )
129- || Case .class .equals (Long .class )
130- || Case .class .equals (Float .class )
131- || Case .class .equals (Double .class )
132- || Case .class .equals (Boolean .class )
133- || Case .class .equals (String .class )) {
128+ if (IssueCase .class .equals (Integer .class )
129+ || IssueCase .class .equals (Long .class )
130+ || IssueCase .class .equals (Float .class )
131+ || IssueCase .class .equals (Double .class )
132+ || IssueCase .class .equals (Boolean .class )
133+ || IssueCase .class .equals (String .class )) {
134134 attemptParsing = typeCoercion ;
135135 if (!attemptParsing ) {
136136 attemptParsing |=
137- ((Case .class .equals (Integer .class ) || Case .class .equals (Long .class ))
137+ ((IssueCase .class .equals (Integer .class ) || IssueCase .class .equals (Long .class ))
138138 && token == JsonToken .VALUE_NUMBER_INT );
139139 attemptParsing |=
140- ((Case .class .equals (Float .class ) || Case .class .equals (Double .class ))
140+ ((IssueCase .class .equals (Float .class ) || IssueCase .class .equals (Double .class ))
141141 && (token == JsonToken .VALUE_NUMBER_FLOAT
142142 || token == JsonToken .VALUE_NUMBER_INT ));
143143 attemptParsing |=
144- (Case .class .equals (Boolean .class )
144+ (IssueCase .class .equals (Boolean .class )
145145 && (token == JsonToken .VALUE_FALSE || token == JsonToken .VALUE_TRUE ));
146- attemptParsing |= (Case .class .equals (String .class ) && token == JsonToken .VALUE_STRING );
146+ attemptParsing |=
147+ (IssueCase .class .equals (String .class ) && token == JsonToken .VALUE_STRING );
147148 }
148149 }
149150 if (attemptParsing ) {
150- tmp = tree .traverse (jp .getCodec ()).readValueAs (Case .class );
151+ tmp = tree .traverse (jp .getCodec ()).readValueAs (IssueCase .class );
151152 // TODO: there is no validation against JSON schema constraints
152153 // (min, max, enum, pattern...), this does not perform a strict JSON
153154 // validation, which means the 'match' count may be higher than it should be.
154- if (!((Case ) tmp ).unparsed ) {
155+ if (!((IssueCase ) tmp ).unparsed ) {
155156 deserialized = tmp ;
156157 match ++;
157158 }
158- log .log (Level .FINER , "Input data matches schema 'Case '" );
159+ log .log (Level .FINER , "Input data matches schema 'IssueCase '" );
159160 }
160161 } catch (Exception e ) {
161162 // deserialization failed, continue
162- log .log (Level .FINER , "Input data does not match schema 'Case '" , e );
163+ log .log (Level .FINER , "Input data does not match schema 'IssueCase '" , e );
163164 }
164165
165166 // deserialize IssueUser
@@ -280,7 +281,7 @@ public IssuesSearchResultIncluded(Issue o) {
280281 setActualInstance (o );
281282 }
282283
283- public IssuesSearchResultIncluded (Case o ) {
284+ public IssuesSearchResultIncluded (IssueCase o ) {
284285 super ("oneOf" , Boolean .FALSE );
285286 setActualInstance (o );
286287 }
@@ -297,7 +298,7 @@ public IssuesSearchResultIncluded(IssueTeam o) {
297298
298299 static {
299300 schemas .put ("Issue" , new GenericType <Issue >() {});
300- schemas .put ("Case " , new GenericType <Case >() {});
301+ schemas .put ("IssueCase " , new GenericType <IssueCase >() {});
301302 schemas .put ("IssueUser" , new GenericType <IssueUser >() {});
302303 schemas .put ("IssueTeam" , new GenericType <IssueTeam >() {});
303304 JSON .registerDescendants (
@@ -311,7 +312,7 @@ public Map<String, GenericType> getSchemas() {
311312
312313 /**
313314 * Set the instance that matches the oneOf child schema, check the instance parameter is valid
314- * against the oneOf child schemas: Issue, Case , IssueUser, IssueTeam
315+ * against the oneOf child schemas: Issue, IssueCase , IssueUser, IssueTeam
315316 *
316317 * <p>It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a
317318 * composed schema (allOf, anyOf, oneOf).
@@ -322,7 +323,7 @@ public void setActualInstance(Object instance) {
322323 super .setActualInstance (instance );
323324 return ;
324325 }
325- if (JSON .isInstanceOf (Case .class , instance , new HashSet <Class <?>>())) {
326+ if (JSON .isInstanceOf (IssueCase .class , instance , new HashSet <Class <?>>())) {
326327 super .setActualInstance (instance );
327328 return ;
328329 }
@@ -339,13 +340,14 @@ public void setActualInstance(Object instance) {
339340 super .setActualInstance (instance );
340341 return ;
341342 }
342- throw new RuntimeException ("Invalid instance type. Must be Issue, Case, IssueUser, IssueTeam" );
343+ throw new RuntimeException (
344+ "Invalid instance type. Must be Issue, IssueCase, IssueUser, IssueTeam" );
343345 }
344346
345347 /**
346- * Get the actual instance, which can be the following: Issue, Case , IssueUser, IssueTeam
348+ * Get the actual instance, which can be the following: Issue, IssueCase , IssueUser, IssueTeam
347349 *
348- * @return The actual instance (Issue, Case , IssueUser, IssueTeam)
350+ * @return The actual instance (Issue, IssueCase , IssueUser, IssueTeam)
349351 */
350352 @ Override
351353 public Object getActualInstance () {
@@ -364,14 +366,14 @@ public Issue getIssue() throws ClassCastException {
364366 }
365367
366368 /**
367- * Get the actual instance of `Case `. If the actual instance is not `Case `, the ClassCastException
368- * will be thrown.
369+ * Get the actual instance of `IssueCase `. If the actual instance is not `IssueCase `, the
370+ * ClassCastException will be thrown.
369371 *
370- * @return The actual instance of `Case `
371- * @throws ClassCastException if the instance is not `Case `
372+ * @return The actual instance of `IssueCase `
373+ * @throws ClassCastException if the instance is not `IssueCase `
372374 */
373- public Case getCase () throws ClassCastException {
374- return (Case ) super .getActualInstance ();
375+ public IssueCase getIssueCase () throws ClassCastException {
376+ return (IssueCase ) super .getActualInstance ();
375377 }
376378
377379 /**
0 commit comments