PreferencesSetting.java


current inspection = 2009-09-03 21:56:13 (id #1)


Filter Options
Annotation Kind:
pre
presumption
post
unanalyzed
test_vector


  • void com.dmdirc.config.prefs.PreferencesSetting(PreferencesType, Validator, String, String, String, String)

  • Kind Annotation Text
    pre(soft) init'ed(com.dmdirc.config.ConfigManager$1__ static_init.new int[](ConfigManager$1__static_init# 1)[...])
    preinit'ed(com/dmdirc/config/IdentityManager. globalconfig)
    presumptioncom.dmdirc.config.prefs.PreferencesType:equals(... )@86 == 0
    presumptiongetGlobalConfig(...).sources != null
    postcom/dmdirc/config/IdentityManager.globalconfig != null
    postcom/dmdirc/config/IdentityManager.globalconfig == One-of{old com/dmdirc/config/IdentityManager. globalconfig, &new ConfigManager(getGlobalConfi g#1)}
    postinit'ed(this.current)
    postinit'ed(this.domain)
    postinit'ed(this.helptext)
    postinit'ed(this.option)
    postinit'ed(this.title)
    postinit'ed(this.type)
    postinit'ed(this.validator)
    postjava.lang.StringBuilder:toString(...)._tainted == 0
    postnew ArrayList(PreferencesSetting#1) num objects == 1
    postnew ArrayList(getSources#1) num objects <= 1
    postnew ConfigManager(getGlobalConfig#1) num objects == new ArrayList(getSources#1) num objects
    postnew ConfigManager(getGlobalConfig#1).channel == &amp;java.lang.StringBuilder:toString(...)
    postnew ConfigManager(getGlobalConfig#1).ircd == &amp;""
    postnew ConfigManager(getGlobalConfig#1).listeners == &amp;new MapList(ConfigManager#1)
    postnew ConfigManager(getGlobalConfig#1).network == &amp;""
    postnew ConfigManager(getGlobalConfig#1).server == &amp;""
    postnew ConfigManager(getGlobalConfig#1).sources == &amp;new ArrayList(getSources#1)
    postnew MapList(ConfigManager#1) num objects == new ArrayList(getSources#1) num objects
    postthis.combooptions == null
    postthis.domain == domain
    postthis.helptext == helptext
    postthis.listeners == &amp;new ArrayList(PreferencesSet ting#1)
    postthis.option == option
    postthis.original == this.current
    postthis.title == title
    postthis.type == type
    postthis.validator == validator
    unanalyzedcall on addConfigManager
    unanalyzedcall on addListener
    unanalyzedcall on com.dmdirc.config.ConfigSource
    unanalyzedcall on com.dmdirc.config.ConfigTarget$TYPE:ordinal
    unanalyzedcall on com.dmdirc.logger.Logger:assertTrue
    unanalyzedcall on com.dmdirc.util.ConfigFile:getKeyDomain
    unanalyzedcall on com.dmdirc.util.ConfigFile:isKeyDomain
    unanalyzedcall on com.dmdirc.util.MapList
    unanalyzedcall on getOption
    unanalyzedcall on getSources
    unanalyzedcall on getTarget
    unanalyzedcall on hasOption
    unanalyzedcall on java.lang.IllegalArgumentException
    unanalyzedcall on java.lang.Integer:intValue
    unanalyzedcall on java.lang.Integer:valueOf
    unanalyzedcall on java.lang.String:equalsIgnoreCase
    unanalyzedcall on java.lang.Throwable:__curr_excep_obj
    unanalyzedcall on java.util.ArrayList
    unanalyzedcall on java.util.Collections:sort
    unanalyzedcall on java.util.List:add
    unanalyzedcall on java.util.List:iterator
    unanalyzedcall on java.util.Map:containsKey
    unanalyzedcall on java.util.Map:get
    unanalyzedcall on java.util.Map:put

  • void com.dmdirc.config.prefs.PreferencesSetting(PreferencesType, String, String, String, String)

  • Kind Annotation Text
    pre(soft) init'ed(com.dmdirc.config.ConfigManager$1__ static_init.new int[](ConfigManager$1__static_init# 1)[...])
    preinit'ed(com/dmdirc/config/IdentityManager. globalconfig)
    presumptioncom.dmdirc.config.prefs.PreferencesType:equals(... )@115 == 0
    presumptiongetGlobalConfig(...).sources != null
    postcom/dmdirc/config/IdentityManager.globalconfig != null
    postcom/dmdirc/config/IdentityManager.globalconfig == One-of{old com/dmdirc/config/IdentityManager. globalconfig, &amp;new ConfigManager(getGlobalConfi g#1)}
    postinit'ed(this.current)
    postinit'ed(this.domain)
    postinit'ed(this.helptext)
    postinit'ed(this.option)
    postinit'ed(this.title)
    postinit'ed(this.type)
    postjava.lang.StringBuilder:toString(...)._tainted == 0
    postnew ArrayList(PreferencesSetting#1) num objects == 1
    postnew ArrayList(getSources#1) num objects <= 1
    postnew ConfigManager(getGlobalConfig#1) num objects == new ArrayList(getSources#1) num objects
    postnew ConfigManager(getGlobalConfig#1).channel == &amp;java.lang.StringBuilder:toString(...)
    postnew ConfigManager(getGlobalConfig#1).ircd == &amp;""
    postnew ConfigManager(getGlobalConfig#1).listeners == &amp;new MapList(ConfigManager#1)
    postnew ConfigManager(getGlobalConfig#1).network == &amp;""
    postnew ConfigManager(getGlobalConfig#1).server == &amp;""
    postnew ConfigManager(getGlobalConfig#1).sources == &amp;new ArrayList(getSources#1)
    postnew MapList(ConfigManager#1) num objects == new ArrayList(getSources#1) num objects
    postnew PermissiveValidator(PreferencesSetting#2) num objects == 1
    postthis.combooptions == null
    postthis.domain == domain
    postthis.helptext == helptext
    postthis.listeners == &amp;new ArrayList(PreferencesSet ting#1)
    postthis.option == option
    postthis.original == this.current
    postthis.title == title
    postthis.type == type
    postthis.validator == &amp;new PermissiveValidator(Pref erencesSetting#2)
    unanalyzedcall on addConfigManager
    unanalyzedcall on addListener
    unanalyzedcall on com.dmdirc.config.ConfigSource
    unanalyzedcall on com.dmdirc.config.ConfigTarget$TYPE:ordinal
    unanalyzedcall on com.dmdirc.logger.Logger:assertTrue
    unanalyzedcall on com.dmdirc.util.ConfigFile:getKeyDomain
    unanalyzedcall on com.dmdirc.util.ConfigFile:isKeyDomain
    unanalyzedcall on com.dmdirc.util.MapList
    unanalyzedcall on getOption
    unanalyzedcall on getSources
    unanalyzedcall on getTarget
    unanalyzedcall on hasOption
    unanalyzedcall on java.lang.IllegalArgumentException
    unanalyzedcall on java.lang.Integer:intValue
    unanalyzedcall on java.lang.Integer:valueOf
    unanalyzedcall on java.lang.String:equalsIgnoreCase
    unanalyzedcall on java.lang.Throwable:__curr_excep_obj
    unanalyzedcall on java.util.ArrayList
    unanalyzedcall on java.util.Collections:sort
    unanalyzedcall on java.util.List:add
    unanalyzedcall on java.util.List:iterator
    unanalyzedcall on java.util.Map:containsKey
    unanalyzedcall on java.util.Map:get
    unanalyzedcall on java.util.Map:put

  • void com.dmdirc.config.prefs.PreferencesSetting(String, String, String, String, Map)

  • Kind Annotation Text
    pre(soft) init'ed(com.dmdirc.config.ConfigManager$1__ static_init.new int[](ConfigManager$1__static_init# 1)[...])
    preinit'ed(com/dmdirc/config/IdentityManager. globalconfig)
    presumptiongetGlobalConfig(...).sources != null
    postcom/dmdirc/config/IdentityManager.globalconfig != null
    postcom/dmdirc/config/IdentityManager.globalconfig == One-of{old com/dmdirc/config/IdentityManager. globalconfig, &amp;new ConfigManager(getGlobalConfi g#1)}
    postinit'ed(this.current)
    postinit'ed(this.domain)
    postinit'ed(this.helptext)
    postinit'ed(this.option)
    postinit'ed(this.title)
    postjava.lang.StringBuilder:toString(...)._tainted == 0
    postnew ArrayList(PreferencesSetting#1) num objects == 1
    postnew ArrayList(getSources#1) num objects <= 1
    postnew ConfigManager(getGlobalConfig#1) num objects == new ArrayList(getSources#1) num objects
    postnew ConfigManager(getGlobalConfig#1).channel == &amp;java.lang.StringBuilder:toString(...)
    postnew ConfigManager(getGlobalConfig#1).ircd == &amp;""
    postnew ConfigManager(getGlobalConfig#1).listeners == &amp;new MapList(ConfigManager#1)
    postnew ConfigManager(getGlobalConfig#1).network == &amp;""
    postnew ConfigManager(getGlobalConfig#1).server == &amp;""
    postnew ConfigManager(getGlobalConfig#1).sources == &amp;new ArrayList(getSources#1)
    postnew HashMap(PreferencesSetting#2) num objects == 1
    postnew MapList(ConfigManager#1) num objects == new ArrayList(getSources#1) num objects
    postnew PermissiveValidator(PreferencesSetting#3) num objects == 1
    postthis.combooptions == &amp;new HashMap(PreferencesSe tting#2)
    postthis.domain == domain
    postthis.helptext == helptext
    postthis.listeners == &amp;new ArrayList(PreferencesSet ting#1)
    postthis.option == option
    postthis.original == this.current
    postthis.title == title
    postthis.type == &amp;com.dmdirc.config.prefs. PreferencesType__static_init.new PreferencesType(Pr eferencesType__static_init#6)
    postthis.validator == &amp;new PermissiveValidator(Pref erencesSetting#3)
    unanalyzedcall on addConfigManager
    unanalyzedcall on addListener
    unanalyzedcall on com.dmdirc.config.ConfigSource
    unanalyzedcall on com.dmdirc.config.ConfigTarget$TYPE:ordinal
    unanalyzedcall on com.dmdirc.logger.Logger:assertTrue
    unanalyzedcall on com.dmdirc.util.ConfigFile:getKeyDomain
    unanalyzedcall on com.dmdirc.util.ConfigFile:isKeyDomain
    unanalyzedcall on com.dmdirc.util.MapList
    unanalyzedcall on getOption
    unanalyzedcall on getSources
    unanalyzedcall on getTarget
    unanalyzedcall on hasOption
    unanalyzedcall on java.lang.IllegalArgumentException
    unanalyzedcall on java.lang.Integer:intValue
    unanalyzedcall on java.lang.Integer:valueOf
    unanalyzedcall on java.lang.String:equalsIgnoreCase
    unanalyzedcall on java.lang.Throwable:__curr_excep_obj
    unanalyzedcall on java.util.ArrayList
    unanalyzedcall on java.util.Collections:sort
    unanalyzedcall on java.util.List:add
    unanalyzedcall on java.util.List:iterator
    unanalyzedcall on java.util.Map:containsKey
    unanalyzedcall on java.util.Map:get
    unanalyzedcall on java.util.Map:put
    test_vectorjava.util.Map:containsKey(...)@155: {1}, {0}

  • com.dmdirc.config.prefs.PreferencesSetting__static_init

  • Kind Annotation Text

  • void dismiss()

  • Kind Annotation Text
    pre(soft) init'ed(this.current)
    pre(soft) this.listeners != null
    preinit'ed(this.original)
    presumptionjava.util.Iterator:next(...)@291 != null
    postinit'ed(this.current)
    postthis.current == One-of{old this.current, this.original}
    test_vectorjava.lang.String:equals(...)@284: {1}, {0}
    test_vectorjava.util.Iterator:hasNext(...)@291: {0}, {1}
    test_vectorthis.current: Inverse{null}, Addr_Set{null}
    test_vectorthis.original: Addr_Set{null}, Inverse{null}

  • Map getComboOptions()

  • Kind Annotation Text
    postinit'ed(return_value)
    postreturn_value == this.combooptions

  • String getHelptext()

  • Kind Annotation Text
    postinit'ed(return_value)
    postreturn_value == this.helptext

  • String getTitle()

  • Kind Annotation Text
    postinit'ed(return_value)
    postreturn_value == this.title

  • PreferencesType getType()

  • Kind Annotation Text
    postinit'ed(return_value)
    postreturn_value == this.type

  • Validator getValidator()

  • Kind Annotation Text
    postinit'ed(return_value)
    postreturn_value == this.validator

  • String getValue()

  • Kind Annotation Text
    preinit'ed(this.current)
    postinit'ed(return_value)
    postreturn_value == this.current

  • bool isRestartNeeded()

  • Kind Annotation Text
    preinit'ed(this.restartNeeded)
    postinit'ed(return_value)
    postreturn_value == this.restartNeeded

  • bool needsSaving()

  • Kind Annotation Text
    pre(soft) init'ed(this.original)
    preinit'ed(this.current)
    presumptionvalidate(...)@302 != null
    postinit'ed(return_value)
    test_vectorthis.current: Addr_Set{null}, Inverse{null}

  • PreferencesSetting registerChangeListener(SettingChangeListener)

  • Kind Annotation Text
    prethis.listeners != null
    postreturn_value != null
    postreturn_value == this

  • bool save()

  • Kind Annotation Text
    pre(soft) com/dmdirc/config/IdentityManager.config != null
    pre(soft) com/dmdirc/config/IdentityManager.config. file != null
    pre(soft) com/dmdirc/config/IdentityManager.config. listeners != null
    pre(soft) com/dmdirc/config/IdentityManager.config. myTarget != null
    pre(soft) init'ed(com.dmdirc.config.ConfigManager$1__ static_init.new int[](ConfigManager$1__static_init# 1)[...])
    pre(soft) init'ed(com/dmdirc/config/IdentityManager. config.globalConfig)
    pre(soft) init'ed(com/dmdirc/config/IdentityManager. config.myTarget.type)
    pre(soft) init'ed(this.original)
    preinit'ed(this.current)
    postcom/dmdirc/config/IdentityManager.config. globalConfig == One-of{old com/dmdirc/config/Identi tyManager.config.globalConfig, &amp;new ConfigManager(setOption#2)}
    postinit'ed(com/dmdirc/config/IdentityManager.config. globalConfig)
    postinit'ed(new ConfigManager(setOption#2).channel)
    postinit'ed(new ConfigManager(setOption#2).ircd)
    postinit'ed(new ConfigManager(setOption#2).listeners)
    postinit'ed(new ConfigManager(setOption#2).network)
    postinit'ed(new ConfigManager(setOption#2).server)
    postinit'ed(new ConfigManager(setOption#2).sources)
    postinit'ed(return_value)
    postinit'ed(this.original)
    postjava.lang.StringBuilder:toString(...)._tainted == 0
    postnew ArrayList(getSources#1) num objects <= 1
    postnew ConfigManager(setOption#2) num objects <= 1
    postnew MapList(ConfigManager#1) num objects <= 1
    postpossibly_updated(com/dmdirc/config/IdentityManager. config.needSave)
    postthis.original == One-of{old this.original, this.current}
    unanalyzedcall on addConfigManager
    unanalyzedcall on addListener
    unanalyzedcall on com.dmdirc.config.ConfigSource
    unanalyzedcall on com.dmdirc.config.ConfigTarget$TYPE:ordinal
    unanalyzedcall on com.dmdirc.interfaces.ConfigChangeListener: configChanged
    unanalyzedcall on com.dmdirc.logger.Logger:assertTrue
    unanalyzedcall on com.dmdirc.util.ConfigFile:getKeyDomain
    unanalyzedcall on com.dmdirc.util.ConfigFile:getKeyDomains
    unanalyzedcall on com.dmdirc.util.ConfigFile:isKeyDomain
    unanalyzedcall on com.dmdirc.util.MapList
    unanalyzedcall on com.dmdirc.util.MapList:containsKey
    unanalyzedcall on com.dmdirc.util.MapList:get
    unanalyzedcall on equals
    unanalyzedcall on getDomains
    unanalyzedcall on getOption
    unanalyzedcall on getOptions
    unanalyzedcall on getSources
    unanalyzedcall on getTarget
    unanalyzedcall on hasOption
    unanalyzedcall on java.lang.IllegalArgumentException
    unanalyzedcall on java.lang.Integer:intValue
    unanalyzedcall on java.lang.Integer:valueOf
    unanalyzedcall on java.lang.String:equals
    unanalyzedcall on java.lang.String:equalsIgnoreCase
    unanalyzedcall on java.lang.Throwable:__curr_excep_obj
    unanalyzedcall on java.util.ArrayList
    unanalyzedcall on java.util.ArrayList:iterator
    unanalyzedcall on java.util.Collections:sort
    unanalyzedcall on java.util.HashMap
    unanalyzedcall on java.util.HashSet
    unanalyzedcall on java.util.List:add
    unanalyzedcall on java.util.List:addAll
    unanalyzedcall on java.util.List:contains
    unanalyzedcall on java.util.List:iterator
    unanalyzedcall on java.util.List:remove
    unanalyzedcall on java.util.Map:containsKey
    unanalyzedcall on java.util.Map:get
    unanalyzedcall on java.util.Map:keySet
    unanalyzedcall on java.util.Map:put
    unanalyzedcall on java.util.Map:remove
    unanalyzedcall on java.util.Set:iterator
    unanalyzedcall on java.util.logging.Logger:finer
    unanalyzedcall on removeListener
    unanalyzedcall on validate
    test_vectorthis.current: Inverse{null}, Addr_Set{null}

  • PreferencesSetting setRestartNeeded()

  • Kind Annotation Text
    postreturn_value != null
    postreturn_value == this
    postthis.restartNeeded == 1

  • void setValue(String)

  • Kind Annotation Text
    prethis.listeners != null
    presumptionjava.util.Iterator:next(...)@224 != null
    postinit'ed(this.current)
    postthis.current == newValue
    test_vectorjava.util.Iterator:hasNext(...)@224: {0}, {1}