2

我正在使用 FindBugs 2.0.2。在使用 findbugs 验证我的项目时,出现以下错误:

In class com.vo.Account
Field com.vo.Account.startDat
Actual type javax.xml.datatype.XMLGregorianCalendar
In Account.java
Class com.vo.Account defines non-transient non-serializable instance field startDat
This Serializable class defines a non-primitive instance field which is neither transient, Serializable, or java.lang.Object, and does not appear to implement the Externalizable interface or the readObject() and writeObject() methods.  Objects of this class will not be deserialized correctly if a non-Serializable object is stored in this field.

并且

class com.demo.AccountResources relies on internal api classes
This class makes use of internal api classes. As these classes are not documented, nor externally released as part of the api, they are subject to change or removal. You should not be using these classes.

Packages that shouldn't be used are:
com.sun.xxx
org.apache.xerces.xxx
org.apache.xalan.xxx

我该如何解决这些错误?提前致谢

4

0 回答 0