e8da8bc
From 82c59ffdd9d0636236d9974dfbeb0d620364f640 Mon Sep 17 00:00:00 2001
e8da8bc
From: Michael Simacek <msimacek@redhat.com>
e8da8bc
Date: Fri, 10 Feb 2017 12:45:06 +0100
e8da8bc
Subject: [PATCH] Port to current qdox
e8da8bc
e8da8bc
---
e8da8bc
 .../com/thoughtworks/paranamer/generator/QdoxParanamerGenerator.java  | 4 ++--
e8da8bc
 1 file changed, 2 insertions(+), 2 deletions(-)
e8da8bc
e8da8bc
diff --git a/paranamer-generator/src/java/com/thoughtworks/paranamer/generator/QdoxParanamerGenerator.java b/paranamer-generator/src/java/com/thoughtworks/paranamer/generator/QdoxParanamerGenerator.java
e8da8bc
index 62266fe..644aa9c 100644
e8da8bc
--- a/paranamer-generator/src/java/com/thoughtworks/paranamer/generator/QdoxParanamerGenerator.java
e8da8bc
+++ b/paranamer-generator/src/java/com/thoughtworks/paranamer/generator/QdoxParanamerGenerator.java
e8da8bc
@@ -85,7 +85,7 @@ public class QdoxParanamerGenerator implements ParanamerGenerator {
e8da8bc
         	content.append(addConstructors(javaClass.getConstructors()));
e8da8bc
         	content.append(addMethods(javaClass.getMethods()));
e8da8bc
             // TODO problem with inner classes
e8da8bc
-            makeEnhancer().enhance(new File(outputPath, javaClass.getFullyQualifiedName().replace('.', File.separatorChar) + ".class"), content);
e8da8bc
+            makeEnhancer().enhance(new File(outputPath, javaClass.getBinaryName().replace('.', File.separatorChar) + ".class"), content);
e8da8bc
 
e8da8bc
         }
e8da8bc
     }
e8da8bc
@@ -171,7 +171,7 @@ public class QdoxParanamerGenerator implements ParanamerGenerator {
e8da8bc
         Iterator<JavaParameter> paramIter = parameters.iterator();
e8da8bc
         while(paramIter.hasNext()) {
e8da8bc
         	JavaParameter param = paramIter.next();
e8da8bc
-        	sb.append(param.getType().getCanonicalName());
e8da8bc
+        	sb.append(param.getType().getCanonicalName().replaceAll("\\[\\]", ""));
e8da8bc
         	if(paramIter.hasNext())
e8da8bc
         	{
e8da8bc
         		sb.append(COMMA);
e8da8bc
-- 
e8da8bc
2.9.3
e8da8bc