The following document contains the results of SpotBugs
SpotBugs Version is 3.1.12
Threshold is medium
Effort is default
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Nullcheck of response at line 178 of value previously dereferenced in ejava.examples.ejbwar.inventory.client.InventoryJaxRSClientImpl.createProduct(Product, String) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 178 | Medium |
Nullcheck of response at line 140 of value previously dereferenced in ejava.examples.ejbwar.inventory.client.InventoryJaxRSClientImpl.deleteCategory(int) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 140 | Medium |
Nullcheck of response at line 286 of value previously dereferenced in ejava.examples.ejbwar.inventory.client.InventoryJaxRSClientImpl.deleteProduct(int) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 286 | Medium |
Nullcheck of response at line 96 of value previously dereferenced in ejava.examples.ejbwar.inventory.client.InventoryJaxRSClientImpl.findCategoryByName(String, int, int) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 96 | Medium |
Nullcheck of response at line 205 of value previously dereferenced in ejava.examples.ejbwar.inventory.client.InventoryJaxRSClientImpl.findProductsByName(String, int, int) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 205 | Medium |
Nullcheck of response at line 118 of value previously dereferenced in ejava.examples.ejbwar.inventory.client.InventoryJaxRSClientImpl.getCategory(int) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 118 | Medium |
Nullcheck of response at line 229 of value previously dereferenced in ejava.examples.ejbwar.inventory.client.InventoryJaxRSClientImpl.getProduct(int) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 229 | Medium |
Nullcheck of response at line 253 of value previously dereferenced in ejava.examples.ejbwar.inventory.client.InventoryJaxRSClientImpl.updateProduct(Product) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 253 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Return value of java.util.List.size() ignored, but method has no side effect | STYLE | RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT | 71 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
The class name ejava.examples.ejbwar.inventory.rs.Application shadows the simple name of the superclass javax.ws.rs.core.Application | BAD_PRACTICE | NM_SAME_SIMPLE_NAME_AS_SUPERCLASS | 10 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in ejava.examples.ejbwar.jaxrs.JAXBUtils.unmarshal(String, Class): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 55 | High |