Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37884677
en ru br
ALT Linux repositórios
S:2.11.1-alt1_2jpp11
5.0: 1.5.3-alt1_1jpp6
4.1: 1.5.2-alt2_5jpp1.7
4.0: 1.5.2-alt2_5jpp1.7

Group :: Desenvolvimento/Java
RPM: plexus-compiler

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0001-Copy-input-map-in-setCustomCompilerArguments-AsMap.patch
Download


From 3a9c9a0bea7794c04ddbb8ac0520839c0f3d1cd0 Mon Sep 17 00:00:00 2001
From: Michael Simacek <msimacek@redhat.com>
Date: Tue, 1 Nov 2016 11:17:02 +0100
Subject: [PATCH] Copy input map in setCustomCompilerArguments[AsMap]
---
 .../plexus/compiler/CompilerConfiguration.java         | 18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/plexus-compiler-api/src/main/java/org/codehaus/plexus/compiler/CompilerConfiguration.java b/plexus-compiler-api/src/main/java/org/codehaus/plexus/compiler/CompilerConfiguration.java
index 69fc810..d4c4c03 100644
--- a/plexus-compiler-api/src/main/java/org/codehaus/plexus/compiler/CompilerConfiguration.java
+++ b/plexus-compiler-api/src/main/java/org/codehaus/plexus/compiler/CompilerConfiguration.java
@@ -426,14 +426,7 @@ public class CompilerConfiguration
     @Deprecated
     public void setCustomCompilerArguments( LinkedHashMap<String, String> customCompilerArguments )
     {
-        if ( customCompilerArguments == null )
-        {
-            this.customCompilerArguments = new ArrayList<Map.Entry<String,String>>();
-        }
-        else
-        {
-            this.customCompilerArguments = customCompilerArguments.entrySet();
-        }
+        setCustomCompilerArgumentsAsMap( customCompilerArguments );
     }
 
     /**
@@ -454,13 +447,10 @@ public class CompilerConfiguration
 
     public void setCustomCompilerArgumentsAsMap( Map<String, String> customCompilerArguments )
     {
-        if ( customCompilerArguments == null )
-        {
-            this.customCompilerArguments = new ArrayList<Map.Entry<String,String>>();
-        }
-        else
+        this.customCompilerArguments = new ArrayList<Map.Entry<String,String>>();
+        if ( customCompilerArguments != null )
         {
-            this.customCompilerArguments = customCompilerArguments.entrySet();
+            this.customCompilerArguments.addAll( customCompilerArguments.entrySet() );
         }
     }
     
-- 
2.7.4
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009