Merge pull request #3027 from pablograna/fix-eclipse-errors

Use UnsupportedOperationException.
This commit is contained in:
wing328 2016-06-03 15:48:28 +08:00
commit ac4c460338
5 changed files with 7 additions and 9 deletions

View File

@ -7,10 +7,8 @@ import io.swagger.models.properties.*;
import io.swagger.models.Model; import io.swagger.models.Model;
import io.swagger.models.Operation; import io.swagger.models.Operation;
import io.swagger.models.Swagger; import io.swagger.models.Swagger;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import java.util.*; import java.util.*;
import java.io.File;
public class HaskellServantCodegen extends DefaultCodegen implements CodegenConfig { 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 "pipes": return "(QueryList 'PipeSeparated (" + type + "))";
case "multi": return "(QueryList 'MultiParamArray (" + type + "))"; case "multi": return "(QueryList 'MultiParamArray (" + type + "))";
default: default:
throw new NotImplementedException(); throw new UnsupportedOperationException();
} }
} }

View File

@ -1,4 +1,4 @@
package io.swagger.codegen.Go; package io.swagger.codegen.go;
import io.swagger.codegen.AbstractOptionsTest; import io.swagger.codegen.AbstractOptionsTest;
import io.swagger.codegen.CodegenConfig; import io.swagger.codegen.CodegenConfig;

View File

@ -1,4 +1,4 @@
package io.swagger.codegen.Go; package io.swagger.codegen.go;
import io.swagger.codegen.CodegenModel; import io.swagger.codegen.CodegenModel;
import io.swagger.codegen.CodegenProperty; import io.swagger.codegen.CodegenProperty;

View File

@ -1,4 +1,4 @@
package io.swagger.codegen.slim; package io.swagger.codegen.lumen;
import io.swagger.codegen.AbstractOptionsTest; import io.swagger.codegen.AbstractOptionsTest;
import io.swagger.codegen.CodegenConfig; import io.swagger.codegen.CodegenConfig;

View File

@ -1,4 +1,4 @@
package io.swagger.codegen.springBoot; package io.swagger.codegen.springboot;
import io.swagger.codegen.CodegenConfig; import io.swagger.codegen.CodegenConfig;
import io.swagger.codegen.java.JavaClientOptionsTest; import io.swagger.codegen.java.JavaClientOptionsTest;