Skip to content

Commit b74819f

Browse files
hansonrhansonr
authored andcommitted
Utilizing package-info.java for package-level marshalling information
1 parent 4ea97a1 commit b74819f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sources/net.sf.j2s.java.core/src/test/jaxb/ROOT.java renamed to sources/net.sf.j2s.java.core/src/test/jaxb/ROOT_super.java

File renamed without changes.

sources/net.sf.j2s.java.core/src/test/jaxb/Root_FIELD.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
// adapted source: http://blog.bdoughan.com/2011/06/using-jaxbs-xmlaccessortype-to.html
1818

19-
@XmlRootElement(name = "Root", namespace = "www.jalview.org")
19+
@XmlRootElement(name = "Root")
2020
@XmlAccessorType(XmlAccessType.FIELD)
2121
//@XmlType(propOrder = {
2222
// "D",
@@ -27,10 +27,9 @@
2727
// "c",
2828
// "publ"
2929
// })
30-
public class Root_FIELD extends ROOT {
30+
public class Root_FIELD extends ROOT_super {
3131

3232
public static boolean isCopy = false;
33-
3433
static final String x = "Date";
3534
// TODO: DOES NOT WORK @XmlElement(name=x)
3635

sources/net.sf.j2s.java.core/src/test/jaxb/package-info.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@javax.xml.bind.annotation.XmlSchema(namespace = "www.vamsas.ac.uk/jalview/version2", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
12
@XmlAccessorType(XmlAccessType.PROPERTY)
23
package test.jaxb;
34

0 commit comments

Comments
 (0)