From bf97acf0e0786c9c2b560de24e44729e7a5d77f2 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Wed, 19 Feb 2020 22:12:55 +0100 Subject: [PATCH] Fixing bad method parameter --- .../org/apache/archiva/repository/content/ItemSelector.java | 2 +- .../archiva/repository/content/base/ArchivaItemSelector.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/content/ItemSelector.java b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/content/ItemSelector.java index 92f145682..8a4aeb055 100644 --- a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/content/ItemSelector.java +++ b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/content/ItemSelector.java @@ -45,7 +45,7 @@ public interface ItemSelector String getAttribute( String key ); - String getExtension( String extension ); + String getExtension( ); Map getAttributes( ); diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/base/ArchivaItemSelector.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/base/ArchivaItemSelector.java index c66d90a69..f50a3910b 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/base/ArchivaItemSelector.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/base/ArchivaItemSelector.java @@ -190,9 +190,9 @@ public class ArchivaItemSelector implements ItemSelector } @Override - public String getExtension( String extension ) + public String getExtension( ) { - return null; + return extension; } @Override -- 2.39.5