@ Override public Link deserialize ( JsonParser jp , DeserializationContext ctxt ) throws IOException { String tmp = jp . getText ( ) ; // { validate ( jp , tmp , "{" ) ; jp . nextToken ( ) ; // skip over { to the rel String rel = jp . getText ( ) ; validateText ( jp , rel ) ; jp . nextToken ( ) ; // skip over { tmp = jp . getText ( ) ; validate ( jp , tmp , "{" ) ; jp . nextToken ( ) ; // skip over "href" tmp = jp . getText ( ) ; validate ( jp , tmp , "href" ) ; jp . nextToken ( ) ; // skip to "http:// ... " String href = jp . getText ( ) ; validateText ( jp , href ) ; jp . nextToken ( ) ; // skip } tmp = jp . getText ( ) ; validate ( jp , tmp , "}" ) ; jp . nextToken ( ) ; // skip } tmp = jp . getText ( ) ; validate ( jp , tmp , "}" ) ; Link link = new Link ( rel , href ) ; return link ; }
Non whitespace ; could possibly be narrowed