You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by gi...@apache.org on 2017/10/31 20:53:27 UTC
ant-ivy git commit: Checkstyle: modifiers in interfaces
Repository: ant-ivy
Updated Branches:
refs/heads/master ada0a22ac -> e292769f2
Checkstyle: modifiers in interfaces
Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/e292769f
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/e292769f
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/e292769f
Branch: refs/heads/master
Commit: e292769f29748054e1e364ee3e7d442c709447b6
Parents: ada0a22
Author: Gintas Grigelionis <gi...@apache.org>
Authored: Tue Oct 31 21:52:58 2017 +0100
Committer: Gintas Grigelionis <gi...@apache.org>
Committed: Tue Oct 31 21:52:58 2017 +0100
----------------------------------------------------------------------
.../apache/ivy/core/cache/DownloadListener.java | 6 ++--
.../core/cache/ModuleDescriptorProvider.java | 2 +-
.../ivy/core/cache/ModuleDescriptorWriter.java | 2 +-
.../org/apache/ivy/core/event/IvyListener.java | 2 +-
.../module/descriptor/ConfigurationAware.java | 4 +--
.../DependencyArtifactDescriptor.java | 12 +++----
.../module/descriptor/DependencyDescriptor.java | 2 +-
.../ivy/core/module/descriptor/ExcludeRule.java | 6 ++--
.../module/descriptor/ExtendsDescriptor.java | 22 ++++++------
.../ivy/core/module/descriptor/IncludeRule.java | 6 ++--
.../core/module/descriptor/InheritableItem.java | 2 +-
.../module/descriptor/ModuleDescriptor.java | 8 ++---
.../RepositoryManagementEngineSettings.java | 2 +-
.../ivy/core/settings/IvyVariableContainer.java | 8 ++---
.../apache/ivy/core/settings/Validatable.java | 2 +-
.../core/sort/NonMatchingVersionReporter.java | 2 +-
.../ivy/core/sort/SortEngineSettings.java | 4 +--
.../org/apache/ivy/plugins/matcher/Matcher.java | 4 +--
.../ivy/plugins/matcher/PatternMatcher.java | 14 ++++----
.../plugins/namespace/NamespaceTransformer.java | 4 +--
.../plugins/parser/ModuleDescriptorParser.java | 12 +++----
.../ivy/plugins/parser/m2/PomDependencyMgt.java | 10 +++---
.../ivy/plugins/report/ReportOutputter.java | 8 ++---
.../repository/ArtifactResourceResolver.java | 2 +-
.../plugins/repository/LocalizableResource.java | 2 +-
.../apache/ivy/plugins/repository/Resource.java | 14 ++++----
.../plugins/repository/ResourceDownloader.java | 2 +-
.../ivy/plugins/resolver/IBiblioResolver.java | 2 +-
.../resolver/util/HasLatestStrategy.java | 6 ++--
.../ivy/tools/analyser/DependencyAnalyser.java | 2 +-
src/java/org/apache/ivy/util/FileResolver.java | 2 +-
src/java/org/apache/ivy/util/MessageLogger.java | 38 ++++++++++----------
32 files changed, 107 insertions(+), 107 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/cache/DownloadListener.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/cache/DownloadListener.java b/src/java/org/apache/ivy/core/cache/DownloadListener.java
index 50f7741..2594fc4 100644
--- a/src/java/org/apache/ivy/core/cache/DownloadListener.java
+++ b/src/java/org/apache/ivy/core/cache/DownloadListener.java
@@ -24,11 +24,11 @@ import org.apache.ivy.core.report.ArtifactDownloadReport;
import org.apache.ivy.plugins.resolver.util.ResolvedResource;
public interface DownloadListener {
- public void needArtifact(RepositoryCacheManager cache, Artifact artifact);
+ void needArtifact(RepositoryCacheManager cache, Artifact artifact);
- public void startArtifactDownload(RepositoryCacheManager cache, ResolvedResource rres,
+ void startArtifactDownload(RepositoryCacheManager cache, ResolvedResource rres,
Artifact artifact, ArtifactOrigin origin);
- public void endArtifactDownload(RepositoryCacheManager cache, Artifact artifact,
+ void endArtifactDownload(RepositoryCacheManager cache, Artifact artifact,
ArtifactDownloadReport adr, File archiveFile);
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/cache/ModuleDescriptorProvider.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/cache/ModuleDescriptorProvider.java b/src/java/org/apache/ivy/core/cache/ModuleDescriptorProvider.java
index 96cae4d..4f09717 100644
--- a/src/java/org/apache/ivy/core/cache/ModuleDescriptorProvider.java
+++ b/src/java/org/apache/ivy/core/cache/ModuleDescriptorProvider.java
@@ -26,6 +26,6 @@ import org.apache.ivy.plugins.parser.ParserSettings;
interface ModuleDescriptorProvider {
- public ModuleDescriptor provideModule(ParserSettings ivySettings, File descriptorFile,
+ ModuleDescriptor provideModule(ParserSettings ivySettings, File descriptorFile,
boolean validate) throws ParseException, IOException;
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/cache/ModuleDescriptorWriter.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/cache/ModuleDescriptorWriter.java b/src/java/org/apache/ivy/core/cache/ModuleDescriptorWriter.java
index ee8542d..510012a 100644
--- a/src/java/org/apache/ivy/core/cache/ModuleDescriptorWriter.java
+++ b/src/java/org/apache/ivy/core/cache/ModuleDescriptorWriter.java
@@ -25,6 +25,6 @@ import org.apache.ivy.core.module.descriptor.ModuleDescriptor;
import org.apache.ivy.plugins.resolver.util.ResolvedResource;
public interface ModuleDescriptorWriter {
- public void write(ResolvedResource originalMdResource, ModuleDescriptor md, File src, File dest)
+ void write(ResolvedResource originalMdResource, ModuleDescriptor md, File src, File dest)
throws IOException, ParseException;
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/event/IvyListener.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/event/IvyListener.java b/src/java/org/apache/ivy/core/event/IvyListener.java
index 881b3cd..57fccd3 100644
--- a/src/java/org/apache/ivy/core/event/IvyListener.java
+++ b/src/java/org/apache/ivy/core/event/IvyListener.java
@@ -20,5 +20,5 @@ package org.apache.ivy.core.event;
import java.util.EventListener;
public interface IvyListener extends EventListener {
- public void progress(IvyEvent event);
+ void progress(IvyEvent event);
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/module/descriptor/ConfigurationAware.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/module/descriptor/ConfigurationAware.java b/src/java/org/apache/ivy/core/module/descriptor/ConfigurationAware.java
index 38bc6eb..dac358d 100644
--- a/src/java/org/apache/ivy/core/module/descriptor/ConfigurationAware.java
+++ b/src/java/org/apache/ivy/core/module/descriptor/ConfigurationAware.java
@@ -27,7 +27,7 @@ public interface ConfigurationAware {
*
* @return an array of configuration names to which the object is attached
*/
- public String[] getConfigurations();
+ String[] getConfigurations();
/**
* Tells this object that it will now be part of the given configuration
@@ -35,5 +35,5 @@ public interface ConfigurationAware {
* @param confName
* the name of the configuration to which the object is now attached
*/
- public void addConfiguration(String confName);
+ void addConfiguration(String confName);
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/module/descriptor/DependencyArtifactDescriptor.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/module/descriptor/DependencyArtifactDescriptor.java b/src/java/org/apache/ivy/core/module/descriptor/DependencyArtifactDescriptor.java
index f20080f..7afa317 100644
--- a/src/java/org/apache/ivy/core/module/descriptor/DependencyArtifactDescriptor.java
+++ b/src/java/org/apache/ivy/core/module/descriptor/DependencyArtifactDescriptor.java
@@ -29,30 +29,30 @@ public interface DependencyArtifactDescriptor extends ExtendableItem {
/**
* @return the dependency descriptor in which this dependency artifact descriptor is declared.
*/
- public DependencyDescriptor getDependencyDescriptor();
+ DependencyDescriptor getDependencyDescriptor();
/**
* @return the name of the artifact asked
*/
- public String getName();
+ String getName();
/**
* @return the type of the artifact asked
*/
- public String getType();
+ String getType();
/**
* @return the ext of the artifact asked
*/
- public String getExt();
+ String getExt();
/**
* @return the url to look this artifact up at
*/
- public URL getUrl();
+ URL getUrl();
/**
* @return an array of configuration names of the module in which the artifact is asked
*/
- public String[] getConfigurations();
+ String[] getConfigurations();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/module/descriptor/DependencyDescriptor.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/module/descriptor/DependencyDescriptor.java b/src/java/org/apache/ivy/core/module/descriptor/DependencyDescriptor.java
index 880c0e3..1351e86 100644
--- a/src/java/org/apache/ivy/core/module/descriptor/DependencyDescriptor.java
+++ b/src/java/org/apache/ivy/core/module/descriptor/DependencyDescriptor.java
@@ -121,7 +121,7 @@ public interface DependencyDescriptor extends ExtendableItem, InheritableItem {
/**
* @return true if this descriptor contains any exclusion rule
*/
- public boolean canExclude();
+ boolean canExclude();
DependencyDescriptor asSystem();
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/module/descriptor/ExcludeRule.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/module/descriptor/ExcludeRule.java b/src/java/org/apache/ivy/core/module/descriptor/ExcludeRule.java
index 3ece496..1a7c5ff 100644
--- a/src/java/org/apache/ivy/core/module/descriptor/ExcludeRule.java
+++ b/src/java/org/apache/ivy/core/module/descriptor/ExcludeRule.java
@@ -32,19 +32,19 @@ public interface ExcludeRule extends ExtendableItem {
*
* @return ArtifactId
*/
- public ArtifactId getId();
+ ArtifactId getId();
/**
* Returns the configurations of the module in which the artifact is asked
*
* @return an array of configuration names in which the artifact is asked
*/
- public String[] getConfigurations();
+ String[] getConfigurations();
/**
* Returns the matcher to use to know if an artifact match the current descriptor
*
* @return PatternMatcher
*/
- public PatternMatcher getMatcher();
+ PatternMatcher getMatcher();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/module/descriptor/ExtendsDescriptor.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/module/descriptor/ExtendsDescriptor.java b/src/java/org/apache/ivy/core/module/descriptor/ExtendsDescriptor.java
index b953104..ceba103 100644
--- a/src/java/org/apache/ivy/core/module/descriptor/ExtendsDescriptor.java
+++ b/src/java/org/apache/ivy/core/module/descriptor/ExtendsDescriptor.java
@@ -29,7 +29,7 @@ public interface ExtendsDescriptor {
*
* @return ModuleRevisionId
*/
- public ModuleRevisionId getParentRevisionId();
+ ModuleRevisionId getParentRevisionId();
/**
* get the resolved revision id for {@link #getParentRevisionId}, see
@@ -37,9 +37,9 @@ public interface ExtendsDescriptor {
*
* @return ModuleRevisionId
*/
- public ModuleRevisionId getResolvedParentRevisionId();
+ ModuleRevisionId getResolvedParentRevisionId();
- public ModuleDescriptor getParentMd();
+ ModuleDescriptor getParentMd();
/**
* If there is an explicit path to check for the parent descriptor, return it. Otherwise returns
@@ -47,7 +47,7 @@ public interface ExtendsDescriptor {
*
* @return String
*/
- public String getLocation();
+ String getLocation();
/**
* Get the parts of the parent descriptor that are inherited. Default supported types are
@@ -57,32 +57,32 @@ public interface ExtendsDescriptor {
*
* @return String[]
*/
- public String[] getExtendsTypes();
+ String[] getExtendsTypes();
/**
* @return true if the <code>all</code> extend type is specified, implying all other types
*/
- public boolean isAllInherited();
+ boolean isAllInherited();
/**
* @return true if parent info attributes are inherited (organisation, branch, revision, etc)
*/
- public boolean isInfoInherited();
+ boolean isInfoInherited();
/**
* @return true if parent description is inherited
*/
- public boolean isDescriptionInherited();
+ boolean isDescriptionInherited();
/**
* @return true if parent configurations are inherited
*/
- public boolean areConfigurationsInherited();
+ boolean areConfigurationsInherited();
/**
* @return true if parent dependencies are inherited
*/
- public boolean areDependenciesInherited();
+ boolean areDependenciesInherited();
- public boolean isLocal();
+ boolean isLocal();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/module/descriptor/IncludeRule.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/module/descriptor/IncludeRule.java b/src/java/org/apache/ivy/core/module/descriptor/IncludeRule.java
index 254addd..212023e 100644
--- a/src/java/org/apache/ivy/core/module/descriptor/IncludeRule.java
+++ b/src/java/org/apache/ivy/core/module/descriptor/IncludeRule.java
@@ -32,20 +32,20 @@ public interface IncludeRule extends ExtendableItem {
*
* @return ArtifactId
*/
- public ArtifactId getId();
+ ArtifactId getId();
/**
* Returns the configurations of the module in which the artifact is asked
*
* @return an array of configuration names in which the artifact is asked
*/
- public String[] getConfigurations();
+ String[] getConfigurations();
/**
* Returns the matcher to use to know if an artifact match the current descriptor
*
* @return PatternMatcher
*/
- public PatternMatcher getMatcher();
+ PatternMatcher getMatcher();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/module/descriptor/InheritableItem.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/module/descriptor/InheritableItem.java b/src/java/org/apache/ivy/core/module/descriptor/InheritableItem.java
index 1a7e1e7..8b9e132 100644
--- a/src/java/org/apache/ivy/core/module/descriptor/InheritableItem.java
+++ b/src/java/org/apache/ivy/core/module/descriptor/InheritableItem.java
@@ -30,5 +30,5 @@ public interface InheritableItem {
* @return the module in which this item was actually defined, if different from the module in
* which the item appears. May be null.
*/
- public ModuleRevisionId getSourceModule();
+ ModuleRevisionId getSourceModule();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/module/descriptor/ModuleDescriptor.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/module/descriptor/ModuleDescriptor.java b/src/java/org/apache/ivy/core/module/descriptor/ModuleDescriptor.java
index da92131..da20d5e 100644
--- a/src/java/org/apache/ivy/core/module/descriptor/ModuleDescriptor.java
+++ b/src/java/org/apache/ivy/core/module/descriptor/ModuleDescriptor.java
@@ -41,9 +41,9 @@ import org.apache.ivy.util.extendable.ExtendableItem;
public interface ModuleDescriptor extends ExtendableItem, ArtifactInfo,
DependencyDescriptorMediator {
- public static final String DEFAULT_CONFIGURATION = "default";
+ String DEFAULT_CONFIGURATION = "default";
- public static final String CALLER_ALL_CONFIGURATION = "all";
+ String CALLER_ALL_CONFIGURATION = "all";
/**
* @return true if this descriptor is a default one, i.e. one generated for a module not
@@ -206,13 +206,13 @@ public interface ModuleDescriptor extends ExtendableItem, ArtifactInfo,
*
* @return an array of all {@link ExcludeRule} this module descriptor currently holds.
*/
- public ExcludeRule[] getAllExcludeRules();
+ ExcludeRule[] getAllExcludeRules();
/**
* @return all the {@link DependencyDescriptorMediator}s used by this
* {@link ModuleDescriptor}, as an instance of {@link ModuleRules}.
*/
- public ModuleRules<DependencyDescriptorMediator> getAllDependencyDescriptorMediators();
+ ModuleRules<DependencyDescriptorMediator> getAllDependencyDescriptorMediators();
/**
* @return the list of xml namespaces used by extra attributes, as Map from prefix to namespace
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/repository/RepositoryManagementEngineSettings.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/repository/RepositoryManagementEngineSettings.java b/src/java/org/apache/ivy/core/repository/RepositoryManagementEngineSettings.java
index ff946f6..d50ae52 100644
--- a/src/java/org/apache/ivy/core/repository/RepositoryManagementEngineSettings.java
+++ b/src/java/org/apache/ivy/core/repository/RepositoryManagementEngineSettings.java
@@ -20,5 +20,5 @@ package org.apache.ivy.core.repository;
import org.apache.ivy.core.resolve.ResolveEngineSettings;
public interface RepositoryManagementEngineSettings extends ResolveEngineSettings {
- public boolean dumpMemoryUsage();
+ boolean dumpMemoryUsage();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/settings/IvyVariableContainer.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/settings/IvyVariableContainer.java b/src/java/org/apache/ivy/core/settings/IvyVariableContainer.java
index ba2af68..4d81fe1 100644
--- a/src/java/org/apache/ivy/core/settings/IvyVariableContainer.java
+++ b/src/java/org/apache/ivy/core/settings/IvyVariableContainer.java
@@ -22,9 +22,9 @@ package org.apache.ivy.core.settings;
*/
public interface IvyVariableContainer extends Cloneable {
- public void setVariable(String varName, String value, boolean overwrite);
+ void setVariable(String varName, String value, boolean overwrite);
- public String getVariable(String name);
+ String getVariable(String name);
/**
* Specifies the prefix used to indicate a variable is an environment variable. If the prefix
@@ -33,7 +33,7 @@ public interface IvyVariableContainer extends Cloneable {
* @param prefix
* the prefix to use for the environment variables
*/
- public void setEnvironmentPrefix(String prefix);
+ void setEnvironmentPrefix(String prefix);
- public Object clone();
+ Object clone();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/settings/Validatable.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/settings/Validatable.java b/src/java/org/apache/ivy/core/settings/Validatable.java
index 8c133c4..968926e 100644
--- a/src/java/org/apache/ivy/core/settings/Validatable.java
+++ b/src/java/org/apache/ivy/core/settings/Validatable.java
@@ -28,5 +28,5 @@ public interface Validatable {
* @throws IllegalStateException
* if the state of the {@link Validatable} is not valid.
*/
- public void validate();
+ void validate();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/sort/NonMatchingVersionReporter.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/sort/NonMatchingVersionReporter.java b/src/java/org/apache/ivy/core/sort/NonMatchingVersionReporter.java
index 0584f87..8a08668 100644
--- a/src/java/org/apache/ivy/core/sort/NonMatchingVersionReporter.java
+++ b/src/java/org/apache/ivy/core/sort/NonMatchingVersionReporter.java
@@ -31,6 +31,6 @@ public interface NonMatchingVersionReporter {
* @param md
* The module to sort having the correct moduleID but a non matching revision
*/
- public void reportNonMatchingVersion(DependencyDescriptor descriptor, ModuleDescriptor md);
+ void reportNonMatchingVersion(DependencyDescriptor descriptor, ModuleDescriptor md);
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/core/sort/SortEngineSettings.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/core/sort/SortEngineSettings.java b/src/java/org/apache/ivy/core/sort/SortEngineSettings.java
index a1fe8ea..edfdcb9 100644
--- a/src/java/org/apache/ivy/core/sort/SortEngineSettings.java
+++ b/src/java/org/apache/ivy/core/sort/SortEngineSettings.java
@@ -25,7 +25,7 @@ import org.apache.ivy.plugins.version.VersionMatcher;
*/
public interface SortEngineSettings {
- public CircularDependencyStrategy getCircularDependencyStrategy();
+ CircularDependencyStrategy getCircularDependencyStrategy();
- public VersionMatcher getVersionMatcher();
+ VersionMatcher getVersionMatcher();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/plugins/matcher/Matcher.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/matcher/Matcher.java b/src/java/org/apache/ivy/plugins/matcher/Matcher.java
index 300c7ab..e03a0b8 100644
--- a/src/java/org/apache/ivy/plugins/matcher/Matcher.java
+++ b/src/java/org/apache/ivy/plugins/matcher/Matcher.java
@@ -29,7 +29,7 @@ public interface Matcher {
* the string to be matched. Cannot be null.
* @return true if the input string is matched, false otherwise.
*/
- public boolean matches(/* @NotNull */String input);
+ boolean matches(/* @NotNull */String input);
/**
* Return if the matcher will match *only* if the expression equals the input. <i> WARN: This is
@@ -40,5 +40,5 @@ public interface Matcher {
* @return true if the matcher only matches when the expression is equals to the input, false
* otherwise.
*/
- public boolean isExact();
+ boolean isExact();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/plugins/matcher/PatternMatcher.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/matcher/PatternMatcher.java b/src/java/org/apache/ivy/plugins/matcher/PatternMatcher.java
index 16b5145..37ddf71 100644
--- a/src/java/org/apache/ivy/plugins/matcher/PatternMatcher.java
+++ b/src/java/org/apache/ivy/plugins/matcher/PatternMatcher.java
@@ -29,27 +29,27 @@ public interface PatternMatcher {
/**
* 'exact' pattern matcher name
*/
- public static final String EXACT = "exact";
+ String EXACT = "exact";
/**
* pattern matcher name 'regexp'
*/
- public static final String REGEXP = "regexp";
+ String REGEXP = "regexp";
/**
* pattern matcher 'glob'
*/
- public static final String GLOB = "glob";
+ String GLOB = "glob";
/**
* pattern matcher name 'exactOrRegexp'
*/
- public static final String EXACT_OR_REGEXP = "exactOrRegexp";
+ String EXACT_OR_REGEXP = "exactOrRegexp";
/**
* Any expression string: '*'
*/
- public static final String ANY_EXPRESSION = "*";
+ String ANY_EXPRESSION = "*";
/**
* Return the matcher for the given expression.
@@ -58,7 +58,7 @@ public interface PatternMatcher {
* the expression to be matched. Cannot be null ?
* @return the matcher instance for the given expression. Never null.
*/
- public/* @NotNull */Matcher getMatcher(/* @NotNull */String expression);
+ /* @NotNull */Matcher getMatcher(/* @NotNull */String expression);
/**
* return the name of this pattern matcher
@@ -69,5 +69,5 @@ public interface PatternMatcher {
* @see #GLOB
* @see #EXACT_OR_REGEXP
*/
- public/* @NotNull */String getName();
+ /* @NotNull */String getName();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/plugins/namespace/NamespaceTransformer.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/namespace/NamespaceTransformer.java b/src/java/org/apache/ivy/plugins/namespace/NamespaceTransformer.java
index 75148b2..f0fd2f1 100644
--- a/src/java/org/apache/ivy/plugins/namespace/NamespaceTransformer.java
+++ b/src/java/org/apache/ivy/plugins/namespace/NamespaceTransformer.java
@@ -20,7 +20,7 @@ package org.apache.ivy.plugins.namespace;
import org.apache.ivy.core.module.id.ModuleRevisionId;
public interface NamespaceTransformer {
- public ModuleRevisionId transform(ModuleRevisionId mrid);
+ ModuleRevisionId transform(ModuleRevisionId mrid);
- public boolean isIdentity();
+ boolean isIdentity();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/plugins/parser/ModuleDescriptorParser.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/parser/ModuleDescriptorParser.java b/src/java/org/apache/ivy/plugins/parser/ModuleDescriptorParser.java
index cb723ef..fd084e9 100644
--- a/src/java/org/apache/ivy/plugins/parser/ModuleDescriptorParser.java
+++ b/src/java/org/apache/ivy/plugins/parser/ModuleDescriptorParser.java
@@ -29,10 +29,10 @@ import org.apache.ivy.core.module.id.ModuleRevisionId;
import org.apache.ivy.plugins.repository.Resource;
public interface ModuleDescriptorParser {
- public ModuleDescriptor parseDescriptor(ParserSettings ivySettings, URL descriptorURL,
+ ModuleDescriptor parseDescriptor(ParserSettings ivySettings, URL descriptorURL,
boolean validate) throws ParseException, IOException;
- public ModuleDescriptor parseDescriptor(ParserSettings ivySettings, URL descriptorURL,
+ ModuleDescriptor parseDescriptor(ParserSettings ivySettings, URL descriptorURL,
Resource res, boolean validate) throws ParseException, IOException;
/**
@@ -46,17 +46,17 @@ public interface ModuleDescriptorParser {
* @throws ParseException if something goes wrong
* @throws IOException if something goes wrong
*/
- public void toIvyFile(InputStream is, Resource res, File destFile, ModuleDescriptor md)
+ void toIvyFile(InputStream is, Resource res, File destFile, ModuleDescriptor md)
throws ParseException, IOException;
- public boolean accept(Resource res);
+ boolean accept(Resource res);
/**
* Return the 'type' of module artifacts this parser is parsing
*
* @return the 'type' of module artifacts this parser is parsing
*/
- public String getType();
+ String getType();
/**
* Returns the module metadata artifact corresponding to the given module revision id that this
@@ -68,5 +68,5 @@ public interface ModuleDescriptorParser {
* the module revision id for which the module artifact should be returned
* @return the module artifact corresponding to the given mrid and resource
*/
- public Artifact getMetadataArtifact(ModuleRevisionId mrid, Resource res);
+ Artifact getMetadataArtifact(ModuleRevisionId mrid, Resource res);
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/plugins/parser/m2/PomDependencyMgt.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/parser/m2/PomDependencyMgt.java b/src/java/org/apache/ivy/plugins/parser/m2/PomDependencyMgt.java
index 45e957c..28da3e3 100644
--- a/src/java/org/apache/ivy/plugins/parser/m2/PomDependencyMgt.java
+++ b/src/java/org/apache/ivy/plugins/parser/m2/PomDependencyMgt.java
@@ -23,13 +23,13 @@ import org.apache.ivy.core.module.id.ModuleId;
public interface PomDependencyMgt {
- public abstract String getGroupId();
+ String getGroupId();
- public abstract String getArtifactId();
+ String getArtifactId();
- public abstract String getVersion();
+ String getVersion();
- public abstract String getScope();
+ String getScope();
- public List<ModuleId> getExcludedModules();
+ List<ModuleId> getExcludedModules();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/plugins/report/ReportOutputter.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/report/ReportOutputter.java b/src/java/org/apache/ivy/plugins/report/ReportOutputter.java
index f7d4ec3..acd1b5c 100644
--- a/src/java/org/apache/ivy/plugins/report/ReportOutputter.java
+++ b/src/java/org/apache/ivy/plugins/report/ReportOutputter.java
@@ -27,12 +27,12 @@ import org.apache.ivy.core.resolve.ResolveOptions;
*
*/
public interface ReportOutputter {
- public static final String CONSOLE = "console";
+ String CONSOLE = "console";
- public static final String XML = "xml";
+ String XML = "xml";
- public abstract void output(ResolveReport report, ResolutionCacheManager cacheMgr,
+ void output(ResolveReport report, ResolutionCacheManager cacheMgr,
ResolveOptions options) throws IOException;
- public abstract String getName();
+ String getName();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/plugins/repository/ArtifactResourceResolver.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/repository/ArtifactResourceResolver.java b/src/java/org/apache/ivy/plugins/repository/ArtifactResourceResolver.java
index 6cf719f..6ec7cba 100644
--- a/src/java/org/apache/ivy/plugins/repository/ArtifactResourceResolver.java
+++ b/src/java/org/apache/ivy/plugins/repository/ArtifactResourceResolver.java
@@ -25,5 +25,5 @@ import org.apache.ivy.plugins.resolver.util.ResolvedResource;
* {@link ResolvedResource}.
*/
public interface ArtifactResourceResolver {
- public ResolvedResource resolve(Artifact artifact);
+ ResolvedResource resolve(Artifact artifact);
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/plugins/repository/LocalizableResource.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/repository/LocalizableResource.java b/src/java/org/apache/ivy/plugins/repository/LocalizableResource.java
index 18be7ca..6c97d48 100644
--- a/src/java/org/apache/ivy/plugins/repository/LocalizableResource.java
+++ b/src/java/org/apache/ivy/plugins/repository/LocalizableResource.java
@@ -33,6 +33,6 @@ public interface LocalizableResource extends Resource {
* @throws IllegalStateException
* when {@link #isLocal()} returns <code>false</code>
*/
- public File getFile();
+ File getFile();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/plugins/repository/Resource.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/repository/Resource.java b/src/java/org/apache/ivy/plugins/repository/Resource.java
index ebab257..320e5fd 100644
--- a/src/java/org/apache/ivy/plugins/repository/Resource.java
+++ b/src/java/org/apache/ivy/plugins/repository/Resource.java
@@ -48,7 +48,7 @@ public interface Resource {
*
* @return the repository's assigned resource name/identifier.
*/
- public String getName();
+ String getName();
/**
* Get the date the resource was last modified
@@ -57,14 +57,14 @@ public interface Resource {
* in milliseconds since the epoch (00:00:00 GMT, January 1, 1970), or <code>0L</code>
* if the file does not exist or if an I/O error occurs.
*/
- public long getLastModified();
+ long getLastModified();
/**
* Get the resource size
*
* @return a <code>long</code> value representing the size of the resource in bytes.
*/
- public long getContentLength();
+ long getContentLength();
/**
* Determine if the resource is available. Note that this method only checks for
@@ -72,14 +72,14 @@ public interface Resource {
*
* @return <code>boolean</code> value indicating if the resource is available.
*/
- public boolean exists();
+ boolean exists();
/**
* Is this resource local to this host, i.e. is it on the file system?
*
* @return <code>boolean</code> value indicating if the resource is local.
*/
- public boolean isLocal();
+ boolean isLocal();
/**
* Clones this resource with a new resource with a different name
@@ -88,7 +88,7 @@ public interface Resource {
* the name of the clone
* @return the cloned resource
*/
- public Resource clone(String cloneName);
+ Resource clone(String cloneName);
/**
* Opens a stream on this resource
@@ -96,5 +96,5 @@ public interface Resource {
* @return the opened input stream
* @throws IOException if something goes wrong
*/
- public InputStream openStream() throws IOException;
+ InputStream openStream() throws IOException;
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/plugins/repository/ResourceDownloader.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/repository/ResourceDownloader.java b/src/java/org/apache/ivy/plugins/repository/ResourceDownloader.java
index a2cb829..3b7a0e3 100644
--- a/src/java/org/apache/ivy/plugins/repository/ResourceDownloader.java
+++ b/src/java/org/apache/ivy/plugins/repository/ResourceDownloader.java
@@ -34,5 +34,5 @@ import org.apache.ivy.core.module.descriptor.Artifact;
* </p>
*/
public interface ResourceDownloader {
- public void download(Artifact artifact, Resource resource, File dest) throws IOException;
+ void download(Artifact artifact, Resource resource, File dest) throws IOException;
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/plugins/resolver/IBiblioResolver.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/resolver/IBiblioResolver.java b/src/java/org/apache/ivy/plugins/resolver/IBiblioResolver.java
index 4fdfc66..48cace2 100644
--- a/src/java/org/apache/ivy/plugins/resolver/IBiblioResolver.java
+++ b/src/java/org/apache/ivy/plugins/resolver/IBiblioResolver.java
@@ -215,7 +215,7 @@ public class IBiblioResolver extends URLResolver {
Message.verbose("\tmaven-metadata not available for: " + mrid);
return null;
}
- try (final InputStream metadataStream = metadata.openStream();) {
+ try (final InputStream metadataStream = metadata.openStream()) {
final StringBuffer timestamp = new StringBuffer();
final StringBuffer buildNumer = new StringBuffer();
XMLHelper.parse(metadataStream, null, new ContextualSAXHandler() {
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/plugins/resolver/util/HasLatestStrategy.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/resolver/util/HasLatestStrategy.java b/src/java/org/apache/ivy/plugins/resolver/util/HasLatestStrategy.java
index ea4b27d..eeaa362 100644
--- a/src/java/org/apache/ivy/plugins/resolver/util/HasLatestStrategy.java
+++ b/src/java/org/apache/ivy/plugins/resolver/util/HasLatestStrategy.java
@@ -20,9 +20,9 @@ package org.apache.ivy.plugins.resolver.util;
import org.apache.ivy.plugins.latest.LatestStrategy;
public interface HasLatestStrategy {
- public LatestStrategy getLatestStrategy();
+ LatestStrategy getLatestStrategy();
- public void setLatestStrategy(LatestStrategy latestStrategy);
+ void setLatestStrategy(LatestStrategy latestStrategy);
- public String getLatest();
+ String getLatest();
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/tools/analyser/DependencyAnalyser.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/tools/analyser/DependencyAnalyser.java b/src/java/org/apache/ivy/tools/analyser/DependencyAnalyser.java
index 1b45040..fedddce 100644
--- a/src/java/org/apache/ivy/tools/analyser/DependencyAnalyser.java
+++ b/src/java/org/apache/ivy/tools/analyser/DependencyAnalyser.java
@@ -20,5 +20,5 @@ package org.apache.ivy.tools.analyser;
import org.apache.ivy.core.module.descriptor.ModuleDescriptor;
public interface DependencyAnalyser {
- public ModuleDescriptor[] analyze(JarModule[] modules);
+ ModuleDescriptor[] analyze(JarModule[] modules);
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/util/FileResolver.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/util/FileResolver.java b/src/java/org/apache/ivy/util/FileResolver.java
index b951c5e..d87a83a 100644
--- a/src/java/org/apache/ivy/util/FileResolver.java
+++ b/src/java/org/apache/ivy/util/FileResolver.java
@@ -20,7 +20,7 @@ package org.apache.ivy.util;
import java.io.File;
public interface FileResolver {
- public static final FileResolver DEFAULT = new FileResolver() {
+ FileResolver DEFAULT = new FileResolver() {
public File resolveFile(String path, String filename) {
return new File(path);
}
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/e292769f/src/java/org/apache/ivy/util/MessageLogger.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/util/MessageLogger.java b/src/java/org/apache/ivy/util/MessageLogger.java
index 623680f..86250c1 100644
--- a/src/java/org/apache/ivy/util/MessageLogger.java
+++ b/src/java/org/apache/ivy/util/MessageLogger.java
@@ -52,7 +52,7 @@ public interface MessageLogger {
* @see Message#MSG_WARN
* @see Message#MSG_ERR
*/
- public abstract void log(String msg, int level);
+ void log(String msg, int level);
/**
* Same as {@link #log(String, int)}, but without adding any contextual information to the
@@ -63,46 +63,46 @@ public interface MessageLogger {
* @param level
* the level at which the message should be logged.
*/
- public abstract void rawlog(String msg, int level);
+ void rawlog(String msg, int level);
- public abstract void debug(String msg);
+ void debug(String msg);
- public abstract void verbose(String msg);
+ void verbose(String msg);
- public abstract void deprecated(String msg);
+ void deprecated(String msg);
- public abstract void info(String msg);
+ void info(String msg);
- public abstract void rawinfo(String msg);
+ void rawinfo(String msg);
- public abstract void warn(String msg);
+ void warn(String msg);
- public abstract void error(String msg);
+ void error(String msg);
- public abstract List<String> getProblems();
+ List<String> getProblems();
- public abstract List<String> getWarns();
+ List<String> getWarns();
- public abstract List<String> getErrors();
+ List<String> getErrors();
/**
* Clears the list of problems, warns and errors.
*/
- public abstract void clearProblems();
+ void clearProblems();
/**
* Sumup all problems encountered so far, and clear them.
*/
- public abstract void sumupProblems();
+ void sumupProblems();
- public abstract void progress();
+ void progress();
- public abstract void endProgress();
+ void endProgress();
- public abstract void endProgress(String msg);
+ void endProgress(String msg);
- public abstract boolean isShowProgress();
+ boolean isShowProgress();
- public abstract void setShowProgress(boolean progress);
+ void setShowProgress(boolean progress);
}