Update of /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock2/impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31048/input/javasrc/biz/xsoftware/mock2/impl
Modified Files:
MockObjectImpl.java MockObjectSuperImpl.java
Log Message:
add findbugs, checkstyle to mocklib.
Index: MockObjectImpl.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock2/impl/MockObjectImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** MockObjectImpl.java 16 Feb 2006 15:37:34 -0000 1.2
--- MockObjectImpl.java 19 Feb 2006 19:20:52 -0000 1.3
***************
*** 19,23 ****
InvocationHandler {
private static Set<Method> isMethodInSuper=new HashSet<Method>();
! Class[]classes;
static {
--- 19,23 ----
InvocationHandler {
private static Set<Method> isMethodInSuper=new HashSet<Method>();
! private Class[] classes;
static {
***************
*** 53,57 ****
Class c = method.getReturnType();
if(!Object.class.isAssignableFrom(c) && !"void".equals(c.getName())) {
! throw new RuntimeException("Must call addReturnValue and specify a non-null value as method="+method.getName()+" returns a primitive value");
}
}
--- 53,58 ----
Class c = method.getReturnType();
if(!Object.class.isAssignableFrom(c) && !"void".equals(c.getName())) {
! throw new RuntimeException("Must call addReturnValue " +
! "and specify a non-null value as method="+method.getName()+" returns a primitive value");
}
}
Index: MockObjectSuperImpl.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock2/impl/MockObjectSuperImpl.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** MockObjectSuperImpl.java 17 Feb 2006 15:07:40 -0000 1.5
--- MockObjectSuperImpl.java 19 Feb 2006 19:20:52 -0000 1.6
***************
*** 27,31 ****
* List of the methods been called ,and store them
*/
! Map retVal=new HashMap();
/**
* List of the methods that have been expected
--- 27,31 ----
* List of the methods been called ,and store them
*/
! private Map retVal=new HashMap();
/**
* List of the methods that have been expected
***************
*** 140,144 ****
}
! synchronized protected Object methodCalledImpl(String methodName,
Object[] parameters) {
--- 140,144 ----
}
! protected synchronized Object methodCalledImpl(String methodName,
Object[] parameters) {
|