archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marti...@apache.org
Subject [archiva-redback-components-expression-evaluator] 28/29: use diamond
Date Mon, 09 Apr 2018 17:25:39 GMT
This is an automated email from the ASF dual-hosted git repository.

martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git

commit adde823b659b44b5d2dc654e76b886475985554b
Author: Olivier Lamy <olamy@apache.org>
AuthorDate: Sat Apr 5 12:44:37 2014 +0000

    use diamond
    
    git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1585087
13f79535-47bb-0310-9956-ffa450edef68
---
 .../redback/components/evaluator/DefaultExpressionEvaluator.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
b/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
index 4bf8ae2..ba52fda 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
@@ -36,11 +36,11 @@ import java.util.regex.Pattern;
 public class DefaultExpressionEvaluator
     implements ExpressionEvaluator
 {
-    private List expressionSources;
+    private List<ExpressionSource> expressionSources;
 
     public DefaultExpressionEvaluator()
     {
-        expressionSources = new ArrayList();
+        expressionSources = new ArrayList<>();
     }
 
     public void addExpressionSource( ExpressionSource source )
@@ -51,10 +51,10 @@ public class DefaultExpressionEvaluator
     public String expand( String str )
         throws EvaluatorException
     {
-        return recursiveExpand( str, new ArrayList() );
+        return recursiveExpand( str, new ArrayList<String>() );
     }
 
-    private String recursiveExpand( String str, List seenExpressions )
+    private String recursiveExpand( String str, List<String> seenExpressions )
         throws EvaluatorException
     {
         if ( StringUtils.isEmpty( str ) )

-- 
To stop receiving notification emails like this one, please contact
martin_s@apache.org.

Mime
View raw message