fixed new issues reported by Checkstyle 6.18

This commit is contained in:
Hervé Boutemy 2018-02-08 07:37:05 +01:00
parent e2bc17b508
commit cf7b0a3ec0
61 changed files with 87 additions and 88 deletions

View File

@ -98,7 +98,7 @@ public class ComparableVersion
this.value = BIG_INTEGER_ZERO;
}
public IntegerItem( String str )
IntegerItem( String str )
{
this.value = new BigInteger( str );
}
@ -169,7 +169,7 @@ public class ComparableVersion
private String value;
public StringItem( String value, boolean followedByDigit )
StringItem( String value, boolean followedByDigit )
{
if ( followedByDigit && value.length() == 1 )
{

View File

@ -55,7 +55,7 @@ class DefaultProblem
* @param columnNumber The one-based index of the column containing the problem or {@code -1} if unknown.
* @param exception The exception that caused this problem, may be {@code null}.
*/
public DefaultProblem( String message, Severity severity, String source, int lineNumber, int columnNumber,
DefaultProblem( String message, Severity severity, String source, int lineNumber, int columnNumber,
Exception exception )
{
this.message = message;

View File

@ -36,7 +36,7 @@ class DefaultProblemCollector
private String source;
public DefaultProblemCollector( List<Problem> problems )
DefaultProblemCollector( List<Problem> problems )
{
this.problems = ( problems != null ) ? problems : new ArrayList<Problem>();
}

View File

@ -64,7 +64,7 @@ class ReactorReader
private WorkspaceRepository repository;
@Inject
public ReactorReader( MavenSession session )
ReactorReader( MavenSession session )
{
projectsByGAV = session.getProjectMap();

View File

@ -347,7 +347,7 @@ public class RepositoryUtils
private final ArtifactHandlerManager handlerManager;
public MavenArtifactTypeRegistry( ArtifactHandlerManager handlerManager )
MavenArtifactTypeRegistry( ArtifactHandlerManager handlerManager )
{
this.handlerManager = handlerManager;
}

View File

@ -197,7 +197,7 @@ public class LegacyLocalRepositoryManager
private final Metadata metadata;
public ArtifactMetadataAdapter( Metadata metadata )
ArtifactMetadataAdapter( Metadata metadata )
{
this.metadata = metadata;
}
@ -291,7 +291,7 @@ public class LegacyLocalRepositoryManager
private final RemoteRepository repository;
public ArtifactRepositoryAdapter( RemoteRepository repository )
ArtifactRepositoryAdapter( RemoteRepository repository )
{
this.repository = repository;
}

View File

@ -32,7 +32,7 @@ class ArtifactClassRealmConstituent
private final Artifact artifact;
public ArtifactClassRealmConstituent( Artifact artifact )
ArtifactClassRealmConstituent( Artifact artifact )
{
this.artifact = artifact;
}

View File

@ -39,8 +39,8 @@ class DefaultClassRealmRequest
private final List<ClassRealmConstituent> constituents;
public DefaultClassRealmRequest( RealmType type, ClassLoader parent, List<String> parentImports,
Map<String, ClassLoader> foreignImports, List<ClassRealmConstituent> constituents )
DefaultClassRealmRequest( RealmType type, ClassLoader parent, List<String> parentImports,
Map<String, ClassLoader> foreignImports, List<ClassRealmConstituent> constituents )
{
this.type = type;
this.parent = parent;

View File

@ -111,7 +111,7 @@ public class DefaultBeanConfigurator
private final BeanConfigurationPathTranslator translator;
public BeanExpressionEvaluator( BeanConfigurationRequest request )
BeanExpressionEvaluator( BeanConfigurationRequest request )
{
preprocessor = request.getValuePreprocessor();
translator = request.getPathTranslator();

View File

@ -35,7 +35,7 @@ class EventSpyExecutionListener
private final ExecutionListener delegate;
public EventSpyExecutionListener( EventSpyDispatcher dispatcher, ExecutionListener delegate )
EventSpyExecutionListener( EventSpyDispatcher dispatcher, ExecutionListener delegate )
{
this.dispatcher = dispatcher;
this.delegate = delegate;

View File

@ -34,7 +34,7 @@ class EventSpyRepositoryListener
private final RepositoryListener delegate;
public EventSpyRepositoryListener( EventSpyDispatcher dispatcher, RepositoryListener delegate )
EventSpyRepositoryListener( EventSpyDispatcher dispatcher, RepositoryListener delegate )
{
this.dispatcher = dispatcher;
this.delegate = delegate;

View File

@ -47,7 +47,7 @@ class SettingsAdapter
private RuntimeInfo runtimeInfo;
public SettingsAdapter( MavenExecutionRequest request )
SettingsAdapter( MavenExecutionRequest request )
{
this.request = request;

View File

@ -50,8 +50,8 @@ class FilteredProjectDependencyGraph
* @param projectDependencyGraph The project dependency graph to create a sub view from, must not be {@code null}.
* @param whiteList The projects on which the dependency view should focus, must not be {@code null}.
*/
public FilteredProjectDependencyGraph( ProjectDependencyGraph projectDependencyGraph,
Collection<? extends MavenProject> whiteList )
FilteredProjectDependencyGraph( ProjectDependencyGraph projectDependencyGraph,
Collection<? extends MavenProject> whiteList )
{
this.projectDependencyGraph =
Validate.notNull( projectDependencyGraph, "projectDependencyGraph cannot be null" );

View File

@ -35,7 +35,7 @@ class LoggingRepositoryListener
private final Logger logger;
public LoggingRepositoryListener( Logger logger )
LoggingRepositoryListener( Logger logger )
{
this.logger = logger;
}

View File

@ -30,7 +30,7 @@ class CompoundProjectExecutionListener
{
private final Collection<ProjectExecutionListener> listeners;
public CompoundProjectExecutionListener( Collection<ProjectExecutionListener> listeners )
CompoundProjectExecutionListener( Collection<ProjectExecutionListener> listeners )
{
this.listeners = listeners; // NB this is live injected collection
}

View File

@ -41,7 +41,7 @@ class DefaultExecutionEvent
private final Exception exception;
public DefaultExecutionEvent( Type type, MavenSession session, MojoExecution mojoExecution, Exception exception )
DefaultExecutionEvent( Type type, MavenSession session, MojoExecution mojoExecution, Exception exception )
{
this.type = type;
this.session = session;

View File

@ -356,7 +356,7 @@ public class LifecycleDependencyResolver
private Set<String> keys = new HashSet<>();
public ReactorDependencyFilter( Collection<Artifact> artifacts )
ReactorDependencyFilter( Collection<Artifact> artifacts )
{
for ( Artifact artifact : artifacts )
{

View File

@ -209,7 +209,7 @@ public class ThreadOutputMuxer
extends PrintStream
{
public ThreadBoundPrintStream( PrintStream systemOutStream )
ThreadBoundPrintStream( PrintStream systemOutStream )
{
super( systemOutStream );
}

View File

@ -30,7 +30,7 @@ class CompoundMojoExecutionListener
private final Collection<MojoExecutionListener> listeners;
public CompoundMojoExecutionListener( Collection<MojoExecutionListener> listeners )
CompoundMojoExecutionListener( Collection<MojoExecutionListener> listeners )
{
this.listeners = listeners; // NB this is live injected collection
}

View File

@ -141,7 +141,7 @@ public class DefaultPluginDescriptorCache
private final int hashCode;
public CacheKey( Plugin plugin, List<RemoteRepository> repositories, RepositorySystemSession session )
CacheKey( Plugin plugin, List<RemoteRepository> repositories, RepositorySystemSession session )
{
groupId = plugin.getGroupId();
artifactId = plugin.getArtifactId();

View File

@ -44,7 +44,7 @@ public interface ExtensionRealmCache
// marker interface for cache keys
}
static class CacheRecord
class CacheRecord
{
public final ClassRealm realm;
@ -53,7 +53,7 @@ public interface ExtensionRealmCache
public final List<Artifact> artifacts;
public CacheRecord( ClassRealm realm, ExtensionDescriptor descriptor, List<Artifact> artifacts )
CacheRecord( ClassRealm realm, ExtensionDescriptor descriptor, List<Artifact> artifacts )
{
this.realm = realm;
this.descriptor = descriptor;

View File

@ -47,14 +47,14 @@ public interface PluginArtifactsCache
// marker interface for cache keys
}
static class CacheRecord
class CacheRecord
{
public final List<Artifact> artifacts;
public final PluginResolutionException exception;
public CacheRecord( List<Artifact> artifacts )
CacheRecord( List<Artifact> artifacts )
{
this.artifacts = artifacts;
this.exception = null;

View File

@ -41,13 +41,13 @@ import org.eclipse.aether.repository.RemoteRepository;
public interface PluginRealmCache
{
static class CacheRecord
class CacheRecord
{
public final ClassRealm realm;
public final List<Artifact> artifacts;
public CacheRecord( ClassRealm realm, List<Artifact> artifacts )
CacheRecord( ClassRealm realm, List<Artifact> artifacts )
{
this.realm = realm;
this.artifacts = artifacts;

View File

@ -52,7 +52,7 @@ class PluginDependencyResolutionListener
private Map<Artifact, Object> bannedArtifacts = new IdentityHashMap<>();
public PluginDependencyResolutionListener( ArtifactFilter coreFilter )
PluginDependencyResolutionListener( ArtifactFilter coreFilter )
{
this.coreFilter = coreFilter;
}

View File

@ -43,7 +43,7 @@ class ValidatingConfigurationListener
private final Map<String, Parameter> missingParameters;
public ValidatingConfigurationListener( Object mojo, MojoDescriptor mojoDescriptor, ConfigurationListener delegate )
ValidatingConfigurationListener( Object mojo, MojoDescriptor mojoDescriptor, ConfigurationListener delegate )
{
this.mojo = mojo;
this.delegate = delegate;

View File

@ -39,7 +39,7 @@ class WagonExcluder
private final boolean coreArtifact;
public WagonExcluder()
WagonExcluder()
{
this( false );
}

View File

@ -39,18 +39,18 @@ class DefaultPluginPrefixResult
private ArtifactRepository repository;
public DefaultPluginPrefixResult()
DefaultPluginPrefixResult()
{
// does nothing
}
public DefaultPluginPrefixResult( Plugin plugin )
DefaultPluginPrefixResult( Plugin plugin )
{
groupId = plugin.getGroupId();
artifactId = plugin.getArtifactId();
}
public DefaultPluginPrefixResult( String groupId, String artifactId, ArtifactRepository repository )
DefaultPluginPrefixResult( String groupId, String artifactId, ArtifactRepository repository )
{
this.groupId = groupId;
this.artifactId = artifactId;

View File

@ -36,12 +36,12 @@ class DefaultPluginVersionResult
private ArtifactRepository repository;
public DefaultPluginVersionResult()
DefaultPluginVersionResult()
{
// does nothing
}
public DefaultPluginVersionResult( String version )
DefaultPluginVersionResult( String version )
{
this.version = version;
}

View File

@ -51,8 +51,8 @@ class DefaultProjectBuildingResult
* @param problems The problems that were encountered, may be {@code null}.
* @param dependencyResolutionResult The result of the resolution for the project dependencies, may be {@code null}.
*/
public DefaultProjectBuildingResult( MavenProject project, List<ModelProblem> problems,
DependencyResolutionResult dependencyResolutionResult )
DefaultProjectBuildingResult( MavenProject project, List<ModelProblem> problems,
DependencyResolutionResult dependencyResolutionResult )
{
this.projectId =
( project != null ) ? project.getGroupId() + ':' + project.getArtifactId() + ':' + project.getVersion()
@ -70,7 +70,7 @@ class DefaultProjectBuildingResult
* @param pomFile The POM file from which the project was built, may be {@code null}.
* @param problems The problems that were encountered, may be {@code null}.
*/
public DefaultProjectBuildingResult( String projectId, File pomFile, List<ModelProblem> problems )
DefaultProjectBuildingResult( String projectId, File pomFile, List<ModelProblem> problems )
{
this.projectId = ( projectId != null ) ? projectId : "";
this.pomFile = pomFile;

View File

@ -236,7 +236,7 @@ public class DefaultProjectDependenciesResolver
private String indent = "";
public GraphLogger( MavenProject project )
GraphLogger( MavenProject project )
{
this.project = project;
}

View File

@ -43,14 +43,14 @@ public interface ProjectRealmCache
// marker interface for cache keys
}
static class CacheRecord
class CacheRecord
{
public final ClassRealm realm;
public final DependencyFilter extensionArtifactFilter;
public CacheRecord( ClassRealm realm, DependencyFilter extensionArtifactFilter )
CacheRecord( ClassRealm realm, DependencyFilter extensionArtifactFilter )
{
this.realm = realm;
this.extensionArtifactFilter = extensionArtifactFilter;

View File

@ -58,7 +58,7 @@ class ReactorModelCache
private final int hashCode;
public CacheKey( String groupId, String artifactId, String version, String tag )
CacheKey( String groupId, String artifactId, String version, String tag )
{
this.groupId = ( groupId != null ) ? groupId : "";
this.artifactId = ( artifactId != null ) ? artifactId : "";

View File

@ -55,7 +55,7 @@ class ReactorModelPool
private final int hashCode;
public CacheKey( String groupId, String artifactId, String version )
CacheKey( String groupId, String artifactId, String version )
{
this.groupId = ( groupId != null ) ? groupId : "";
this.artifactId = ( artifactId != null ) ? artifactId : "";

View File

@ -46,20 +46,20 @@ public interface ProjectArtifactsCache
// marker interface for cache keys
}
static class CacheRecord
class CacheRecord
{
public final Set<Artifact> artifacts;
public final LifecycleExecutionException exception;
public CacheRecord( Set<Artifact> artifacts )
CacheRecord( Set<Artifact> artifacts )
{
this.artifacts = artifacts;
this.exception = null;
}
public CacheRecord( LifecycleExecutionException exception )
CacheRecord( LifecycleExecutionException exception )
{
this.artifacts = null;
this.exception = exception;

View File

@ -41,7 +41,7 @@ class JavaToolchainImpl
public static final String KEY_JAVAHOME = "jdkHome"; //NOI18N
public JavaToolchainImpl( ToolchainModel model, Logger logger )
JavaToolchainImpl( ToolchainModel model, Logger logger )
{
super( model, "jdk", logger );
}

View File

@ -1684,7 +1684,7 @@ public class MavenCli
@SuppressWarnings( "checkstyle:visibilitymodifier" )
public int exitCode;
public ExitException( int exitCode )
ExitException( int exitCode )
{
this.exitCode = exitCode;
}

View File

@ -28,7 +28,7 @@ package org.apache.maven.cli.logging;
*/
public interface Slf4jConfiguration
{
public static enum Level
enum Level
{
DEBUG, INFO, ERROR
}

View File

@ -49,7 +49,7 @@ public abstract class AbstractMavenTransferListener
// TODO Move me to Maven Shared Utils
static class FileSizeFormat
{
static enum ScaleUnit
enum ScaleUnit
{
BYTE
{
@ -137,7 +137,7 @@ public abstract class AbstractMavenTransferListener
private DecimalFormat smallFormat;
private DecimalFormat largeFormat;
public FileSizeFormat( Locale locale )
FileSizeFormat( Locale locale )
{
smallFormat = new DecimalFormat( "#0.0", new DecimalFormatSymbols( locale ) );
largeFormat = new DecimalFormat( "###0", new DecimalFormatSymbols( locale ) );

View File

@ -36,7 +36,7 @@ class DefaultModelBuildingEvent
private final ModelProblemCollector problems;
public DefaultModelBuildingEvent( Model model, ModelBuildingRequest request, ModelProblemCollector problems )
DefaultModelBuildingEvent( Model model, ModelBuildingRequest request, ModelProblemCollector problems )
{
this.model = model;
this.request = request;

View File

@ -49,7 +49,7 @@ class DefaultModelBuildingResult
private List<ModelProblem> problems;
public DefaultModelBuildingResult()
DefaultModelBuildingResult()
{
modelIds = new ArrayList<>();
rawModels = new HashMap<>();

View File

@ -51,7 +51,7 @@ class DefaultModelProblemCollector
private Set<ModelProblem.Severity> severities = EnumSet.noneOf( ModelProblem.Severity.class );
public DefaultModelProblemCollector( ModelBuildingResult result )
DefaultModelProblemCollector( ModelBuildingResult result )
{
this.result = result;
this.problems = result.getProblems();

View File

@ -41,7 +41,7 @@ class FilterModelBuildingRequest
protected ModelBuildingRequest request;
public FilterModelBuildingRequest( ModelBuildingRequest request )
FilterModelBuildingRequest( ModelBuildingRequest request )
{
this.request = request;
}

View File

@ -51,7 +51,7 @@ class ModelData
*
* @param model The model to wrap, may be {@code null}.
*/
public ModelData( ModelSource source, Model model )
ModelData( ModelSource source, Model model )
{
this.source = source;
this.model = model;
@ -65,7 +65,7 @@ class ModelData
* @param artifactId The effective artifact identifier of the model, may be {@code null}.
* @param version The effective version of the model, may be {@code null}.
*/
public ModelData( ModelSource source, Model model, String groupId, String artifactId, String version )
ModelData( ModelSource source, Model model, String groupId, String artifactId, String version )
{
this.source = source;
this.model = model;

View File

@ -29,7 +29,7 @@ class BuildTimestampValueSource
{
private final MavenBuildTimestamp mavenBuildTimestamp;
public BuildTimestampValueSource( Date startTime, Properties properties )
BuildTimestampValueSource( Date startTime, Properties properties )
{
super( false );
this.mavenBuildTimestamp = new MavenBuildTimestamp( startTime, properties );

View File

@ -39,7 +39,7 @@ class PathTranslatingPostProcessor
private final PathTranslator pathTranslator;
private final List<String> expressionPrefixes;
public PathTranslatingPostProcessor( List<String> expressionPrefixes, Collection<String> unprefixedPathKeys,
PathTranslatingPostProcessor( List<String> expressionPrefixes, Collection<String> unprefixedPathKeys,
File projectDir, PathTranslator pathTranslator )
{
this.expressionPrefixes = expressionPrefixes;

View File

@ -44,7 +44,7 @@ class ProblemDetectingValueSource
private final ModelProblemCollector problems;
public ProblemDetectingValueSource( ValueSource valueSource, String bannedPrefix, String newPrefix,
ProblemDetectingValueSource( ValueSource valueSource, String bannedPrefix, String newPrefix,
ModelProblemCollector problems )
{
this.valueSource = valueSource;

View File

@ -106,10 +106,9 @@ public class StringSearchModelInterpolator
private final ModelProblemCollector problems;
public InterpolateObjectAction( Object target, List<? extends ValueSource> valueSources,
List<? extends InterpolationPostProcessor> postProcessors,
StringSearchModelInterpolator modelInterpolator,
ModelProblemCollector problems )
InterpolateObjectAction( Object target, List<? extends ValueSource> valueSources,
List<? extends InterpolationPostProcessor> postProcessors,
StringSearchModelInterpolator modelInterpolator, ModelProblemCollector problems )
{
this.valueSources = valueSources;
this.postProcessors = postProcessors;

View File

@ -50,7 +50,7 @@ class UrlNormalizingPostProcessor
private UrlNormalizer normalizer;
public UrlNormalizingPostProcessor( UrlNormalizer normalizer )
UrlNormalizingPostProcessor( UrlNormalizer normalizer )
{
this.normalizer = normalizer;
}

View File

@ -77,7 +77,7 @@ class DefaultModelCache
private final int hash;
public Key( String groupId, String artifactId, String version, String tag )
Key( String groupId, String artifactId, String version, String tag )
{
this.groupId = groupId;
this.artifactId = artifactId;

View File

@ -78,9 +78,9 @@ class DefaultModelResolver
private final Set<String> repositoryIds;
public DefaultModelResolver( RepositorySystemSession session, RequestTrace trace, String context,
ArtifactResolver resolver, VersionRangeResolver versionRangeResolver,
RemoteRepositoryManager remoteRepositoryManager, List<RemoteRepository> repositories )
DefaultModelResolver( RepositorySystemSession session, RequestTrace trace, String context,
ArtifactResolver resolver, VersionRangeResolver versionRangeResolver,
RemoteRepositoryManager remoteRepositoryManager, List<RemoteRepository> repositories )
{
this.session = session;
this.trace = trace;

View File

@ -475,7 +475,7 @@ public class DefaultVersionResolver
ArtifactRepository repository;
public VersionInfo( String timestamp, String version, ArtifactRepository repository )
VersionInfo( String timestamp, String version, ArtifactRepository repository )
{
this.timestamp = ( timestamp != null ) ? timestamp : "";
this.version = version;
@ -512,7 +512,7 @@ public class DefaultVersionResolver
private final int hashCode;
public Key( RepositorySystemSession session, VersionRequest request )
Key( RepositorySystemSession session, VersionRequest request )
{
Artifact artifact = request.getArtifact();
groupId = artifact.getGroupId();
@ -585,7 +585,7 @@ public class DefaultVersionResolver
final Class<?> repoClass;
public Record( String version, ArtifactRepository repository )
Record( String version, ArtifactRepository repository )
{
this.version = version;
if ( repository != null )

View File

@ -42,13 +42,13 @@ final class LocalSnapshotMetadata
private final boolean legacyFormat;
public LocalSnapshotMetadata( Artifact artifact, boolean legacyFormat )
LocalSnapshotMetadata( Artifact artifact, boolean legacyFormat )
{
super( createMetadata( artifact, legacyFormat ), null );
this.legacyFormat = legacyFormat;
}
public LocalSnapshotMetadata( Metadata metadata, File file, boolean legacyFormat )
LocalSnapshotMetadata( Metadata metadata, File file, boolean legacyFormat )
{
super( metadata, file );
this.legacyFormat = legacyFormat;

View File

@ -42,7 +42,7 @@ class LocalSnapshotMetadataGenerator
private final boolean legacyFormat;
public LocalSnapshotMetadataGenerator( RepositorySystemSession session, InstallRequest request )
LocalSnapshotMetadataGenerator( RepositorySystemSession session, InstallRequest request )
{
legacyFormat = ConfigUtils.getBoolean( session.getConfigProperties(), false, "maven.metadata.legacy" );

View File

@ -41,7 +41,7 @@ final class RelocatedArtifact
private final String version;
public RelocatedArtifact( Artifact artifact, String groupId, String artifactId, String version )
RelocatedArtifact( Artifact artifact, String groupId, String artifactId, String version )
{
this.artifact = Validate.notNull( artifact, "artifact cannot be null" );
// TODO Use StringUtils here

View File

@ -47,7 +47,7 @@ final class RemoteSnapshotMetadata
private final Map<String, SnapshotVersion> versions = new LinkedHashMap<>();
public RemoteSnapshotMetadata( Artifact artifact, boolean legacyFormat )
RemoteSnapshotMetadata( Artifact artifact, boolean legacyFormat )
{
super( createRepositoryMetadata( artifact, legacyFormat ), null, legacyFormat );
}

View File

@ -42,7 +42,7 @@ class RemoteSnapshotMetadataGenerator
private final boolean legacyFormat;
public RemoteSnapshotMetadataGenerator( RepositorySystemSession session, DeployRequest request )
RemoteSnapshotMetadataGenerator( RepositorySystemSession session, DeployRequest request )
{
legacyFormat = ConfigUtils.getBoolean( session.getConfigProperties(), false, "maven.metadata.legacy" );

View File

@ -38,13 +38,13 @@ final class VersionsMetadata
private final Artifact artifact;
public VersionsMetadata( Artifact artifact )
VersionsMetadata( Artifact artifact )
{
super( createRepositoryMetadata( artifact ), null );
this.artifact = artifact;
}
public VersionsMetadata( Artifact artifact, File file )
VersionsMetadata( Artifact artifact, File file )
{
super( createRepositoryMetadata( artifact ), file );
this.artifact = artifact;

View File

@ -43,12 +43,12 @@ class VersionsMetadataGenerator
private Map<Object, VersionsMetadata> processedVersions;
public VersionsMetadataGenerator( RepositorySystemSession session, InstallRequest request )
VersionsMetadataGenerator( RepositorySystemSession session, InstallRequest request )
{
this( session, request.getMetadata() );
}
public VersionsMetadataGenerator( RepositorySystemSession session, DeployRequest request )
VersionsMetadataGenerator( RepositorySystemSession session, DeployRequest request )
{
this( session, request.getMetadata() );
}

View File

@ -37,7 +37,7 @@ class DefaultSettingsBuildingResult
private List<SettingsProblem> problems;
public DefaultSettingsBuildingResult( Settings effectiveSettings, List<SettingsProblem> problems )
DefaultSettingsBuildingResult( Settings effectiveSettings, List<SettingsProblem> problems )
{
this.effectiveSettings = effectiveSettings;
this.problems = ( problems != null ) ? problems : new ArrayList<SettingsProblem>();

View File

@ -37,7 +37,7 @@ class DefaultSettingsProblemCollector
private String source;
public DefaultSettingsProblemCollector( List<SettingsProblem> problems )
DefaultSettingsProblemCollector( List<SettingsProblem> problems )
{
this.problems = ( problems != null ) ? problems : new ArrayList<SettingsProblem>();
}

View File

@ -41,7 +41,7 @@ class DefaultSettingsDecryptionResult
private List<SettingsProblem> problems;
public DefaultSettingsDecryptionResult( List<Server> servers, List<Proxy> proxies, List<SettingsProblem> problems )
DefaultSettingsDecryptionResult( List<Server> servers, List<Proxy> proxies, List<SettingsProblem> problems )
{
this.servers = ( servers != null ) ? servers : new ArrayList<Server>();
this.proxies = ( proxies != null ) ? proxies : new ArrayList<Proxy>();