11package at .aau .jacoco .model ;
22
3- import at .aau .util .ListUtils ;
3+ import java .util .List ;
4+ import java .util .Objects ;
5+
46import jakarta .xml .bind .Unmarshaller ;
57import jakarta .xml .bind .annotation .XmlAccessType ;
68import jakarta .xml .bind .annotation .XmlAccessorType ;
911import jakarta .xml .bind .annotation .XmlRootElement ;
1012import jakarta .xml .bind .annotation .adapters .NormalizedStringAdapter ;
1113import jakarta .xml .bind .annotation .adapters .XmlJavaTypeAdapter ;
12- import java . util . List ;
13- import java . util .Objects ;
14+
15+ import at . aau . util .ListUtils ;
1416
1517@ XmlAccessorType (XmlAccessType .FIELD )
1618@ XmlRootElement (name = "class" )
@@ -57,8 +59,12 @@ public int hashCode() {
5759
5860 @ Override
5961 public final boolean equals (Object o ) {
60- if (this == o ) return true ;
61- if (!(o instanceof Class )) return false ;
62+ if (this == o ) {
63+ return true ;
64+ }
65+ if (!(o instanceof Class )) {
66+ return false ;
67+ }
6268
6369 Class aClass = (Class ) o ;
6470 return Objects .equals (name , aClass .name )
@@ -73,21 +79,18 @@ public String toString() {
7379 }
7480
7581 /**
76- * Callback method invoked by JAXB (Java Architecture for XML Binding) after unmarshalling an XML
77- * content tree into a Java object. This method is called after all the properties are
78- * unmarshalled, and it allows custom initialization or processing after the unmarshalling
79- * completes.
82+ * Callback method invoked by JAXB (Java Architecture for XML Binding) after unmarshalling an XML content tree into a
83+ * Java object. This method is called after all the properties are unmarshalled, and it allows custom initialization
84+ * or processing after the unmarshalling completes.
8085 *
8186 * <p>The method iterates over the list of {@link Method}s and sets their parent class reference
8287 * to this class instance.
8388 *
84- * @param unmarshaller the {@link Unmarshaller} that generated this callback; provides context for
85- * the unmarshalling process
86- * @param parent the parent object in the object graph; can be {@code null} if this object is the
87- * root
89+ * @param unmarshaller the {@link Unmarshaller} that generated this callback; provides context for the unmarshalling
90+ * process
91+ * @param parent the parent object in the object graph; can be {@code null} if this object is the root
8892 * @see Unmarshaller
89- * @see <a
90- * href="https://docs.oracle.com/javase/8/docs/api/javax/xml/bind/Unmarshaller.html#unmarshalEventCallback">
93+ * @see <a href="https://docs.oracle.com/javase/8/docs/api/javax/xml/bind/Unmarshaller.html#unmarshalEventCallback">
9194 * Unmarshaller unmarshalEventCallback Documentation</a>
9295 */
9396 void afterUnmarshal (Unmarshaller unmarshaller , Object parent ) {
@@ -97,4 +100,5 @@ void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
97100 }
98101 }
99102 }
103+
100104}
0 commit comments