aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-repository-api
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2018-04-02 21:35:47 +0200
committerMartin Stockhammer <martin_s@apache.org>2018-04-02 21:35:47 +0200
commita2febcecd9aba01d5903525dbe32926866513e58 (patch)
tree16d48cb43d7d6ee7fab8b7464a9fe450ee8c24e5 /archiva-modules/archiva-base/archiva-repository-api
parent0f400d66a309e76d55a15e965cb551bfcf7b0b3d (diff)
downloadarchiva-a2febcecd9aba01d5903525dbe32926866513e58.tar.gz
archiva-a2febcecd9aba01d5903525dbe32926866513e58.zip
Generics and cleanup to reduce compiler warnings
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-api')
-rw-r--r--archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/StandardCapabilities.java2
-rw-r--r--archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/features/AbstractFeature.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/StandardCapabilities.java b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/StandardCapabilities.java
index 0a41c0497..e61c67c85 100644
--- a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/StandardCapabilities.java
+++ b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/StandardCapabilities.java
@@ -48,7 +48,7 @@ public class StandardCapabilities implements RepositoryCapabilities
boolean indexable, boolean fileBased,
boolean canBlockRedeployments, boolean scannable, boolean allowsFailover )
{
- this.supportedReleaseSchemes = new HashSet();
+ this.supportedReleaseSchemes = new HashSet<>();
for (ReleaseScheme scheme : supportedReleaseSchemes) {
this.supportedReleaseSchemes.add(scheme);
}
diff --git a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/features/AbstractFeature.java b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/features/AbstractFeature.java
index 2f5831fea..08d0bba4e 100644
--- a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/features/AbstractFeature.java
+++ b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/features/AbstractFeature.java
@@ -56,7 +56,7 @@ public class AbstractFeature {
this.listener.clear();
}
- protected void raiseEvent(RepositoryEvent event) {
+ protected <T> void raiseEvent(RepositoryEvent<T> event) {
for(RepositoryEventListener listr : listener) {
listr.raise(event);
}