mirror of
				https://github.com/OpenAPITools/openapi-generator.git
				synced 2025-11-04 02:33:54 +00:00 
			
		
		
		
	This reverts commit d000f90759202967ad5d719e5031307f486bf6fb.
This commit is contained in:
		
							parent
							
								
									d000f90759
								
							
						
					
					
						commit
						fb2c866dfc
					
				@ -74,7 +74,7 @@ public class ApiClient {
 | 
			
		||||
   * @return URL-encoded representation of the input string.
 | 
			
		||||
   */
 | 
			
		||||
  public static String urlEncode(String s) {
 | 
			
		||||
    return URLEncoder.encode(s, UTF_8).replaceAll("\\+", "%2B");
 | 
			
		||||
    return URLEncoder.encode(s, UTF_8).replaceAll("\\+", "%20");
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
 | 
			
		||||
@ -1359,7 +1359,7 @@ public class JavaClientCodegenTest {
 | 
			
		||||
        validateJavaSourceFiles(files);
 | 
			
		||||
 | 
			
		||||
        TestUtils.assertFileContains(Paths.get(output + "/src/main/java/xyz/abcdef/ApiClient.java"),
 | 
			
		||||
                "public static String urlEncode(String s) { return URLEncoder.encode(s, UTF_8).replaceAll(\"\\\\+\", \"%2B\"); }");
 | 
			
		||||
                "public static String urlEncode(String s) { return URLEncoder.encode(s, UTF_8).replaceAll(\"\\\\+\", \"%20\"); }");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 | 
			
		||||
@ -83,7 +83,7 @@ public class ApiClient {
 | 
			
		||||
   * @return URL-encoded representation of the input string.
 | 
			
		||||
   */
 | 
			
		||||
  public static String urlEncode(String s) {
 | 
			
		||||
    return URLEncoder.encode(s, UTF_8).replaceAll("\\+", "%2B");
 | 
			
		||||
    return URLEncoder.encode(s, UTF_8).replaceAll("\\+", "%20");
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
 | 
			
		||||
@ -83,7 +83,7 @@ public class ApiClient {
 | 
			
		||||
   * @return URL-encoded representation of the input string.
 | 
			
		||||
   */
 | 
			
		||||
  public static String urlEncode(String s) {
 | 
			
		||||
    return URLEncoder.encode(s, UTF_8).replaceAll("\\+", "%2B");
 | 
			
		||||
    return URLEncoder.encode(s, UTF_8).replaceAll("\\+", "%20");
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user