package io.cattle.platform.archaius.sources;

import com.netflix.config.AbstractPollingScheduler;
import com.netflix.config.DynamicConfiguration;
import com.netflix.config.PolledConfigurationSource;

public class NamedDynamicConfiguration extends DynamicConfiguration implements NamedConfigurationSource {

    String sourceName;

    public NamedDynamicConfiguration() {
        super();
    }

    public NamedDynamicConfiguration(PolledConfigurationSource source, AbstractPollingScheduler scheduler) {
        super(source, scheduler);
    }

    @Override
    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

}

package io.cattle.platform.archaius.sources;

import com.netflix.config.AbstractPollingScheduler;
import com.netflix.config.DynamicConfiguration;
import com.netflix.config.PolledConfigurationSource;

@SuppressWarnings("unchecked")
public class NamedDynamicConfiguration extends DynamicConfiguration implements NamedConfigurationSource {

    String sourceName;

    public NamedDynamicConfiguration() {
        super();
    }

    public NamedDynamicConfiguration(PolledConfigurationSource source, AbstractPollingScheduler scheduler) {
        super(source, scheduler);
    }

    @Override
    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

}

Fix warning