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 5
5
6
6
public final class ASFUILogger {
7
7
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 () {
10
11
return LOGGER ;
11
12
}
12
-
13
+
13
14
private ASFUILogger () {
14
15
}
15
16
Original file line number Diff line number Diff line change 1
1
package io .asfjava .ui .core .logging ;
2
2
3
3
public 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
+ }
9
10
}
Original file line number Diff line number Diff line change 8
8
class CustomSchemaFactoryWrapper extends SchemaFactoryWrapper {
9
9
10
10
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
- }
19
11
20
12
@ Override
21
13
public SchemaFactoryWrapper getWrapper (SerializerProvider p , VisitorContext rvc ) {
Original file line number Diff line number Diff line change 2
2
3
3
import com .fasterxml .jackson .databind .BeanProperty ;
4
4
import com .fasterxml .jackson .module .jsonSchema .JsonSchema ;
5
- import com .fasterxml .jackson .module .jsonSchema .types .StringSchema ;
5
+ import com .fasterxml .jackson .module .jsonSchema .types .SimpleTypeSchema ;
6
6
7
7
import io .asfjava .ui .core .form .Number ;
8
8
@@ -12,7 +12,7 @@ public class NumberSchemaDecorator implements SchemaDecorator {
12
12
public void customizeSchema (BeanProperty property , JsonSchema jsonschema ) {
13
13
Number annotation = property .getAnnotation (Number .class );
14
14
if (annotation != null && annotation .title () != null ) {
15
- ((StringSchema ) jsonschema ).setTitle (annotation .title ());
15
+ ((SimpleTypeSchema ) jsonschema ).setTitle (annotation .title ());
16
16
}
17
17
}
18
18
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ public class UiForm implements Serializable {
11
11
private ArrayNode form ;
12
12
13
13
public UiForm (JsonSchema schema , ArrayNode form ) {
14
- this . schema = schema ;
15
- this . form = form ;
14
+ setSchema ( schema ) ;
15
+ setForm ( form ) ;
16
16
}
17
17
18
18
public JsonSchema getSchema () {
You can’t perform that action at this time.
0 commit comments