forked from loafle/openapi-generator-original
Use UnsupportedOperationException.
Replaced NotImplementedException with UnsupportedOperationException. See bug #3011. Eclipse was throwing some errors related to differences in package names vs file path. I renamed the packages io.swagger.codegen.Go to io.swagger.codegen.go, io.swagger.codegen.slim to package io.swagger.codegen.lumen and io.swagger.codegen.springBoot to io.swagger.codegen.springboot in some test files.
This commit is contained in:
@@ -7,10 +7,8 @@ import io.swagger.models.properties.*;
|
||||
import io.swagger.models.Model;
|
||||
import io.swagger.models.Operation;
|
||||
import io.swagger.models.Swagger;
|
||||
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
|
||||
|
||||
import java.util.*;
|
||||
import java.io.File;
|
||||
|
||||
public class HaskellServantCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
|
||||
@@ -432,7 +430,7 @@ public class HaskellServantCodegen extends DefaultCodegen implements CodegenConf
|
||||
case "pipes": return "(QueryList 'PipeSeparated (" + type + "))";
|
||||
case "multi": return "(QueryList 'MultiParamArray (" + type + "))";
|
||||
default:
|
||||
throw new NotImplementedException();
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user