Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.resteasy.cdi.validation;
 
 
 import javax.ws.rs.GET;

Author(s):
Ron Sigal
Version:
$Revision: 1.1 $ Copyright Dec 25, 2012
@Path("/")
@SumConstraint(min=3, max=17)
public class ErroneousResourceImpl implements ErroneousResource
   @Inject
   private Logger log;
   
   @Inject
   @Min(13)
   private int numberOne;
   
   private int numberTwo;
   
   @GET
   @Path("incorrect/test/{num}")
   public Response test(@Min(5) @Max(10) @PathParam("num"int num)
   {
      .info("entering ErroneousResourceImpl.test()");
      ..println("entering testClassValidator(): numberOne: " +  + ", numberTwo: " + );
      return Response.ok().build();
   }
   @Override
   public int getNumberOne()
   {
      return ;
   }
   @Max(13) 
   @Override
   public int getNumberTwo()
   {
      return ;
   }
   @Override
   public void setNumberOne(int one)
   {
       = one;
   }
   @Override
   @Inject 
   public void setNumberTwo(@NumberTwoBinding int two)
   {
       = two;
   }
New to GrepCode? Check out our FAQ X