Commit de5b1b9d by Juho Juopperi

unused logger suppresswarnings

1 parent 1d5274bf
...@@ -47,6 +47,7 @@ public class Menubean implements MenubeanLocal { ...@@ -47,6 +47,7 @@ public class Menubean implements MenubeanLocal {
@EJB @EJB
private PermissionBeanLocal permbean; private PermissionBeanLocal permbean;
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(Menubean.class); private static final Logger logger = LoggerFactory.getLogger(Menubean.class);
@RolesAllowed(SpecialPermission.S_SUPERADMIN) @RolesAllowed(SpecialPermission.S_SUPERADMIN)
......
...@@ -24,6 +24,7 @@ import fi.insomnia.bortal.model.OrgRole; ...@@ -24,6 +24,7 @@ import fi.insomnia.bortal.model.OrgRole;
@DeclareRoles({ UserPermission.S_READ_ORGROLES, UserPermission.S_WRITE_ORGROLES }) @DeclareRoles({ UserPermission.S_READ_ORGROLES, UserPermission.S_WRITE_ORGROLES })
public class OrgRoleBean implements OrgRoleBeanLocal { public class OrgRoleBean implements OrgRoleBeanLocal {
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory private static final Logger logger = LoggerFactory
.getLogger(OrgRoleBean.class); .getLogger(OrgRoleBean.class);
......
...@@ -39,7 +39,10 @@ public class RoleBean implements RoleBeanLocal { ...@@ -39,7 +39,10 @@ public class RoleBean implements RoleBeanLocal {
// private static final String PUBLIC_ROLE_NAME = // private static final String PUBLIC_ROLE_NAME =
// BeanRole.ANONYMOUS.toString(); // BeanRole.ANONYMOUS.toString();
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(RoleBean.class); private static final Logger logger = LoggerFactory.getLogger(RoleBean.class);
@Resource @Resource
private SessionContext sc; private SessionContext sc;
@EJB @EJB
......
...@@ -35,6 +35,7 @@ public class SessionMgmtBean implements SessionMgmtBeanLocal { ...@@ -35,6 +35,7 @@ public class SessionMgmtBean implements SessionMgmtBeanLocal {
private final Map<String, String> sessionUsers = Collections.synchronizedMap(new HashMap<String, String>()); private final Map<String, String> sessionUsers = Collections.synchronizedMap(new HashMap<String, String>());
private final Set<HttpSession> sessions = Collections.synchronizedSet(new HashSet<HttpSession>()); private final Set<HttpSession> sessions = Collections.synchronizedSet(new HashSet<HttpSession>());
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(SessionMgmtBean.class); private static final Logger logger = LoggerFactory.getLogger(SessionMgmtBean.class);
@Override @Override
......
...@@ -51,6 +51,7 @@ public class SitePageBean implements SitePageBeanLocal { ...@@ -51,6 +51,7 @@ public class SitePageBean implements SitePageBeanLocal {
@EJB @EJB
private UserBean userbean; private UserBean userbean;
@SuppressWarnings("unused")
private Logger logger = LoggerFactory.getLogger(SitePageBean.class); private Logger logger = LoggerFactory.getLogger(SitePageBean.class);
@Override @Override
......
...@@ -25,6 +25,8 @@ import fi.insomnia.bortal.model.Product; ...@@ -25,6 +25,8 @@ import fi.insomnia.bortal.model.Product;
@Stateless @Stateless
@LocalBean @LocalBean
public class BillLineFacade extends IntegerPkGenericFacade<BillLine> { public class BillLineFacade extends IntegerPkGenericFacade<BillLine> {
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(BillLineFacade.class); private static final Logger logger = LoggerFactory.getLogger(BillLineFacade.class);
public BillLineFacade() { public BillLineFacade() {
......
...@@ -36,6 +36,7 @@ public class MenuNavigationFacade extends IntegerPkGenericFacade<MenuNavigation> ...@@ -36,6 +36,7 @@ public class MenuNavigationFacade extends IntegerPkGenericFacade<MenuNavigation>
@EJB @EJB
private PermissionBeanLocal permbean; private PermissionBeanLocal permbean;
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(MenuNavigationFacade.class); private static final Logger logger = LoggerFactory.getLogger(MenuNavigationFacade.class);
public MenuNavigation find(String url) { public MenuNavigation find(String url) {
......
...@@ -132,7 +132,8 @@ public class Bill extends GenericEntity { ...@@ -132,7 +132,8 @@ public class Bill extends GenericEntity {
@ManyToOne(optional = false) @ManyToOne(optional = false)
@JoinColumn(updatable = false, name = "eventuser_id") @JoinColumn(updatable = false, name = "eventuser_id")
private EventUser user; private EventUser user;
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(Bill.class); private static final Logger logger = LoggerFactory.getLogger(Bill.class);
public Integer getReferenceNumberBase() { public Integer getReferenceNumberBase() {
......
...@@ -62,6 +62,7 @@ public abstract class GenericImageServlet extends HttpServlet { ...@@ -62,6 +62,7 @@ public abstract class GenericImageServlet extends HttpServlet {
// TODO Auto-generated constructor stub // TODO Auto-generated constructor stub
} }
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(UserImageServlet.class); private static final Logger logger = LoggerFactory.getLogger(UserImageServlet.class);
protected abstract ImageMover getImagedata(); protected abstract ImageMover getImagedata();
......
...@@ -48,6 +48,7 @@ public class MenuView extends GenericCDIView { ...@@ -48,6 +48,7 @@ public class MenuView extends GenericCDIView {
@EJB @EJB
private transient SitePageBeanLocal pagebean; private transient SitePageBeanLocal pagebean;
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(MenuView.class); private static final Logger logger = LoggerFactory.getLogger(MenuView.class);
public List<PageContent> getPagecontent(String pagekey) public List<PageContent> getPagecontent(String pagekey)
......
...@@ -21,6 +21,7 @@ import fi.insomnia.bortal.web.cdiview.GenericCDIView; ...@@ -21,6 +21,7 @@ import fi.insomnia.bortal.web.cdiview.GenericCDIView;
@ConversationScoped @ConversationScoped
public class FoodShopView extends GenericCDIView { public class FoodShopView extends GenericCDIView {
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(FoodShopView.class); private static final Logger logger = LoggerFactory.getLogger(FoodShopView.class);
private static final long serialVersionUID = 1288114954999406683L; private static final long serialVersionUID = 1288114954999406683L;
......
...@@ -40,6 +40,7 @@ public class ProductView extends GenericCDIView { ...@@ -40,6 +40,7 @@ public class ProductView extends GenericCDIView {
private transient ListDataModel<Discount> productDiscounts; private transient ListDataModel<Discount> productDiscounts;
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(ProductView.class); private static final Logger logger = LoggerFactory.getLogger(ProductView.class);
public void initEditView() { public void initEditView() {
......
...@@ -29,6 +29,8 @@ public class PasswordResetView extends GenericCDIView { ...@@ -29,6 +29,8 @@ public class PasswordResetView extends GenericCDIView {
@EJB @EJB
private transient UserBeanLocal userbean; private transient UserBeanLocal userbean;
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(PasswordResetView.class); private static final Logger logger = LoggerFactory.getLogger(PasswordResetView.class);
public void initView() { public void initView() {
......
...@@ -25,6 +25,8 @@ public class UserSessionView extends GenericCDIView { ...@@ -25,6 +25,8 @@ public class UserSessionView extends GenericCDIView {
private transient ListDataModel<HttpSession> sessions; private transient ListDataModel<HttpSession> sessions;
private transient HttpSession session; private transient HttpSession session;
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(UserSessionView.class); private static final Logger logger = LoggerFactory.getLogger(UserSessionView.class);
public void initView() public void initView()
......
...@@ -24,6 +24,8 @@ public class VotingDateValidator implements Serializable { ...@@ -24,6 +24,8 @@ public class VotingDateValidator implements Serializable {
@Inject @Inject
private VotingCreateView view; private VotingCreateView view;
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(VotingDateValidator.class); private static final Logger logger = LoggerFactory.getLogger(VotingDateValidator.class);
private Date cStart; private Date cStart;
......
...@@ -32,6 +32,7 @@ public class VotingDetailsView extends GenericCDIView { ...@@ -32,6 +32,7 @@ public class VotingDetailsView extends GenericCDIView {
private transient ListDataModel<EntryWrapper> entries; private transient ListDataModel<EntryWrapper> entries;
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(VotingDetailsView.class); private static final Logger logger = LoggerFactory.getLogger(VotingDetailsView.class);
public Integer getCompoId() { public Integer getCompoId() {
......
...@@ -18,6 +18,7 @@ public class ApplicationPermissionWrapper implements Serializable { ...@@ -18,6 +18,7 @@ public class ApplicationPermissionWrapper implements Serializable {
private boolean canHas = false; private boolean canHas = false;
@SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(ApplicationPermissionWrapper.class); private static final Logger logger = LoggerFactory.getLogger(ApplicationPermissionWrapper.class);
public ApplicationPermissionWrapper(IAppPermission ap, boolean canHasPerm) { public ApplicationPermissionWrapper(IAppPermission ap, boolean canHasPerm) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!