Ignore:
Timestamp:
Nov 18, 2016, 1:17:45 PM (6 years ago)
Author:
Nicklas Nordborg
Message:

References #923: Move to Java 8 and BASE 3.10

Getting rid of compilation warnings.

Location:
extensions/net.sf.basedb.examples/trunk/src/net/sf/basedb/examples/extensions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.examples/trunk/src/net/sf/basedb/examples/extensions/overview/OwnerValidatorFactory.java

    r1603 r4242  
    2222
    2323import net.sf.basedb.core.Item;
     24import net.sf.basedb.core.User;
    2425import net.sf.basedb.util.extensions.ActionFactory;
    2526import net.sf.basedb.util.extensions.InvokationContext;
     
    3435*/
    3536public class OwnerValidatorFactory
    36   implements ActionFactory<NodeValidatorAction>
     37  implements ActionFactory<NodeValidatorAction<User>>
    3738{
    3839
     
    5051  */
    5152  @Override
    52   public boolean prepareContext(InvokationContext<? super NodeValidatorAction> context)
     53  public boolean prepareContext(InvokationContext<? super NodeValidatorAction<User>> context)
    5354  {
    5455    return context.getClientContext().getCurrentItem() == Item.USER;
     
    5859    Create the {@link OwnerValidator} action.
    5960  */
     61  @SuppressWarnings("unchecked")
    6062  @Override
    61   public NodeValidatorAction[] getActions(InvokationContext<? super NodeValidatorAction> context)
     63  public NodeValidatorAction<User>[] getActions(InvokationContext<? super NodeValidatorAction<User>> context)
    6264  {
    6365    return new NodeValidatorAction[] { new OwnerValidator() };
  • extensions/net.sf.basedb.examples/trunk/src/net/sf/basedb/examples/extensions/overview/RoleValidatorFactory.java

    r1603 r4242  
    2222
    2323import net.sf.basedb.core.Item;
     24import net.sf.basedb.core.Role;
    2425import net.sf.basedb.util.extensions.ActionFactory;
    2526import net.sf.basedb.util.extensions.InvokationContext;
     
    3435*/
    3536public class RoleValidatorFactory
    36   implements ActionFactory<NodeValidatorAction>
     37  implements ActionFactory<NodeValidatorAction<Role>>
    3738{
    3839
     
    5051  */
    5152  @Override
    52   public boolean prepareContext(InvokationContext<? super NodeValidatorAction> context)
     53  public boolean prepareContext(InvokationContext<? super NodeValidatorAction<Role>> context)
    5354  {
    5455    return context.getClientContext().getCurrentItem() == Item.ROLE;
     
    5859    Create the {@link RoleValidator} action.
    5960  */
     61  @SuppressWarnings("unchecked")
    6062  @Override
    61   public NodeValidatorAction[] getActions(InvokationContext<? super NodeValidatorAction> context)
     63  public NodeValidatorAction<Role>[] getActions(InvokationContext<? super NodeValidatorAction<Role>> context)
    6264  {
    6365    return new NodeValidatorAction[] { new RoleValidator() };
  • extensions/net.sf.basedb.examples/trunk/src/net/sf/basedb/examples/extensions/toolbar/InfoButtonFactory.java

    r2204 r4242  
    5353 
    5454  @Override
    55   public ButtonAction[] getActions(InvokationContext context)
     55  public ButtonAction[] getActions(InvokationContext<? super ButtonAction> context)
    5656  {
    5757    ButtonAction[] actions = null;
Note: See TracChangeset for help on using the changeset viewer.