File tree Expand file tree Collapse file tree 6 files changed +206
-125
lines changed
test/java/io/asfjava/ui/core/schema Expand file tree Collapse file tree 6 files changed +206
-125
lines changed Original file line number Diff line number Diff line change 55
66public final class ASFUILogger {
77
8- private final static Logger LOGGER =LoggerFactory .getLogger ("ASFUILogger" );
9- public static Logger getLogger (){
8+ private final static Logger LOGGER = LoggerFactory .getLogger ("ASFUILogger" );
9+
10+ public static Logger getLogger () {
1011 return LOGGER ;
1112 }
12-
13+
1314 private ASFUILogger () {
1415 }
1516
Original file line number Diff line number Diff line change 11package io .asfjava .ui .core .logging ;
22
33public final class ErrorCode {
4- public final static String ASF01 ="Failure when trying to load Generators" ;
5- public final static String ASF02 ="Failure when trying to load Decorators" ;
6- private ErrorCode (){
7-
8- }
4+ public final static String ASF01 = "Failure when trying to load Generators" ;
5+ public final static String ASF02 = "Failure when trying to load Decorators" ;
6+
7+ private ErrorCode () {
8+
9+ }
910}
Original file line number Diff line number Diff line change 88class CustomSchemaFactoryWrapper extends SchemaFactoryWrapper {
99
1010 private static class SFSchemaFactoryWrapperFactory extends WrapperFactory {
11- @ Override
12- public SchemaFactoryWrapper getWrapper (SerializerProvider p ) {
13- SchemaFactoryWrapper wrapper = new CustomSchemaFactoryWrapper ();
14- if (p != null ) {
15- wrapper .setProvider (p );
16- }
17- return wrapper ;
18- }
1911
2012 @ Override
2113 public SchemaFactoryWrapper getWrapper (SerializerProvider p , VisitorContext rvc ) {
Original file line number Diff line number Diff line change 22
33import com .fasterxml .jackson .databind .BeanProperty ;
44import com .fasterxml .jackson .module .jsonSchema .JsonSchema ;
5- import com .fasterxml .jackson .module .jsonSchema .types .StringSchema ;
5+ import com .fasterxml .jackson .module .jsonSchema .types .SimpleTypeSchema ;
66
77import io .asfjava .ui .core .form .Number ;
88
@@ -12,7 +12,7 @@ public class NumberSchemaDecorator implements SchemaDecorator {
1212 public void customizeSchema (BeanProperty property , JsonSchema jsonschema ) {
1313 Number annotation = property .getAnnotation (Number .class );
1414 if (annotation != null && annotation .title () != null ) {
15- ((StringSchema ) jsonschema ).setTitle (annotation .title ());
15+ ((SimpleTypeSchema ) jsonschema ).setTitle (annotation .title ());
1616 }
1717 }
1818
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ public class UiForm implements Serializable {
1111 private ArrayNode form ;
1212
1313 public UiForm (JsonSchema schema , ArrayNode form ) {
14- this . schema = schema ;
15- this . form = form ;
14+ setSchema ( schema ) ;
15+ setForm ( form ) ;
1616 }
1717
1818 public JsonSchema getSchema () {
You can’t perform that action at this time.
0 commit comments