Lint4j ran with the following command line
ant check-petstore
It generated the following warnings:
Buildfile: build.xml check-petstore: components/catalog/src/com/sun/j2ee/blueprints/catalog/dao/GenericCatalogDAO.java:621: (2): The Java VM shutdown method "System.exit()" was detected. components/catalog/src/com/sun/j2ee/blueprints/catalog/dao/GenericCatalogDAO.java:625: (2): The Java VM shutdown method "System.exit()" was detected. components/catalog/src/com/sun/j2ee/blueprints/catalog/dao/GenericCatalogDAO.java:629: (2): The Java VM shutdown method "System.exit()" was detected. apps/petstore/src/com/sun/j2ee/blueprints/petstore/controller/web/PetstoreComponentManager.java:82: (2): The interface HttpSessionListener is already implemented by a super class, methods on this class could unintentionally override methods from the super class. components/catalog/src/com/sun/j2ee/blueprints/catalog/client/CatalogHelper.java:166: (1): The local variable "locale" shadows an accessible field with the same name and compatible type in class com.sun.j2ee.blueprints.catalog.client.CatalogHelper components/catalog/src/com/sun/j2ee/blueprints/catalog/client/CatalogHelper.java:191: (1): The local variable "locale" shadows an accessible field with the same name and compatible type in class com.sun.j2ee.blueprints.catalog.client.CatalogHelper components/catalog/src/com/sun/j2ee/blueprints/catalog/client/CatalogHelper.java:239: (1): The local variable "locale" shadows an accessible field with the same name and compatible type in class com.sun.j2ee.blueprints.catalog.client.CatalogHelper components/catalog/src/com/sun/j2ee/blueprints/catalog/client/CatalogHelper.java:274: (1): The local variable "locale" shadows an accessible field with the same name and compatible type in class com.sun.j2ee.blueprints.catalog.client.CatalogHelper components/catalog/src/com/sun/j2ee/blueprints/catalog/client/CatalogHelper.java:315: (1): The local variable "locale" shadows an accessible field with the same name and compatible type in class com.sun.j2ee.blueprints.catalog.client.CatalogHelper components/supplierpo/src/com/sun/j2ee/blueprints/supplierpo/ejb/SupplierOrder.java:259: (2): The Java VM shutdown method "System.exit()" was detected. components/supplierpo/src/com/sun/j2ee/blueprints/supplierpo/ejb/SupplierOrder.java:263: (2): The Java VM shutdown method "System.exit()" was detected. components/supplierpo/src/com/sun/j2ee/blueprints/supplierpo/ejb/SupplierOrder.java:267: (2): The Java VM shutdown method "System.exit()" was detected. components/supplierpo/src/com/sun/j2ee/blueprints/supplierpo/ejb/SupplierOrder.java:271: (2): The Java VM shutdown method "System.exit()" was detected. components/supplierpo/src/com/sun/j2ee/blueprints/supplierpo/ejb/SupplierOrder.java:275: (2): The Java VM shutdown method "System.exit()" was detected. components/purchaseorder/src/com/sun/j2ee/blueprints/purchaseorder/ejb/PurchaseOrder.java:341: (2): The Java VM shutdown method "System.exit()" was detected. components/purchaseorder/src/com/sun/j2ee/blueprints/purchaseorder/ejb/PurchaseOrder.java:345: (2): The Java VM shutdown method "System.exit()" was detected. components/purchaseorder/src/com/sun/j2ee/blueprints/purchaseorder/ejb/PurchaseOrder.java:349: (2): The Java VM shutdown method "System.exit()" was detected. components/purchaseorder/src/com/sun/j2ee/blueprints/purchaseorder/ejb/PurchaseOrder.java:353: (2): The Java VM shutdown method "System.exit()" was detected. components/purchaseorder/src/com/sun/j2ee/blueprints/purchaseorder/ejb/PurchaseOrder.java:357: (2): The Java VM shutdown method "System.exit()" was detected. components/xmldocuments/src/com/sun/j2ee/blueprints/xmldocuments/tpa/TPAInvoiceXDE.java:92: (1): The local variable "systemId" shadows an accessible field with the same name and compatible type in class com.sun.j2ee.blueprints.xmldocuments.tpa.TPAInvoiceXDE components/xmldocuments/src/com/sun/j2ee/blueprints/xmldocuments/tpa/TPAInvoiceXDE.java:186: (2): The Java VM shutdown method "System.exit()" was detected. components/xmldocuments/src/com/sun/j2ee/blueprints/xmldocuments/tpa/TPAInvoiceXDE.java:189: (2): The Java VM shutdown method "System.exit()" was detected. components/xmldocuments/src/com/sun/j2ee/blueprints/xmldocuments/tpa/TPASupplierOrderXDE.java:99: (1): The local variable "systemId" shadows an accessible field with the same name and compatible type in class com.sun.j2ee.blueprints.xmldocuments.tpa.TPASupplierOrderXDE components/xmldocuments/src/com/sun/j2ee/blueprints/xmldocuments/tpa/TPASupplierOrderXDE.java:195: (2): The Java VM shutdown method "System.exit()" was detected. components/xmldocuments/src/com/sun/j2ee/blueprints/xmldocuments/tpa/TPASupplierOrderXDE.java:198: (2): The Java VM shutdown method "System.exit()" was detected. components/xmldocuments/src/com/sun/j2ee/blueprints/xmldocuments/OrderApproval.java:178: (2): The Java VM shutdown method "System.exit()" was detected. components/xmldocuments/src/com/sun/j2ee/blueprints/xmldocuments/OrderApproval.java:181: (2): The Java VM shutdown method "System.exit()" was detected. components/xmldocuments/src/com/sun/j2ee/blueprints/xmldocuments/OrderApproval.java:184: (2): The Java VM shutdown method "System.exit()" was detected. components/xmldocuments/src/com/sun/j2ee/blueprints/xmldocuments/OrderApproval.java:188: (2): The Java VM shutdown method "System.exit()" was detected. apps/opc/src/com/sun/j2ee/blueprints/opc/ejb/TPAInvoiceXDE.java:148: (2): The Java VM shutdown method "System.exit()" was detected. apps/opc/src/com/sun/j2ee/blueprints/opc/ejb/TPAInvoiceXDE.java:151: (2): The Java VM shutdown method "System.exit()" was detected. apps/opc/src/com/sun/j2ee/blueprints/opc/ejb/TPAInvoiceXDE.java:154: (2): The Java VM shutdown method "System.exit()" was detected. apps/opc/src/com/sun/j2ee/blueprints/opc/ejb/TPAInvoiceXDE.java:158: (2): The Java VM shutdown method "System.exit()" was detected. apps/opc/src/com/sun/j2ee/blueprints/opc/ejb/OrderApprovalMDB.java:101: (1): All EJBs are required to have a public no argument constructor. apps/supplier/src/com/sun/j2ee/blueprints/supplier/orderfulfillment/ejb/TPASupplierOrderXDE.java:135: (2): The Java VM shutdown method "System.exit()" was detected. apps/supplier/src/com/sun/j2ee/blueprints/supplier/orderfulfillment/ejb/TPASupplierOrderXDE.java:138: (2): The Java VM shutdown method "System.exit()" was detected. apps/supplier/src/com/sun/j2ee/blueprints/supplier/orderfulfillment/ejb/TPASupplierOrderXDE.java:142: (2): The Java VM shutdown method "System.exit()" was detected. apps/supplier/src/com/sun/j2ee/blueprints/supplier/orderfulfillment/ejb/TPASupplierOrderXDE.java:146: (2): The Java VM shutdown method "System.exit()" was detected. apps/petstore/src/com/sun/j2ee/blueprints/petstore/tools/populate/AddressPopulator.java:94: (1): The local variable "address" shadows an accessible field with the same name and compatible type in class com.sun.j2ee.blueprints.petstore.tools.populate.AddressPopulator apps/petstore/src/com/sun/j2ee/blueprints/petstore/tools/populate/UserPopulator.java:87: (1): The local variable "userHome" shadows an accessible field with the same name and compatible type in class com.sun.j2ee.blueprints.petstore.tools.populate.UserPopulator apps/petstore/src/com/sun/j2ee/blueprints/petstore/tools/populate/UserPopulator.java:124: (2): The Java VM shutdown method "System.exit()" was detected. apps/petstore/src/com/sun/j2ee/blueprints/petstore/tools/populate/UserPopulator.java:127: (2): The Java VM shutdown method "System.exit()" was detected. apps/petstore/src/com/sun/j2ee/blueprints/petstore/tools/populate/UserPopulator.java:131: (2): The Java VM shutdown method "System.exit()" was detected. waf/src/controller/com/sun/j2ee/blueprints/waf/util/I18nUtil.java:129: (2): This catch block should rethrow the Throwable or Error it caught. waf/src/controller/com/sun/j2ee/blueprints/waf/util/I18nUtil.java:151: (2): This catch block should rethrow the Throwable or Error it caught. apps/admin/src/client/com/sun/j2ee/blueprints/admin/client/About.java:201: (1): The type "java.awt.AlphaComposite" of the non-transient field "composite" does not implement the Serializable interface apps/admin/src/client/com/sun/j2ee/blueprints/admin/client/DataSource.java:164: (2): The Java VM shutdown method "System.exit()" was detected. apps/admin/src/client/com/sun/j2ee/blueprints/admin/client/DataSource.java:204: (1): The enclosing class "com.sun.j2ee.blueprints.admin.client.DataSource.RefreshAction" of this inner class must implement Serializable, but it doesnt. apps/admin/src/client/com/sun/j2ee/blueprints/admin/client/DataSource.java:295: (1): The enclosing class "com.sun.j2ee.blueprints.admin.client.DataSource.OrdersViewTableModel" of this inner class must implement Serializable, but it doesnt. apps/admin/src/client/com/sun/j2ee/blueprints/admin/client/DataSource.java:416: (1): The enclosing class "com.sun.j2ee.blueprints.admin.client.DataSource.OrdersApproveTableModel" of this inner class must implement Serializable, but it doesnt. apps/admin/src/client/com/sun/j2ee/blueprints/admin/client/DataSource.java:609: (1): The enclosing class "com.sun.j2ee.blueprints.admin.client.DataSource.ChartModel.RefreshChartAction" of this inner class must implement Serializable, but it doesnt. apps/admin/src/client/com/sun/j2ee/blueprints/admin/client/PetStoreAdminClient.java:455: (2): The Java VM shutdown method "System.exit()" was detected. apps/admin/src/client/com/sun/j2ee/blueprints/admin/client/PetStoreAdminClient.java:351: (2): The Java VM shutdown method "System.exit()" was detected. components/mailer/src/com/sun/j2ee/blueprints/mailer/ejb/Mail.java:173: (2): The Java VM shutdown method "System.exit()" was detected. components/mailer/src/com/sun/j2ee/blueprints/mailer/ejb/Mail.java:176: (2): The Java VM shutdown method "System.exit()" was detected. components/mailer/src/com/sun/j2ee/blueprints/mailer/ejb/Mail.java:179: (2): The Java VM shutdown method "System.exit()" was detected. components/mailer/src/com/sun/j2ee/blueprints/mailer/ejb/Mail.java:183: (2): The Java VM shutdown method "System.exit()" was detected. components/cart/src/com/sun/j2ee/blueprints/cart/ejb/ShoppingCartLocalEJB.java:68: (2): Initializations of EJBs should be delayed until setEntity/SessionContext. waf/src/controller/com/sun/j2ee/blueprints/waf/controller/web/MainServlet.java:117: (2): This catch block should rethrow the Throwable or Error it caught. BUILD SUCCESSFUL Total time: 1 minute 6 seconds