Skip to content

Commit a750a1c

Browse files
committed
Using override
1 parent 92c5caa commit a750a1c

File tree

115 files changed

+547
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+547
-0
lines changed

src/org/beanio/BeanReaderErrorHandlerSupport.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public BeanReaderErrorHandlerSupport() { }
3737
* @throws Exception if the BeanReaderException is rethrown or this error
3838
* handler throws a new Exception
3939
*/
40+
@Override
4041
public final void handleError(BeanReaderException ex) throws Exception {
4142
if (ex instanceof InvalidRecordException) {
4243
invalidRecord((InvalidRecordException)ex);

src/org/beanio/Marshaller.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public interface Marshaller extends Debuggable {
7575
* @return the record text
7676
* @throws BeanWriterException if a fatal error occurs
7777
*/
78+
@Override
7879
public String toString() throws BeanWriterException;
7980

8081
/**

src/org/beanio/builder/SegmentBuilderSupport.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public abstract class SegmentBuilderSupport<T extends SegmentBuilderSupport<T>>
2727

2828
SegmentBuilderSupport() { }
2929

30+
@Override
3031
protected abstract SegmentConfig getConfig();
3132

3233
/**

src/org/beanio/internal/compiler/ParserFactorySupport.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public ParserFactorySupport() { }
7676
* @return the new {@link Stream}
7777
* @throws BeanIOConfigurationException if the configuration is invalid
7878
*/
79+
@Override
7980
public Stream createStream(StreamConfig config) throws BeanIOConfigurationException {
8081
if (config.getName() == null) {
8182
throw new BeanIOConfigurationException("stream name not configured");
@@ -245,6 +246,7 @@ protected void updateConstructor(Bean bean) {
245246

246247
// sort arguments by constructor index
247248
Collections.sort(args, new Comparator<Property>() {
249+
@Override
248250
public int compare(Property o1, Property o2) {
249251
return o1.getAccessor().getConstructorArgumentIndex() -
250252
o2.getAccessor().getConstructorArgumentIndex();
@@ -1652,6 +1654,7 @@ protected Object parseDefaultValue(Field field, String text) {
16521654
* @param typeHandlerFactory the <tt>TypeHandlerFactory</tt> to use to
16531655
* create the stream definition
16541656
*/
1657+
@Override
16551658
public void setTypeHandlerFactory(TypeHandlerFactory typeHandlerFactory) {
16561659
this.typeHandlerFactory = typeHandlerFactory;
16571660
}
@@ -1721,6 +1724,7 @@ else if (parserFactoryBean.getInstance() != null) {
17211724
* (non-Javadoc)
17221725
* @see org.beanio.factory.ParserFactory#setClassLoader(java.lang.ClassLoader)
17231726
*/
1727+
@Override
17241728
public void setClassLoader(ClassLoader classLoader) {
17251729
this.classLoader = classLoader;
17261730
}

src/org/beanio/internal/compiler/Preprocessor.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public Preprocessor(StreamConfig stream) {
5050
* Initializes a stream configuration before its children have been processed.
5151
* @param stream the stream configuration to process
5252
*/
53+
@Override
5354
protected void initializeStream(StreamConfig stream) throws BeanIOConfigurationException {
5455
if (stream.getMinOccurs() == null) {
5556
stream.setMinOccurs(0);
@@ -68,6 +69,7 @@ protected void initializeStream(StreamConfig stream) throws BeanIOConfigurationE
6869
* Finalizes a stream configuration after its children have been processed.
6970
* @param stream the stream configuration to finalize
7071
*/
72+
@Override
7173
protected void finalizeStream(StreamConfig stream) throws BeanIOConfigurationException {
7274
finalizeGroup(stream);
7375

@@ -78,6 +80,7 @@ protected void finalizeStream(StreamConfig stream) throws BeanIOConfigurationExc
7880

7981
if (sorted) {
8082
stream.sort(new Comparator<ComponentConfig>() {
83+
@Override
8184
public int compare(ComponentConfig c1, ComponentConfig c2) {
8285
Integer p1 = getPosition(c1);
8386
Integer p2 = getPosition(c2);
@@ -125,6 +128,7 @@ private Integer getPosition(ComponentConfig c) {
125128
* Initializes a group configuration before its children have been processed.
126129
* @param group the group configuration to process
127130
*/
131+
@Override
128132
protected void initializeGroup(GroupConfig group) throws BeanIOConfigurationException {
129133

130134
if (group.getMinOccurs() == null) {
@@ -171,6 +175,7 @@ protected void initializeGroup(GroupConfig group) throws BeanIOConfigurationExce
171175
* Finalizes a group configuration after its children have been processed.
172176
* @param group the group configuration to finalize
173177
*/
178+
@Override
174179
protected void finalizeGroup(GroupConfig group) throws BeanIOConfigurationException {
175180

176181
// order must be set for all group children, or for none of them
@@ -225,6 +230,7 @@ else if (orderSet ^ (child.getOrder() != null)) {
225230
* Initializes a record configuration before its children have been processed.
226231
* @param record the record configuration to process
227232
*/
233+
@Override
228234
protected void initializeRecord(RecordConfig record) throws BeanIOConfigurationException {
229235

230236
// a record is ignored if a 'class' was not set and the property root is null
@@ -262,6 +268,7 @@ protected void initializeRecord(RecordConfig record) throws BeanIOConfigurationE
262268
* Finalizes a record configuration after its children have been processed.
263269
* @param record the record configuration to process
264270
*/
271+
@Override
265272
protected void finalizeRecord(RecordConfig record) throws BeanIOConfigurationException {
266273
finalizeSegment(record);
267274

@@ -274,6 +281,7 @@ protected void finalizeRecord(RecordConfig record) throws BeanIOConfigurationExc
274281
* Initializes a segment configuration before its children have been processed.
275282
* @param segment the segment configuration to process
276283
*/
284+
@Override
277285
protected void initializeSegment(SegmentConfig segment) throws BeanIOConfigurationException {
278286

279287
if (segment.getName() == null) {
@@ -339,6 +347,7 @@ protected void initializeSegment(SegmentConfig segment) throws BeanIOConfigurati
339347
* Finalizes a segment configuration after its children have been processed.
340348
* @param segment the segment configuration to process
341349
*/
350+
@Override
342351
protected void finalizeSegment(SegmentConfig segment) throws BeanIOConfigurationException {
343352
for (PropertyConfig child : segment.getPropertyList()) {
344353
if (child.isIdentifier()) {
@@ -352,6 +361,7 @@ protected void finalizeSegment(SegmentConfig segment) throws BeanIOConfiguration
352361
* Processes a field configuration.
353362
* @param field the field configuration to process
354363
*/
364+
@Override
355365
protected void handleField(FieldConfig field) throws BeanIOConfigurationException {
356366
// ignore fields that belong to ignored records
357367
if (recordIgnored) {
@@ -418,6 +428,7 @@ protected void handleField(FieldConfig field) throws BeanIOConfigurationExceptio
418428
* Processes a constant configuration.
419429
* @param constant the constant configuration to process
420430
*/
431+
@Override
421432
protected void handleConstant(ConstantConfig constant) throws BeanIOConfigurationException {
422433
constant.setBound(true);
423434

src/org/beanio/internal/compiler/accessor/ReflectionAccessorFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class ReflectionAccessorFactory implements PropertyAccessorFactory {
1919
* (non-Javadoc)
2020
* @see org.beanio.internal.compiler.PropertyAccessorFactory#getPropertyAccessor(java.lang.Class, java.beans.PropertyDescriptor, int)
2121
*/
22+
@Override
2223
public PropertyAccessor getPropertyAccessor(
2324
Class<?> parent, PropertyDescriptor descriptor, int carg) {
2425

@@ -31,6 +32,7 @@ public PropertyAccessor getPropertyAccessor(
3132
* (non-Javadoc)
3233
* @see org.beanio.internal.compiler.PropertyAccessorFactory#getPropertyAccessor(java.lang.Class, java.lang.reflect.Field, int)
3334
*/
35+
@Override
3436
public PropertyAccessor getPropertyAccessor(
3537
Class<?> parent, Field field, int carg) {
3638

src/org/beanio/internal/compiler/flat/FlatParserFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ private static class NodeComparator implements Comparator<Component> {
5353
* (non-Javadoc)
5454
* @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
5555
*/
56+
@Override
5657
public int compare(Component o1, Component o2) {
5758
return getPosition(o1).compareTo(getPosition(o2));
5859
}

src/org/beanio/internal/config/GroupConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public char getComponentType() {
4848
* number may appear in any order.
4949
* @return the order of this record
5050
*/
51+
@Override
5152
public Integer getOrder() {
5253
return order;
5354
}
@@ -58,6 +59,7 @@ public Integer getOrder() {
5859
* number may appear in any order.
5960
* @param order the order of this record
6061
*/
62+
@Override
6163
public void setOrder(Integer order) {
6264
this.order = order;
6365
}
@@ -67,6 +69,7 @@ public void setOrder(Integer order) {
6769
* Map key when <tt>collection</tt> is set to <tt>map</tt>.
6870
* @return the key property name
6971
*/
72+
@Override
7073
public String getKey() {
7174
return key;
7275
}

src/org/beanio/internal/config/RecordConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public void setMaxMatchLength(Integer maxMatchLength) {
119119
* number may appear in any order.
120120
* @return the order of this record
121121
*/
122+
@Override
122123
public Integer getOrder() {
123124
return order;
124125
}
@@ -129,6 +130,7 @@ public Integer getOrder() {
129130
* number may appear in any order.
130131
* @param order the order of this record
131132
*/
133+
@Override
132134
public void setOrder(Integer order) {
133135
this.order = order;
134136
}

src/org/beanio/internal/config/SegmentConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public SegmentConfig() { }
5252
* (non-Javadoc)
5353
* @see org.beanio.config.PropertyConfig#type()
5454
*/
55+
@Override
5556
public char getComponentType() {
5657
return SEGMENT;
5758
}
@@ -134,6 +135,7 @@ public void setDefaultExistence(boolean defaultExistence) {
134135
* Map key when <tt>collection</tt> is set to <tt>map</tt>.
135136
* @return the key property name
136137
*/
138+
@Override
137139
public String getKey() {
138140
return key;
139141
}

0 commit comments

Comments
 (0)