Replace space indentation with tabs
Issue: SPR-10127
This commit is contained in:
committed by
Chris Beams
parent
1762157ad1
commit
2cf45bad86
@@ -24,34 +24,34 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||
@XmlRootElement(namespace = "http://springframework.org/spring-ws")
|
||||
public class BinaryObject {
|
||||
|
||||
@XmlElement(namespace = "http://springframework.org/spring-ws")
|
||||
private byte[] bytes;
|
||||
@XmlElement(namespace = "http://springframework.org/spring-ws")
|
||||
private byte[] bytes;
|
||||
|
||||
@XmlElement(namespace = "http://springframework.org/spring-ws")
|
||||
private DataHandler dataHandler;
|
||||
@XmlElement(namespace = "http://springframework.org/spring-ws")
|
||||
private DataHandler dataHandler;
|
||||
|
||||
@XmlElement(namespace = "http://springframework.org/spring-ws")
|
||||
@XmlAttachmentRef
|
||||
private DataHandler swaDataHandler;
|
||||
@XmlElement(namespace = "http://springframework.org/spring-ws")
|
||||
@XmlAttachmentRef
|
||||
private DataHandler swaDataHandler;
|
||||
|
||||
public BinaryObject() {
|
||||
}
|
||||
public BinaryObject() {
|
||||
}
|
||||
|
||||
public BinaryObject(byte[] bytes, DataHandler dataHandler) {
|
||||
this.bytes = bytes;
|
||||
this.dataHandler = dataHandler;
|
||||
swaDataHandler = dataHandler;
|
||||
}
|
||||
public BinaryObject(byte[] bytes, DataHandler dataHandler) {
|
||||
this.bytes = bytes;
|
||||
this.dataHandler = dataHandler;
|
||||
swaDataHandler = dataHandler;
|
||||
}
|
||||
|
||||
public byte[] getBytes() {
|
||||
return bytes;
|
||||
}
|
||||
public byte[] getBytes() {
|
||||
return bytes;
|
||||
}
|
||||
|
||||
public DataHandler getDataHandler() {
|
||||
return dataHandler;
|
||||
}
|
||||
public DataHandler getDataHandler() {
|
||||
return dataHandler;
|
||||
}
|
||||
|
||||
public DataHandler getSwaDataHandler() {
|
||||
return swaDataHandler;
|
||||
}
|
||||
public DataHandler getSwaDataHandler() {
|
||||
return swaDataHandler;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,17 +20,17 @@ import java.util.ArrayList;
|
||||
|
||||
public class Flights {
|
||||
|
||||
protected ArrayList flightList = new ArrayList();
|
||||
protected ArrayList flightList = new ArrayList();
|
||||
|
||||
public void addFlight(FlightType flight) {
|
||||
flightList.add(flight);
|
||||
}
|
||||
public void addFlight(FlightType flight) {
|
||||
flightList.add(flight);
|
||||
}
|
||||
|
||||
public FlightType getFlight(int index) {
|
||||
return (FlightType) flightList.get(index);
|
||||
}
|
||||
public FlightType getFlight(int index) {
|
||||
return (FlightType) flightList.get(index);
|
||||
}
|
||||
|
||||
public int sizeFlightList() {
|
||||
return flightList.size();
|
||||
}
|
||||
public int sizeFlightList() {
|
||||
return flightList.size();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,15 +27,15 @@ import org.junit.Test;
|
||||
*/
|
||||
public class XmlOptionsFactoryBeanTests {
|
||||
|
||||
private XmlOptionsFactoryBean factoryBean = new XmlOptionsFactoryBean();
|
||||
private XmlOptionsFactoryBean factoryBean = new XmlOptionsFactoryBean();
|
||||
|
||||
@Test
|
||||
@Test
|
||||
public void xmlOptionsFactoryBean() throws Exception {
|
||||
factoryBean.setOptions(Collections.singletonMap(XmlOptions.SAVE_PRETTY_PRINT, Boolean.TRUE));
|
||||
XmlOptions xmlOptions = factoryBean.getObject();
|
||||
assertNotNull("No XmlOptions returned", xmlOptions);
|
||||
assertTrue("Option not set", xmlOptions.hasOption(XmlOptions.SAVE_PRETTY_PRINT));
|
||||
assertFalse("Invalid option set", xmlOptions.hasOption(XmlOptions.LOAD_LINE_NUMBERS));
|
||||
}
|
||||
factoryBean.setOptions(Collections.singletonMap(XmlOptions.SAVE_PRETTY_PRINT, Boolean.TRUE));
|
||||
XmlOptions xmlOptions = factoryBean.getObject();
|
||||
assertNotNull("No XmlOptions returned", xmlOptions);
|
||||
assertTrue("Option not set", xmlOptions.hasOption(XmlOptions.SAVE_PRETTY_PRINT));
|
||||
assertFalse("Invalid option set", xmlOptions.hasOption(XmlOptions.LOAD_LINE_NUMBERS));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -21,14 +21,14 @@ import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
@XStreamAlias("flight")
|
||||
public class Flight {
|
||||
|
||||
@XStreamAlias("number")
|
||||
private long flightNumber;
|
||||
@XStreamAlias("number")
|
||||
private long flightNumber;
|
||||
|
||||
public long getFlightNumber() {
|
||||
return flightNumber;
|
||||
}
|
||||
public long getFlightNumber() {
|
||||
return flightNumber;
|
||||
}
|
||||
|
||||
public void setFlightNumber(long number) {
|
||||
this.flightNumber = number;
|
||||
}
|
||||
}
|
||||
public void setFlightNumber(long number) {
|
||||
this.flightNumber = number;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user