Skip to content

Commit 31fd9dc

Browse files
committed
fix whitespaces (tabs to spaces)
Signed-off-by: Lukas Jungmann <[email protected]>
1 parent d2a6134 commit 31fd9dc

15 files changed

+45
-54
lines changed

api/src/main/java/jakarta/xml/bind/Binder.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ protected Binder() {}
146146
* If any of the input parameters are null
147147
* @since 1.6, JAXB 2.0
148148
*/
149-
public abstract <T> JAXBElement<T>
150-
unmarshal( XmlNode xmlNode, Class<T> declaredType )
151-
throws JAXBException;
149+
public abstract <T> JAXBElement<T> unmarshal( XmlNode xmlNode, Class<T> declaredType ) throws JAXBException;
152150

153151
/**
154152
* Marshal a Jakarta XML Binding object tree to a new XML document.

api/src/main/java/jakarta/xml/bind/DatatypeConverter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public static byte parseByte( String lexicalXSDByte ) {
289289
* if namespace prefix of {@code lexicalXSDQname} is not bound to a URI in NamespaceContext {@code nsc}.
290290
*/
291291
public static javax.xml.namespace.QName parseQName( String lexicalXSDQName,
292-
NamespaceContext nsc) {
292+
NamespaceContext nsc) {
293293
if (theConverter == null) initConverter();
294294
return theConverter.parseQName( lexicalXSDQName, nsc );
295295
}
@@ -364,7 +364,7 @@ public static long parseUnsignedInt( String lexicalXSDUnsignedInt ) {
364364
* An int value represented by the string argument.
365365
* @throws NumberFormatException if string parameter can not be parsed into an {@code int} value.
366366
*/
367-
public static int parseUnsignedShort( String lexicalXSDUnsignedShort ) {
367+
public static int parseUnsignedShort( String lexicalXSDUnsignedShort ) {
368368
if (theConverter == null) initConverter();
369369
return theConverter.parseUnsignedShort( lexicalXSDUnsignedShort );
370370
}
@@ -423,7 +423,7 @@ public static String parseAnySimpleType( String lexicalXSDAnySimpleType ) {
423423
*/
424424
// also indicate the print methods produce a lexical
425425
// representation for given Java datatypes.
426-
426+
427427
public static String printString( String val ) {
428428
if (theConverter == null) initConverter();
429429
return theConverter.printString( val );

api/src/main/java/jakarta/xml/bind/JAXBElement.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ private GlobalScope() {}
9191
* @see #isTypeSubstituted()
9292
*/
9393
public JAXBElement(QName name,
94-
Class<T> declaredType,
95-
Class<?> scope,
96-
T value) {
94+
Class<T> declaredType,
95+
Class<?> scope,
96+
T value) {
9797
if(declaredType==null || name==null)
9898
throw new IllegalArgumentException();
9999
this.declaredType = declaredType;

api/src/main/java/jakarta/xml/bind/JAXBIntrospector.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ protected JAXBIntrospector() {}
7272
* @return The element value of the <code>jaxbElement</code>.
7373
*/
7474
public static Object getValue(Object jaxbElement) {
75-
if (jaxbElement instanceof JAXBElement) {
76-
return ((JAXBElement<?>)jaxbElement).getValue();
77-
} else {
78-
// assume that class of this instance is
79-
// annotated with @XmlRootElement.
80-
return jaxbElement;
81-
}
75+
if (jaxbElement instanceof JAXBElement) {
76+
return ((JAXBElement<?>)jaxbElement).getValue();
77+
} else {
78+
// assume that class of this instance is
79+
// annotated with @XmlRootElement.
80+
return jaxbElement;
81+
}
8282
}
8383
}

api/src/main/java/jakarta/xml/bind/Marshaller.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@
177177
* <dl>
178178
* <dt>{@code jaxb.encoding} - value must be a java.lang.String</dt>
179179
* <dd>The output encoding to use when marshalling the XML data. The
180-
* Marshaller will use "UTF-8" by default if this property is not
181-
* specified.</dd>
180+
* Marshaller will use "UTF-8" by default if this property is not
181+
* specified.</dd>
182182
* <dt>{@code jaxb.formatted.output} - value must be a java.lang.Boolean</dt>
183183
* <dd>This property controls whether or not the Marshaller will format
184-
* the resulting XML data with line breaks and indentation. A
184+
* the resulting XML data with line breaks and indentation. A
185185
* true value for this property indicates human readable indented
186186
* xml data, while a false value indicates unformatted xml data.
187187
* The Marshaller will default to false (unformatted) if this

api/src/main/java/jakarta/xml/bind/PropertyException.java

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 2024 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -32,7 +32,7 @@ public class PropertyException extends JAXBException {
3232
* @param message a description of the exception
3333
*/
3434
public PropertyException(String message) {
35-
super(message);
35+
super(message);
3636
}
3737

3838
/**
@@ -43,7 +43,7 @@ public PropertyException(String message) {
4343
* @param errorCode a string specifying the vendor specific error code
4444
*/
4545
public PropertyException(String message, String errorCode) {
46-
super(message, errorCode);
46+
super(message, errorCode);
4747
}
4848

4949
/**
@@ -53,7 +53,7 @@ public PropertyException(String message, String errorCode) {
5353
* @param exception the linked exception
5454
*/
5555
public PropertyException(Throwable exception) {
56-
super(exception);
56+
super(exception);
5757
}
5858

5959
/**
@@ -64,7 +64,7 @@ public PropertyException(Throwable exception) {
6464
* @param exception the linked exception
6565
*/
6666
public PropertyException(String message, Throwable exception) {
67-
super(message, exception);
67+
super(message, exception);
6868
}
6969

7070
/**
@@ -75,11 +75,10 @@ public PropertyException(String message, Throwable exception) {
7575
* @param errorCode a string specifying the vendor specific error code
7676
* @param exception the linked exception
7777
*/
78-
public PropertyException(
79-
String message,
80-
String errorCode,
81-
Throwable exception) {
82-
super(message, errorCode, exception);
78+
public PropertyException(String message,
79+
String errorCode,
80+
Throwable exception) {
81+
super(message, errorCode, exception);
8382
}
8483

8584
/**
@@ -90,7 +89,7 @@ public PropertyException(
9089
* @param value the value of the property related to this exception
9190
*/
9291
public PropertyException(String name, Object value) {
93-
super( Messages.format( Messages.NAME_VALUE,
92+
super( Messages.format( Messages.NAME_VALUE,
9493
name,
9594
value.toString() ) );
9695
}

api/src/main/java/jakarta/xml/bind/annotation/XmlAccessorOrder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2024 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -51,7 +51,7 @@
5151
* <p>This annotation can be used with the following annotations:
5252
* {@link XmlType}, {@link XmlRootElement}, {@link XmlAccessorType},
5353
* {@link XmlSchema}, {@link XmlSchemaType}, {@link XmlSchemaTypes},
54-
* , {@link XmlJavaTypeAdapter}. It can also be used with the
54+
* {@link XmlJavaTypeAdapter}. It can also be used with the
5555
* following annotations at the package level: {@link XmlJavaTypeAdapter}.
5656
*
5757
* @author Sekhar Vajjhala, Sun Microsystems, Inc.
@@ -61,5 +61,5 @@
6161

6262
@Inherited @Retention(RUNTIME) @Target({PACKAGE, TYPE})
6363
public @interface XmlAccessorOrder {
64-
XmlAccessOrder value() default XmlAccessOrder.UNDEFINED;
64+
XmlAccessOrder value() default XmlAccessOrder.UNDEFINED;
6565
}

api/src/main/java/jakarta/xml/bind/annotation/XmlEnum.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
*
5050
* @since 1.6, JAXB 2.0
5151
*/
52-
5352
@Retention(RUNTIME) @Target({TYPE})
5453
public @interface XmlEnum {
5554
/**

api/src/main/java/jakarta/xml/bind/annotation/XmlMixed.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,24 +60,24 @@
6060
* import java.math.BigInteger;
6161
* public class ObjectFactory {
6262
* // element instance factories
63-
* JAXBElement<LetterBody> createLetterBody(LetterBody value);
64-
* JAXBElement<String> createLetterBodyName(String value);
65-
* JAXBElement<BigInteger> createLetterBodyQuantity(BigInteger value);
66-
* JAXBElement<String> createLetterBodyProductName(String value);
63+
* JAXBElement<LetterBody> createLetterBody(LetterBody value);
64+
* JAXBElement<String> createLetterBodyName(String value);
65+
* JAXBElement<BigInteger> createLetterBodyQuantity(BigInteger value);
66+
* JAXBElement<String> createLetterBodyProductName(String value);
6767
* // type instance factory
68-
* LetterBody createLetterBody();
68+
* LetterBody createLetterBody();
6969
* }
7070
* }
7171
* {@snippet :
7272
* public class LetterBody {
73-
* // Mixed content can contain instances of Element classes
74-
* // Name, Quantity and ProductName. Text data is represented as
73+
* // Mixed content can contain instances of Element classes
74+
* // Name, Quantity and ProductName. Text data is represented as
7575
* // java.util.String for text.
7676
* @XmlMixed
7777
* @XmlElementRef(name="productName", type=JAXBElement.class)
7878
* @XmlElementRef(name="quantity", type=JAXBElement.class)
7979
* @XmlElementRef(name="name", type=JAXBElement.class)
80-
* List getContent(){...}
80+
* List getContent() {...}
8181
* }
8282
* }
8383
* The following is an XML instance document with mixed content
@@ -100,8 +100,7 @@
100100
* gcl.add("Your order of "); // add text information item as a String
101101
*
102102
* // add children element information items
103-
* gcl.add(ObjectFactory.
104-
* createLetterBodyQuantity(new BigInteger("1")));
103+
* gcl.add(ObjectFactory.createLetterBodyQuantity(new BigInteger("1")));
105104
* gcl.add(ObjectFactory.createLetterBodyProductName("Baby Monitor"));
106105
* gcl.add("shipped from our warehouse"); // add text information item
107106
* }

api/src/main/java/jakarta/xml/bind/annotation/XmlNs.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
* @author Sekhar Vajjhala, Sun Microsystems, Inc.
3030
* @since 1.6, JAXB 2.0
3131
*/
32-
3332
@Retention(RUNTIME) @Target({})
3433
public @interface XmlNs {
3534
/**

api/src/main/java/jakarta/xml/bind/annotation/XmlSchemaType.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
*
7171
* @since 1.6, JAXB 2.0
7272
*/
73-
7473
@Retention(RUNTIME) @Target({FIELD,METHOD,PACKAGE})
7574
public @interface XmlSchemaType {
7675
String name();

api/src/main/java/jakarta/xml/bind/annotation/XmlType.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@
337337
* }
338338
*
339339
* public class USAddressFactory {
340-
* public static USAddress getUSAddress(){
340+
* public static USAddress getUSAddress() {
341341
* return new USAddress("Mark Baker", "23 Elm St",
342342
* "Dayton", "OH", 90952);
343343
* }
@@ -359,7 +359,7 @@
359359
*
360360
* private USAddress() {}
361361
*
362-
* public static USAddress getNewInstance(){
362+
* public static USAddress getNewInstance() {
363363
* return new USAddress();
364364
* }
365365
* }
@@ -372,7 +372,6 @@
372372
* @see XmlSchema
373373
* @since 1.6, JAXB 2.0
374374
*/
375-
376375
@Retention(RUNTIME) @Target({TYPE})
377376
public @interface XmlType {
378377
/**

api/src/main/java/jakarta/xml/bind/annotation/adapters/XmlJavaTypeAdapter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 2024 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -74,7 +74,6 @@
7474
* @since 1.6, JAXB 2.0
7575
* @see XmlAdapter
7676
*/
77-
7877
@Retention(RUNTIME) @Target({PACKAGE,FIELD,METHOD,TYPE,PARAMETER})
7978
public @interface XmlJavaTypeAdapter {
8079
/**

api/src/main/java/jakarta/xml/bind/util/JAXBResult.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* setLexicalHandler, and setSystemId methods.
5454
*
5555
* @author
56-
* Kohsuke Kawaguchi ([email protected])
56+
* Kohsuke Kawaguchi ([email protected])
5757
* @since 1.6
5858
*/
5959
public class JAXBResult extends SAXResult {
@@ -113,7 +113,7 @@ public JAXBResult( Unmarshaller _unmarshaller ) throws JAXBException {
113113
* Always return a non-null object.
114114
*
115115
* @exception IllegalStateException
116-
* if this method is called before an object is unmarshalled.
116+
* if this method is called before an object is unmarshalled.
117117
*
118118
* @exception JAXBException
119119
* if there is any unmarshalling error.

api/src/main/java/jakarta/xml/bind/util/JAXBSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
* returned by the getXMLReader.
7070
*
7171
* @author
72-
* Kohsuke Kawaguchi ([email protected])
72+
* Kohsuke Kawaguchi ([email protected])
7373
* @since 1.6
7474
*/
7575
public class JAXBSource extends SAXSource {

0 commit comments

Comments
 (0)