title: openapi-generator /maven plugin generates invalid java code with «, » characters
body: <p>I just migrating my code from swagger-code generator to open-api code generator. I am using the generator through the <a href="https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-maven-plugin" rel="nofollow noreferrer">maven plugin</a>. I need it to generate a client for an external API (outside my control), the used swagger file is given. </p>
  
  <p>my plugin setting is as follows:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.openapitools&lt;/groupId&gt;
      &lt;artifactId&gt;openapi-generator-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;4.3.1&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;goals&gt;
                  &lt;goal&gt;generate&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;generateApiTests&gt;false&lt;/generateApiTests&gt;
                  &lt;generateModelTests&gt;false&lt;/generateModelTests&gt;
                  &lt;generateSupportingFiles&gt;false&lt;/generateSupportingFiles&gt;
                  &lt;environmentVariables&gt;
                      &lt;supportingFiles&gt;
                          ApiClient.java,Authentication.java,OAuth.java,ApiKeyAuth.java,HttpBasicAuth.java,RFC3339DateFormat.java
                      &lt;/supportingFiles&gt;
                  &lt;/environmentVariables&gt;
                  &lt;inputSpec&gt;${project.basedir}/src/main/resources/api-tpz.json&lt;/inputSpec&gt;
                  &lt;generatorName&gt;java&lt;/generatorName&gt;
                  &lt;configOptions&gt;
                      &lt;library&gt;resttemplate&lt;/library&gt;
                      &lt;dateLibrary&gt;java8&lt;/dateLibrary&gt;
                  &lt;/configOptions&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>To have a minimal example i stripped down the source of swagger to:</p>
  
  <pre><code>{
      "swagger": "2.0",
      "info": {
          "description": "Api Documentation",
          "version": "1.0",
          "title": "Api Documentation",
          "termsOfService": "urn:tos",
          "contact": {
  
          },
          "license": {
              "name": "Apache 2.0",
              "url": "http://www.apache.org/licenses/LICENSE-2.0"
          }
      },
      "securityDefinitions": {
          "basicAuth": {
              "type": "basic"
          }
      },
      "security": [
          {
              "basicAuth": []
          }
      ],
      "host": "example.com",
      "basePath": "/api",
      "tags": [
      ],
      "paths": {
      },
      "definitions": {
          "GenericRow": {
              "type": "object",
              "title": "GenericRow",
              "additionalProperties": {
                  "type": "object"
              }
          },
          "ResultList«GenericRow»": {
              "type": "object",
              "properties": {
                  "offset": {
                      "type": "integer",
                      "format": "int64"
                  },
                  "overallCount": {
                      "type": "integer",
                      "format": "int64"
                  },
                  "results": {
                      "type": "array",
                      "items": {
                          "$ref": "#/definitions/GenericRow"
                      }
                  }
              },
              "title": "ResultList«GenericRow»"
          }
      }
  }
  </code></pre>
  
  <p>While the generator runs fine the code is invalid</p>
  
  <pre><code>@Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      ResultListGenericRow resultList«GenericRow» = (ResultListGenericRow) o;
      return Objects.equals(this.offset, resultList«GenericRow».offset) &amp;&amp;
          Objects.equals(this.overallCount, resultList«GenericRow».overallCount) &amp;&amp;
          Objects.equals(this.results, resultList«GenericRow».results);
    }
  </code></pre>
  
  <p><code>resultList«GenericRow»</code> is just wrong. </p>
  
  <p>On the other hand the name of the <strong>Class is generated correctly</strong> <code>ResultListGenericRow</code> only variable names are handled wrong.</p>
  
  <p>How to fix this problem? </p>
  
  <p>Edit:</p>
  
  <p>I don't have control over given spec file. i need to generate a valid client. swagger code gen worked fine (just removed the special characters). There is no hint about this in migration guide. How to get equivalent code with new generator?</p>