A few errors

Discussion in 'Plugin Development' started by Niels15, Jun 22, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Niels15

    Hi,

    I'm updating a plugin but I don't know to fix this errors:
    Code:
    if(plugin.conf.getKeys("fabrics") != null)
    The method getKeys(boolean) in the type ConfigurationSection is not applicable for the arguments (String)
    Code:
    for(Iterator iterator = plugin.conf.getKeys("test").iterator(); iterator.hasNext();)
    Iterator is a raw type. References to generic type Iterator<E> should be parameterized
    The method getKeys(boolean) in the type ConfigurationSection is not applicable for the arguments (String)

    How do I fix this?

    Ive fixed
    Code:
    if(plugin.conf.getKeys("fabrics") != null)
    by replacing with this:
    Code:
    if(!plugin.getConfig().isSet("fabrics"))
    Is that good?

    But the another I can't come out.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
Thread Status:
Not open for further replies.

Share This Page