1 22 package org.jboss.test.aop.beforeafter; 23 24 29 public class POJO 30 { 31 int i; 32 33 SubValue subValue; 34 SuperValue superValue; 35 36 public POJO() 37 { 38 39 } 40 41 public POJO(boolean error, int i, long l, String s) throws TestException 42 { 43 if (error) throw new TestException(); 44 } 45 46 public POJO(SuperValue superValue, int i) 47 { 48 49 } 50 51 public int method(boolean error)throws TestException 52 { 53 if (error) throw new TestException(); 54 55 return 1; 56 } 57 58 public int method(boolean error, int i, long l, String s) throws TestException 59 { 60 if (error) throw new TestException(); 61 62 return i; 63 } 64 65 public POJO method(boolean error, int i, long l, String s, int i2) throws TestException 66 { 67 if (error) throw new TestException(); 68 69 return this; 70 } 71 72 public void method() 73 { 74 75 } 76 77 public SuperValue method(SubValue sup, SubValue sub) 78 { 79 return sub; 80 } 81 82 public void method(SuperValue sup, SubValue sub) 83 { 84 85 } 86 87 public SubValue method(SubValue subValue, int i) 88 { 89 return subValue; 90 } 91 92 public SuperValue method(SuperValue superValue, int i) 93 { 94 return superValue; 95 } 96 } 97 | Popular Tags |