//# 0 errors, 292 messages
//#
/*
    //#URLProtocolValidator.java:1:1: class: com.dmdirc.config.prefs.validator.URLProtocolValidator
    //#URLProtocolValidator.java:1:1: method: com.dmdirc.config.prefs.validator.URLProtocolValidator.com.dmdirc.config.prefs.validator.URLProtocolValidator__static_init
 * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package com.dmdirc.config.prefs.validator;

import com.dmdirc.config.IdentityManager;

/**
 * Validates URLProtocols.
 */
public class URLProtocolValidator implements Validator<String> {
    //#URLProtocolValidator.java:30: method: void com.dmdirc.config.prefs.validator.URLProtocolValidator.com.dmdirc.config.prefs.validator.URLProtocolValidator()
    //#URLProtocolValidator.java:30: end of method: void com.dmdirc.config.prefs.validator.URLProtocolValidator.com.dmdirc.config.prefs.validator.URLProtocolValidator()
    //#URLProtocolValidator.java:30: method: ValidationResponse com.dmdirc.config.prefs.validator.URLProtocolValidator.validate(Object)
    //#input(ValidationResponse validate(Object)): ""._tainted
    //#input(ValidationResponse validate(Object)): "."._tainted
    //#input(ValidationResponse validate(Object)): "<Unknown>"._tainted
    //#input(ValidationResponse validate(Object)): "@"._tainted
    //#input(ValidationResponse validate(Object)): "Config option not found: "._tainted
    //#input(ValidationResponse validate(Object)): "protocol"._tainted
    //#input(ValidationResponse validate(Object)): __Descendant_Table[com/dmdirc/config/prefs/validator/URLProtocolValidator]
    //#input(ValidationResponse validate(Object)): __Descendant_Table[others]
    //#input(ValidationResponse validate(Object)): __Dispatch_Table.validate(Ljava/lang/String;)Lcom/dmdirc/config/prefs/validator/ValidationResponse;
    //#input(ValidationResponse validate(Object)): com.dmdirc.config.ConfigManager$1__static_init.new int[](ConfigManager$1__static_init#1).length
    //#input(ValidationResponse validate(Object)): com.dmdirc.config.ConfigManager$1__static_init.new int[](ConfigManager$1__static_init#1)[0..4_294_967_295]
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigManager$1.$SwitchMap$com$dmdirc$config$ConfigTarget$TYPE
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigManager.__Descendant_Table[com/dmdirc/config/ConfigManager]
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigManager.__Descendant_Table[others]
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigManager.__Dispatch_Table.getOption(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigManager.__Dispatch_Table.hasOption(Ljava/lang/String;Ljava/lang/String;)Z
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigManager.__Dispatch_Table.hasOptionString(Ljava/lang/String;Ljava/lang/String;)Z
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigManager.__Dispatch_Table.identityApplies(Lcom/dmdirc/config/Identity;)Z
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigManager.stats
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigSource.__Descendant_Table[com/dmdirc/config/ConfigManager]
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigSource.__Descendant_Table[com/dmdirc/config/ConfigSource]
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigSource.__Descendant_Table[com/dmdirc/config/Identity]
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigSource.__Descendant_Table[others]
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigSource.__Dispatch_Table.getOption(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigSource.__Dispatch_Table.hasOption(Ljava/lang/String;Ljava/lang/String;)Z
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigTarget.__Descendant_Table[com/dmdirc/config/ConfigTarget]
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigTarget.__Descendant_Table[others]
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigTarget.__Dispatch_Table.getData()Ljava/lang/String;
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/ConfigTarget.__Dispatch_Table.getType()Lcom/dmdirc/config/ConfigTarget$TYPE;
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/Identity.__Descendant_Table[com/dmdirc/config/Identity]
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/Identity.__Descendant_Table[others]
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/Identity.__Dispatch_Table.addListener(Lcom/dmdirc/interfaces/ConfigChangeListener;)V
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/Identity.__Dispatch_Table.getOption(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/Identity.__Dispatch_Table.getTarget()Lcom/dmdirc/config/ConfigTarget;
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/Identity.__Dispatch_Table.hasOption(Ljava/lang/String;Ljava/lang/String;)Z
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/IdentityManager.__Class_Obj.__Lock
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/IdentityManager.globalconfig
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/IdentityManager.globalconfig.__Tag
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/IdentityManager.globalconfig.file
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/IdentityManager.globalconfig.sources
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/IdentityManager.identities
    //#input(ValidationResponse validate(Object)): com/dmdirc/config/IdentityManager.managers
    //#input(ValidationResponse validate(Object)): this
    //#input(ValidationResponse validate(Object)): this.__Tag
    //#input(ValidationResponse validate(Object)): x0
    //#input(ValidationResponse validate(Object)): x0._tainted
    //#output(ValidationResponse validate(Object)): com/dmdirc/config/IdentityManager.globalconfig
    //#output(ValidationResponse validate(Object)): java.lang.StringBuilder:toString(...)._tainted
    //#output(ValidationResponse validate(Object)): new ArrayList(getSources#1) num objects
    //#output(ValidationResponse validate(Object)): new ArrayList(getSources#1).__Lock
    //#output(ValidationResponse validate(Object)): new ConfigManager(getGlobalConfig#1) num objects
    //#output(ValidationResponse validate(Object)): new ConfigManager(getGlobalConfig#1).__Lock
    //#output(ValidationResponse validate(Object)): new ConfigManager(getGlobalConfig#1).__Tag
    //#output(ValidationResponse validate(Object)): new ConfigManager(getGlobalConfig#1).channel
    //#output(ValidationResponse validate(Object)): new ConfigManager(getGlobalConfig#1).file
    //#output(ValidationResponse validate(Object)): new ConfigManager(getGlobalConfig#1).ircd
    //#output(ValidationResponse validate(Object)): new ConfigManager(getGlobalConfig#1).listeners
    //#output(ValidationResponse validate(Object)): new ConfigManager(getGlobalConfig#1).network
    //#output(ValidationResponse validate(Object)): new ConfigManager(getGlobalConfig#1).server
    //#output(ValidationResponse validate(Object)): new ConfigManager(getGlobalConfig#1).sources
    //#output(ValidationResponse validate(Object)): new MapList(ConfigManager#1) num objects
    //#output(ValidationResponse validate(Object)): new ValidationResponse(validate#1*) num objects
    //#output(ValidationResponse validate(Object)): new ValidationResponse(validate#1*).__Tag
    //#output(ValidationResponse validate(Object)): new ValidationResponse(validate#1*).failure
    //#output(ValidationResponse validate(Object)): new ValidationResponse(validate#2*) num objects
    //#output(ValidationResponse validate(Object)): new ValidationResponse(validate#2*).__Tag
    //#output(ValidationResponse validate(Object)): new ValidationResponse(validate#2*).failure
    //#output(ValidationResponse validate(Object)): new ValidationResponse(validate#3*) num objects
    //#output(ValidationResponse validate(Object)): new ValidationResponse(validate#3*).__Tag
    //#output(ValidationResponse validate(Object)): new ValidationResponse(validate#3*).failure
    //#output(ValidationResponse validate(Object)): return_value
    //#new obj(ValidationResponse validate(Object)): java.lang.StringBuilder:toString(...)
    //#new obj(ValidationResponse validate(Object)): new ArrayList(getSources#1)
    //#new obj(ValidationResponse validate(Object)): new ConfigManager(getGlobalConfig#1)
    //#new obj(ValidationResponse validate(Object)): new MapList(ConfigManager#1)
    //#new obj(ValidationResponse validate(Object)): new ValidationResponse(validate#1*)
    //#new obj(ValidationResponse validate(Object)): new ValidationResponse(validate#2*)
    //#new obj(ValidationResponse validate(Object)): new ValidationResponse(validate#3*)
    //#pre[11] (ValidationResponse validate(Object)): this.__Tag == com/dmdirc/config/prefs/validator/URLProtocolValidator
    //#pre[1] (ValidationResponse validate(Object)): (soft) init'ed(com.dmdirc.config.ConfigManager$1__static_init.new int[](ConfigManager$1__static_init#1)[0..4_294_967_295])
    //#pre[9] (ValidationResponse validate(Object)): (soft) init'ed(com/dmdirc/config/IdentityManager.globalconfig)
    //#post(ValidationResponse validate(Object)): com/dmdirc/config/IdentityManager.globalconfig == One-of{old com/dmdirc/config/IdentityManager.globalconfig, &new ConfigManager(getGlobalConfig#1)}
    //#post(ValidationResponse validate(Object)): init'ed(com/dmdirc/config/IdentityManager.globalconfig)
    //#post(ValidationResponse validate(Object)): java.lang.StringBuilder:toString(...)._tainted == 0
    //#post(ValidationResponse validate(Object)): return_value == One-of{&new ValidationResponse(validate#1*), &new ValidationResponse(validate#2*), &new ValidationResponse(validate#3*)}
    //#post(ValidationResponse validate(Object)): return_value in Addr_Set{&new ValidationResponse(validate#1*),&new ValidationResponse(validate#2*),&new ValidationResponse(validate#3*)}
    //#post(ValidationResponse validate(Object)): new ArrayList(getSources#1) num objects <= 1
    //#post(ValidationResponse validate(Object)): new ConfigManager(getGlobalConfig#1) num objects == new ArrayList(getSources#1) num objects
    //#post(ValidationResponse validate(Object)): new MapList(ConfigManager#1) num objects == new ArrayList(getSources#1) num objects
    //#post(ValidationResponse validate(Object)): init'ed(new ArrayList(getSources#1).__Lock)
    //#post(ValidationResponse validate(Object)): init'ed(new ConfigManager(getGlobalConfig#1).__Lock)
    //#post(ValidationResponse validate(Object)): init'ed(new ConfigManager(getGlobalConfig#1).__Tag)
    //#post(ValidationResponse validate(Object)): init'ed(new ConfigManager(getGlobalConfig#1).channel)
    //#post(ValidationResponse validate(Object)): init'ed(new ConfigManager(getGlobalConfig#1).file)
    //#post(ValidationResponse validate(Object)): init'ed(new ConfigManager(getGlobalConfig#1).ircd)
    //#post(ValidationResponse validate(Object)): init'ed(new ConfigManager(getGlobalConfig#1).listeners)
    //#post(ValidationResponse validate(Object)): init'ed(new ConfigManager(getGlobalConfig#1).network)
    //#post(ValidationResponse validate(Object)): init'ed(new ConfigManager(getGlobalConfig#1).server)
    //#post(ValidationResponse validate(Object)): init'ed(new ConfigManager(getGlobalConfig#1).sources)
    //#post(ValidationResponse validate(Object)): new ValidationResponse(validate#1*) num objects <= 1
    //#post(ValidationResponse validate(Object)): new ValidationResponse(validate#1*).__Tag == com/dmdirc/config/prefs/validator/ValidationResponse
    //#post(ValidationResponse validate(Object)): new ValidationResponse(validate#1*).failure == &"Cannot be empty"
    //#post(ValidationResponse validate(Object)): new ValidationResponse(validate#2*) num objects <= 1
    //#post(ValidationResponse validate(Object)): new ValidationResponse(validate#2*).__Tag == com/dmdirc/config/prefs/validator/ValidationResponse
    //#post(ValidationResponse validate(Object)): new ValidationResponse(validate#2*).failure == &"Cannot already exist"
    //#post(ValidationResponse validate(Object)): new ValidationResponse(validate#3*) num objects <= 1
    //#post(ValidationResponse validate(Object)): new ValidationResponse(validate#3*).__Tag == com/dmdirc/config/prefs/validator/ValidationResponse
    //#post(ValidationResponse validate(Object)): new ValidationResponse(validate#3*).failure == null
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.lang.String:isEmpty
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.util.ArrayList
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:com.dmdirc.logger.Logger:assertTrue
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.util.List:iterator
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.util.Iterator:hasNext
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.util.Iterator:next
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.lang.Throwable:__curr_excep_obj
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.util.List:add
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:getTarget
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:com.dmdirc.config.ConfigTarget$TYPE:ordinal
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.lang.String:equalsIgnoreCase
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:addListener
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:getSources
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:com.dmdirc.config.ConfigSource
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:com.dmdirc.util.MapList
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:addConfigManager
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.util.Collections:sort
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:hasOption
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.util.Map:containsKey
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.util.Map:get
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.lang.Integer:intValue
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.lang.Integer:valueOf
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.util.Map:put
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:getOption
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:java.lang.IllegalArgumentException
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:com.dmdirc.util.ConfigFile:getKeyDomain
    //#unanalyzed(ValidationResponse validate(Object)): Effects-of-calling:com.dmdirc.util.ConfigFile:isKeyDomain
    //#URLProtocolValidator.java:30: end of method: ValidationResponse com.dmdirc.config.prefs.validator.URLProtocolValidator.validate(Object)

    /** {@inheritDoc} */
    @Override
    public ValidationResponse validate(final String object) {
        if (object == null || object.isEmpty()) {
    //#URLProtocolValidator.java:35: method: ValidationResponse com.dmdirc.config.prefs.validator.URLProtocolValidator.validate(String)
    //#input(ValidationResponse validate(String)): ""._tainted
    //#input(ValidationResponse validate(String)): "."._tainted
    //#input(ValidationResponse validate(String)): "<Unknown>"._tainted
    //#input(ValidationResponse validate(String)): "@"._tainted
    //#input(ValidationResponse validate(String)): "Config option not found: "._tainted
    //#input(ValidationResponse validate(String)): "protocol"._tainted
    //#input(ValidationResponse validate(String)): com.dmdirc.config.ConfigManager$1__static_init.new int[](ConfigManager$1__static_init#1).length
    //#input(ValidationResponse validate(String)): com.dmdirc.config.ConfigManager$1__static_init.new int[](ConfigManager$1__static_init#1)[0..4_294_967_295]
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigManager$1.$SwitchMap$com$dmdirc$config$ConfigTarget$TYPE
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigManager.__Descendant_Table[com/dmdirc/config/ConfigManager]
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigManager.__Descendant_Table[others]
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigManager.__Dispatch_Table.getOption(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigManager.__Dispatch_Table.hasOption(Ljava/lang/String;Ljava/lang/String;)Z
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigManager.__Dispatch_Table.hasOptionString(Ljava/lang/String;Ljava/lang/String;)Z
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigManager.__Dispatch_Table.identityApplies(Lcom/dmdirc/config/Identity;)Z
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigManager.stats
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigSource.__Descendant_Table[com/dmdirc/config/ConfigManager]
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigSource.__Descendant_Table[com/dmdirc/config/ConfigSource]
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigSource.__Descendant_Table[com/dmdirc/config/Identity]
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigSource.__Descendant_Table[others]
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigSource.__Dispatch_Table.getOption(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigSource.__Dispatch_Table.hasOption(Ljava/lang/String;Ljava/lang/String;)Z
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigTarget.__Descendant_Table[com/dmdirc/config/ConfigTarget]
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigTarget.__Descendant_Table[others]
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigTarget.__Dispatch_Table.getData()Ljava/lang/String;
    //#input(ValidationResponse validate(String)): com/dmdirc/config/ConfigTarget.__Dispatch_Table.getType()Lcom/dmdirc/config/ConfigTarget$TYPE;
    //#input(ValidationResponse validate(String)): com/dmdirc/config/Identity.__Descendant_Table[com/dmdirc/config/Identity]
    //#input(ValidationResponse validate(String)): com/dmdirc/config/Identity.__Descendant_Table[others]
    //#input(ValidationResponse validate(String)): com/dmdirc/config/Identity.__Dispatch_Table.addListener(Lcom/dmdirc/interfaces/ConfigChangeListener;)V
    //#input(ValidationResponse validate(String)): com/dmdirc/config/Identity.__Dispatch_Table.getOption(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    //#input(ValidationResponse validate(String)): com/dmdirc/config/Identity.__Dispatch_Table.getTarget()Lcom/dmdirc/config/ConfigTarget;
    //#input(ValidationResponse validate(String)): com/dmdirc/config/Identity.__Dispatch_Table.hasOption(Ljava/lang/String;Ljava/lang/String;)Z
    //#input(ValidationResponse validate(String)): com/dmdirc/config/IdentityManager.__Class_Obj.__Lock
    //#input(ValidationResponse validate(String)): com/dmdirc/config/IdentityManager.globalconfig
    //#input(ValidationResponse validate(String)): com/dmdirc/config/IdentityManager.globalconfig.__Lock
    //#input(ValidationResponse validate(String)): com/dmdirc/config/IdentityManager.globalconfig.__Tag
    //#input(ValidationResponse validate(String)): com/dmdirc/config/IdentityManager.globalconfig.file
    //#input(ValidationResponse validate(String)): com/dmdirc/config/IdentityManager.globalconfig.sources
    //#input(ValidationResponse validate(String)): com/dmdirc/config/IdentityManager.globalconfig.sources.__Lock
    //#input(ValidationResponse validate(String)): com/dmdirc/config/IdentityManager.identities
    //#input(ValidationResponse validate(String)): com/dmdirc/config/IdentityManager.managers
    //#input(ValidationResponse validate(String)): object
    //#input(ValidationResponse validate(String)): object._tainted
    //#output(ValidationResponse validate(String)): com/dmdirc/config/IdentityManager.globalconfig
    //#output(ValidationResponse validate(String)): java.lang.StringBuilder:toString(...)._tainted
    //#output(ValidationResponse validate(String)): new ArrayList(getSources#1) num objects
    //#output(ValidationResponse validate(String)): new ArrayList(getSources#1).__Lock
    //#output(ValidationResponse validate(String)): new ConfigManager(getGlobalConfig#1) num objects
    //#output(ValidationResponse validate(String)): new ConfigManager(getGlobalConfig#1).__Lock
    //#output(ValidationResponse validate(String)): new ConfigManager(getGlobalConfig#1).__Tag
    //#output(ValidationResponse validate(String)): new ConfigManager(getGlobalConfig#1).channel
    //#output(ValidationResponse validate(String)): new ConfigManager(getGlobalConfig#1).file
    //#output(ValidationResponse validate(String)): new ConfigManager(getGlobalConfig#1).ircd
    //#output(ValidationResponse validate(String)): new ConfigManager(getGlobalConfig#1).listeners
    //#output(ValidationResponse validate(String)): new ConfigManager(getGlobalConfig#1).network
    //#output(ValidationResponse validate(String)): new ConfigManager(getGlobalConfig#1).server
    //#output(ValidationResponse validate(String)): new ConfigManager(getGlobalConfig#1).sources
    //#output(ValidationResponse validate(String)): new MapList(ConfigManager#1) num objects
    //#output(ValidationResponse validate(String)): new ValidationResponse(validate#1) num objects
    //#output(ValidationResponse validate(String)): new ValidationResponse(validate#1).__Tag
    //#output(ValidationResponse validate(String)): new ValidationResponse(validate#1).failure
    //#output(ValidationResponse validate(String)): new ValidationResponse(validate#2) num objects
    //#output(ValidationResponse validate(String)): new ValidationResponse(validate#2).__Tag
    //#output(ValidationResponse validate(String)): new ValidationResponse(validate#2).failure
    //#output(ValidationResponse validate(String)): new ValidationResponse(validate#3) num objects
    //#output(ValidationResponse validate(String)): new ValidationResponse(validate#3).__Tag
    //#output(ValidationResponse validate(String)): new ValidationResponse(validate#3).failure
    //#output(ValidationResponse validate(String)): return_value
    //#new obj(ValidationResponse validate(String)): java.lang.StringBuilder:toString(...)
    //#new obj(ValidationResponse validate(String)): new ArrayList(getSources#1)
    //#new obj(ValidationResponse validate(String)): new ConfigManager(getGlobalConfig#1)
    //#new obj(ValidationResponse validate(String)): new MapList(ConfigManager#1)
    //#new obj(ValidationResponse validate(String)): new ValidationResponse(validate#1)
    //#new obj(ValidationResponse validate(String)): new ValidationResponse(validate#2)
    //#new obj(ValidationResponse validate(String)): new ValidationResponse(validate#3)
    //#pre[1] (ValidationResponse validate(String)): (soft) init'ed(com.dmdirc.config.ConfigManager$1__static_init.new int[](ConfigManager$1__static_init#1)[0..4_294_967_295])
    //#pre[6] (ValidationResponse validate(String)): (soft) init'ed(com/dmdirc/config/IdentityManager.globalconfig)
    //#presumption(ValidationResponse validate(String)): getGlobalConfig(...).__Tag == com/dmdirc/config/ConfigManager
    //#post(ValidationResponse validate(String)): com/dmdirc/config/IdentityManager.globalconfig == One-of{old com/dmdirc/config/IdentityManager.globalconfig, &new ConfigManager(getGlobalConfig#1)}
    //#post(ValidationResponse validate(String)): init'ed(com/dmdirc/config/IdentityManager.globalconfig)
    //#post(ValidationResponse validate(String)): java.lang.StringBuilder:toString(...)._tainted == 0
    //#post(ValidationResponse validate(String)): return_value in Addr_Set{&new ValidationResponse(validate#3),&new ValidationResponse(validate#2),&new ValidationResponse(validate#1)}
    //#post(ValidationResponse validate(String)): new ArrayList(getSources#1) num objects <= 1
    //#post(ValidationResponse validate(String)): init'ed(new ArrayList(getSources#1).__Lock)
    //#post(ValidationResponse validate(String)): new ConfigManager(getGlobalConfig#1) num objects <= 1
    //#post(ValidationResponse validate(String)): init'ed(new ConfigManager(getGlobalConfig#1).__Lock)
    //#post(ValidationResponse validate(String)): init'ed(new ConfigManager(getGlobalConfig#1).__Tag)
    //#post(ValidationResponse validate(String)): init'ed(new ConfigManager(getGlobalConfig#1).channel)
    //#post(ValidationResponse validate(String)): init'ed(new ConfigManager(getGlobalConfig#1).file)
    //#post(ValidationResponse validate(String)): init'ed(new ConfigManager(getGlobalConfig#1).ircd)
    //#post(ValidationResponse validate(String)): init'ed(new ConfigManager(getGlobalConfig#1).listeners)
    //#post(ValidationResponse validate(String)): init'ed(new ConfigManager(getGlobalConfig#1).network)
    //#post(ValidationResponse validate(String)): init'ed(new ConfigManager(getGlobalConfig#1).server)
    //#post(ValidationResponse validate(String)): init'ed(new ConfigManager(getGlobalConfig#1).sources)
    //#post(ValidationResponse validate(String)): new MapList(ConfigManager#1) num objects <= 1
    //#post(ValidationResponse validate(String)): new ValidationResponse(validate#1) num objects <= 1
    //#post(ValidationResponse validate(String)): new ValidationResponse(validate#1).__Tag == com/dmdirc/config/prefs/validator/ValidationResponse
    //#post(ValidationResponse validate(String)): new ValidationResponse(validate#1).failure == &"Cannot be empty"
    //#post(ValidationResponse validate(String)): new ValidationResponse(validate#2) num objects <= 1
    //#post(ValidationResponse validate(String)): new ValidationResponse(validate#2).__Tag == com/dmdirc/config/prefs/validator/ValidationResponse
    //#post(ValidationResponse validate(String)): new ValidationResponse(validate#2).failure == &"Cannot already exist"
    //#post(ValidationResponse validate(String)): new ValidationResponse(validate#3) num objects <= 1
    //#post(ValidationResponse validate(String)): new ValidationResponse(validate#3).__Tag == com/dmdirc/config/prefs/validator/ValidationResponse
    //#post(ValidationResponse validate(String)): new ValidationResponse(validate#3).failure == null
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.util.ArrayList
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:com.dmdirc.logger.Logger:assertTrue
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.util.List:iterator
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.util.Iterator:hasNext
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.util.Iterator:next
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.lang.Throwable:__curr_excep_obj
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.util.List:add
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:getTarget
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:com.dmdirc.config.ConfigTarget$TYPE:ordinal
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.lang.String:equalsIgnoreCase
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:addListener
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:getSources
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:com.dmdirc.config.ConfigSource
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:com.dmdirc.util.MapList
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:addConfigManager
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.util.Collections:sort
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:hasOption
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.util.Map:containsKey
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.util.Map:get
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.lang.Integer:intValue
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.lang.Integer:valueOf
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.util.Map:put
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:getOption
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.lang.IllegalArgumentException
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:java.lang.String:isEmpty
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:com.dmdirc.util.ConfigFile:getKeyDomain
    //#unanalyzed(ValidationResponse validate(String)): Effects-of-calling:com.dmdirc.util.ConfigFile:isKeyDomain
    //#test_vector(ValidationResponse validate(String)): object: Addr_Set{null}, Inverse{null}
    //#test_vector(ValidationResponse validate(String)): java.lang.String:isEmpty(...)@35: {0}, {1}
            return new ValidationResponse("Cannot be empty");
        } else if (IdentityManager.getGlobalConfig().hasOptionString("protocol", object)) {
            return new ValidationResponse("Cannot already exist");
        } else {
            return new ValidationResponse();
    //#URLProtocolValidator.java:40: end of method: ValidationResponse com.dmdirc.config.prefs.validator.URLProtocolValidator.validate(String)
        }
    }
}
    //#output(com.dmdirc.config.prefs.validator.URLProtocolValidator__static_init): __Descendant_Table[com/dmdirc/config/prefs/validator/URLProtocolValidator]
    //#output(com.dmdirc.config.prefs.validator.URLProtocolValidator__static_init): __Dispatch_Table.validate(Ljava/lang/Object;)Lcom/dmdirc/config/prefs/validator/ValidationResponse;
    //#output(com.dmdirc.config.prefs.validator.URLProtocolValidator__static_init): __Dispatch_Table.validate(Ljava/lang/String;)Lcom/dmdirc/config/prefs/validator/ValidationResponse;
    //#output(com.dmdirc.config.prefs.validator.URLProtocolValidator__static_init): com/dmdirc/config/prefs/validator/Validator.__Descendant_Table[com/dmdirc/config/prefs/validator/URLProtocolValidator]
    //#post(com.dmdirc.config.prefs.validator.URLProtocolValidator__static_init): __Descendant_Table[com/dmdirc/config/prefs/validator/URLProtocolValidator] == &__Dispatch_Table
    //#post(com.dmdirc.config.prefs.validator.URLProtocolValidator__static_init): com/dmdirc/config/prefs/validator/Validator.__Descendant_Table[com/dmdirc/config/prefs/validator/URLProtocolValidator] == &__Dispatch_Table
    //#post(com.dmdirc.config.prefs.validator.URLProtocolValidator__static_init): __Dispatch_Table.validate(Ljava/lang/Object;)Lcom/dmdirc/config/prefs/validator/ValidationResponse; == &validate
    //#post(com.dmdirc.config.prefs.validator.URLProtocolValidator__static_init): __Dispatch_Table.validate(Ljava/lang/String;)Lcom/dmdirc/config/prefs/validator/ValidationResponse; == &validate
    //#URLProtocolValidator.java:: end of method: com.dmdirc.config.prefs.validator.URLProtocolValidator.com.dmdirc.config.prefs.validator.URLProtocolValidator__static_init
    //#URLProtocolValidator.java:: end of class: com.dmdirc.config.prefs.validator.URLProtocolValidator
