formatting work
This commit is contained in:
parent
6c6cc61caf
commit
5dcca02c96
@ -3,7 +3,6 @@ package org.baeldung.jackson.annotation;
|
|||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class BeanWithCreator {
|
public class BeanWithCreator {
|
||||||
public int id;
|
public int id;
|
||||||
public String name;
|
public String name;
|
||||||
|
@ -16,12 +16,8 @@ public class Zoo {
|
|||||||
this.animal = animal;
|
this.animal = animal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = As.PROPERTY, property = "type")
|
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = As.PROPERTY, property = "type")
|
||||||
@JsonSubTypes({
|
@JsonSubTypes({ @JsonSubTypes.Type(value = Dog.class, name = "dog"), @JsonSubTypes.Type(value = Cat.class, name = "cat") })
|
||||||
@JsonSubTypes.Type(value = Dog.class, name = "dog"),
|
|
||||||
@JsonSubTypes.Type(value = Cat.class, name = "cat")
|
|
||||||
})
|
|
||||||
public static class Animal {
|
public static class Animal {
|
||||||
public String name;
|
public String name;
|
||||||
|
|
||||||
|
@ -49,7 +49,6 @@ import com.fasterxml.jackson.databind.ser.FilterProvider;
|
|||||||
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
|
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
|
||||||
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
|
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
|
||||||
|
|
||||||
|
|
||||||
public class JacksonAnnotationTest {
|
public class JacksonAnnotationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="owner.project.facets" value="java"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
|
@ -69,6 +69,7 @@
|
|||||||
<artifactId>hsqldb</artifactId>
|
<artifactId>hsqldb</artifactId>
|
||||||
<version>2.3.2</version>
|
<version>2.3.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- validation -->
|
<!-- validation -->
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -11,7 +11,6 @@ public class ChildValueHolder {
|
|||||||
@Value("${child.name:-}")
|
@Value("${child.name:-}")
|
||||||
private String childName;
|
private String childName;
|
||||||
|
|
||||||
|
|
||||||
public String getParentName() {
|
public String getParentName() {
|
||||||
return parentName;
|
return parentName;
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,6 @@ public class ParentValueHolder {
|
|||||||
@Value("${child.name:-}")
|
@Value("${child.name:-}")
|
||||||
private String childName;
|
private String childName;
|
||||||
|
|
||||||
|
|
||||||
public String getParentName() {
|
public String getParentName() {
|
||||||
return parentName;
|
return parentName;
|
||||||
}
|
}
|
||||||
|
@ -20,8 +20,7 @@ public class ExecutorServiceExitCodeGenerator implements ExitCodeGenerator {
|
|||||||
executorService.shutdownNow();
|
executorService.shutdownNow();
|
||||||
returnCode = 1;
|
returnCode = 1;
|
||||||
}
|
}
|
||||||
}
|
} catch (SecurityException ex) {
|
||||||
catch (SecurityException ex) {
|
|
||||||
returnCode = 0;
|
returnCode = 0;
|
||||||
}
|
}
|
||||||
return returnCode;
|
return returnCode;
|
||||||
|
@ -22,8 +22,7 @@ public class HelloWorldServlet extends HttpServlet {
|
|||||||
out = response.getWriter();
|
out = response.getWriter();
|
||||||
out.println("HelloWorldServlet: GET METHOD");
|
out.println("HelloWorldServlet: GET METHOD");
|
||||||
out.flush();
|
out.flush();
|
||||||
}
|
} finally {
|
||||||
finally {
|
|
||||||
if (!Objects.isNull(out))
|
if (!Objects.isNull(out))
|
||||||
out.close();
|
out.close();
|
||||||
}
|
}
|
||||||
@ -35,8 +34,7 @@ public class HelloWorldServlet extends HttpServlet {
|
|||||||
out = response.getWriter();
|
out = response.getWriter();
|
||||||
out.println("HelloWorldServlet: POST METHOD");
|
out.println("HelloWorldServlet: POST METHOD");
|
||||||
out.flush();
|
out.flush();
|
||||||
}
|
} finally {
|
||||||
finally {
|
|
||||||
if (!Objects.isNull(out))
|
if (!Objects.isNull(out))
|
||||||
out.close();
|
out.close();
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,7 @@ public class SpringHelloWorldServlet extends HttpServlet {
|
|||||||
out = response.getWriter();
|
out = response.getWriter();
|
||||||
out.println("SpringHelloWorldServlet: GET METHOD");
|
out.println("SpringHelloWorldServlet: GET METHOD");
|
||||||
out.flush();
|
out.flush();
|
||||||
}
|
} finally {
|
||||||
finally {
|
|
||||||
if (!Objects.isNull(out))
|
if (!Objects.isNull(out))
|
||||||
out.close();
|
out.close();
|
||||||
}
|
}
|
||||||
@ -35,8 +34,7 @@ public class SpringHelloWorldServlet extends HttpServlet {
|
|||||||
out = response.getWriter();
|
out = response.getWriter();
|
||||||
out.println("SpringHelloWorldServlet: POST METHOD");
|
out.println("SpringHelloWorldServlet: POST METHOD");
|
||||||
out.flush();
|
out.flush();
|
||||||
}
|
} finally {
|
||||||
finally {
|
|
||||||
if (!Objects.isNull(out))
|
if (!Objects.isNull(out))
|
||||||
out.close();
|
out.close();
|
||||||
}
|
}
|
||||||
|
@ -19,9 +19,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@EnableAutoConfiguration
|
@EnableAutoConfiguration
|
||||||
@ComponentScan({ "org.baeldung.common.error", "org.baeldung.common.error.controller",
|
@ComponentScan({ "org.baeldung.common.error", "org.baeldung.common.error.controller", "org.baeldung.common.properties", "org.baeldung.common.resources", "org.baeldung.endpoints", "org.baeldung.service", "org.baeldung.monitor.jmx", "org.baeldung.service" })
|
||||||
"org.baeldung.common.properties", "org.baeldung.common.resources", "org.baeldung.endpoints",
|
|
||||||
"org.baeldung.service", "org.baeldung.monitor.jmx", "org.baeldung.service"})
|
|
||||||
public class SpringBootApplication {
|
public class SpringBootApplication {
|
||||||
|
|
||||||
private static ApplicationContext applicationContext;
|
private static ApplicationContext applicationContext;
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="owner.project.facets" value="java"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
|
@ -4,8 +4,8 @@ import cz.jirutka.rsql.parser.ast.ComparisonOperator;
|
|||||||
import cz.jirutka.rsql.parser.ast.RSQLOperators;
|
import cz.jirutka.rsql.parser.ast.RSQLOperators;
|
||||||
|
|
||||||
public enum RsqlSearchOperation {
|
public enum RsqlSearchOperation {
|
||||||
EQUAL(RSQLOperators.EQUAL), NOT_EQUAL(RSQLOperators.NOT_EQUAL), GREATER_THAN(RSQLOperators.GREATER_THAN), GREATER_THAN_OR_EQUAL(RSQLOperators.GREATER_THAN_OR_EQUAL), LESS_THAN(RSQLOperators.LESS_THAN), LESS_THAN_OR_EQUAL(RSQLOperators.LESS_THAN_OR_EQUAL), IN(
|
EQUAL(RSQLOperators.EQUAL), NOT_EQUAL(RSQLOperators.NOT_EQUAL), GREATER_THAN(RSQLOperators.GREATER_THAN), GREATER_THAN_OR_EQUAL(RSQLOperators.GREATER_THAN_OR_EQUAL), LESS_THAN(RSQLOperators.LESS_THAN), LESS_THAN_OR_EQUAL(
|
||||||
RSQLOperators.IN), NOT_IN(RSQLOperators.NOT_IN);
|
RSQLOperators.LESS_THAN_OR_EQUAL), IN(RSQLOperators.IN), NOT_IN(RSQLOperators.NOT_IN);
|
||||||
|
|
||||||
private ComparisonOperator operator;
|
private ComparisonOperator operator;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user