Skip to content

Commit fc3ac86

Browse files
committed
applying the commits from Chip Childers licensing cleanup
1 parent 712565c commit fc3ac86

108 files changed

Lines changed: 3705 additions & 3531 deletions

File tree

Some content is hidden

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

deps/XenServerJava/com/xensource/xenapi/APIVersion.java

Lines changed: 71 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -10,79 +10,74 @@
1010
// limitations under the License.
1111
//
1212
// Automatically generated by addcopyright.py at 04/03/2012
13-
* follows:
14-
* Linking this library statically or dynamically with other modules is
15-
* making a combined work based on this library. Thus, the terms and
16-
* permission to link this library with independent modules to produce an
17-
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18-
package com.xensource.xenapi;
19-
20-
public enum APIVersion
21-
{
22-
API_1_1, API_1_2, API_1_3, API_1_4, API_1_5, API_1_6, API_1_7, UNKNOWN;
23-
24-
public static APIVersion latest()
25-
{
26-
return API_1_7;
27-
}
28-
29-
public static APIVersion fromMajorMinor(long major, long minor)
30-
{
31-
if (major == 1 && minor == 7)
32-
{
33-
return API_1_7;
34-
}
35-
else if (major == 1 && minor == 6)
36-
{
37-
return API_1_6;
38-
}
39-
else if (major == 1 && minor == 5)
40-
{
41-
return API_1_5;
42-
}
43-
else if (major == 1 && minor == 4)
44-
{
45-
return API_1_4;
46-
}
47-
else if (major == 1 && minor == 3)
48-
{
49-
return API_1_3;
50-
}
51-
else if (major == 1 && minor == 2)
52-
{
53-
return API_1_2;
54-
}
55-
else if (major == 1 && minor == 1)
56-
{
57-
return API_1_1;
58-
}
59-
else
60-
{
61-
return UNKNOWN;
62-
}
63-
}
64-
65-
@Override
66-
public String toString()
67-
{
68-
switch (this)
69-
{
70-
case API_1_1:
71-
return "1.1";
72-
case API_1_2:
73-
return "1.2";
74-
case API_1_3:
75-
return "1.3";
76-
case API_1_4:
77-
return "1.4";
78-
case API_1_5:
79-
return "1.5";
80-
case API_1_6:
81-
return "1.6";
82-
case API_1_7:
83-
return "1.7";
84-
default:
85-
return "Unknown";
86-
}
87-
}
88-
}
13+
package com.xensource.xenapi;
14+
15+
public enum APIVersion
16+
{
17+
API_1_1, API_1_2, API_1_3, API_1_4, API_1_5, API_1_6, API_1_7, UNKNOWN;
18+
19+
public static APIVersion latest()
20+
{
21+
return API_1_7;
22+
}
23+
24+
public static APIVersion fromMajorMinor(long major, long minor)
25+
{
26+
if (major == 1 && minor == 7)
27+
{
28+
return API_1_7;
29+
}
30+
else if (major == 1 && minor == 6)
31+
{
32+
return API_1_6;
33+
}
34+
else if (major == 1 && minor == 5)
35+
{
36+
return API_1_5;
37+
}
38+
else if (major == 1 && minor == 4)
39+
{
40+
return API_1_4;
41+
}
42+
else if (major == 1 && minor == 3)
43+
{
44+
return API_1_3;
45+
}
46+
else if (major == 1 && minor == 2)
47+
{
48+
return API_1_2;
49+
}
50+
else if (major == 1 && minor == 1)
51+
{
52+
return API_1_1;
53+
}
54+
else
55+
{
56+
return UNKNOWN;
57+
}
58+
}
59+
60+
@Override
61+
public String toString()
62+
{
63+
switch (this)
64+
{
65+
case API_1_1:
66+
return "1.1";
67+
case API_1_2:
68+
return "1.2";
69+
case API_1_3:
70+
return "1.3";
71+
case API_1_4:
72+
return "1.4";
73+
case API_1_5:
74+
return "1.5";
75+
case API_1_6:
76+
return "1.6";
77+
case API_1_7:
78+
return "1.7";
79+
default:
80+
return "Unknown";
81+
}
82+
}
83+
}

deps/XenServerJava/com/xensource/xenapi/Auth.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
// limitations under the License.
1111
//
1212
// Automatically generated by addcopyright.py at 04/03/2012
13-
* follows:
14-
* Linking this library statically or dynamically with other modules is
15-
* making a combined work based on this library. Thus, the terms and
16-
* permission to link this library with independent modules to produce an
17-
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1813
package com.xensource.xenapi;
1914

2015
import com.xensource.xenapi.Types.BadServerResponse;

deps/XenServerJava/com/xensource/xenapi/Blob.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
// limitations under the License.
1111
//
1212
// Automatically generated by addcopyright.py at 04/03/2012
13-
* follows:
14-
* Linking this library statically or dynamically with other modules is
15-
* making a combined work based on this library. Thus, the terms and
16-
* permission to link this library with independent modules to produce an
17-
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1813
package com.xensource.xenapi;
1914

2015
import com.xensource.xenapi.Types.BadServerResponse;

deps/XenServerJava/com/xensource/xenapi/Bond.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
// limitations under the License.
1111
//
1212
// Automatically generated by addcopyright.py at 04/03/2012
13-
* follows:
14-
* Linking this library statically or dynamically with other modules is
15-
* making a combined work based on this library. Thus, the terms and
16-
* permission to link this library with independent modules to produce an
17-
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1813
package com.xensource.xenapi;
1914

2015
import com.xensource.xenapi.Types.BadServerResponse;

deps/XenServerJava/com/xensource/xenapi/Connection.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
// limitations under the License.
1111
//
1212
// Automatically generated by addcopyright.py at 04/03/2012
13-
* follows:
14-
* Linking this library statically or dynamically with other modules is
15-
* making a combined work based on this library. Thus, the terms and
16-
* permission to link this library with independent modules to produce an
17-
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1813
package com.xensource.xenapi;
1914

2015
import java.net.URL;

deps/XenServerJava/com/xensource/xenapi/Console.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
// limitations under the License.
1111
//
1212
// Automatically generated by addcopyright.py at 04/03/2012
13-
* follows:
14-
* Linking this library statically or dynamically with other modules is
15-
* making a combined work based on this library. Thus, the terms and
16-
* permission to link this library with independent modules to produce an
17-
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1813
package com.xensource.xenapi;
1914

2015
import com.xensource.xenapi.Types.BadServerResponse;

deps/XenServerJava/com/xensource/xenapi/Crashdump.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
// limitations under the License.
1111
//
1212
// Automatically generated by addcopyright.py at 04/03/2012
13-
* follows:
14-
* Linking this library statically or dynamically with other modules is
15-
* making a combined work based on this library. Thus, the terms and
16-
* permission to link this library with independent modules to produce an
17-
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1813
package com.xensource.xenapi;
1914

2015
import com.xensource.xenapi.Types.BadServerResponse;

deps/XenServerJava/com/xensource/xenapi/DataSource.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
// limitations under the License.
1111
//
1212
// Automatically generated by addcopyright.py at 04/03/2012
13-
* follows:
14-
* Linking this library statically or dynamically with other modules is
15-
* making a combined work based on this library. Thus, the terms and
16-
* permission to link this library with independent modules to produce an
17-
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1813
package com.xensource.xenapi;
1914

2015
import com.xensource.xenapi.Types.BadServerResponse;

deps/XenServerJava/com/xensource/xenapi/Event.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
// limitations under the License.
1111
//
1212
// Automatically generated by addcopyright.py at 04/03/2012
13-
* follows:
14-
* Linking this library statically or dynamically with other modules is
15-
* making a combined work based on this library. Thus, the terms and
16-
* permission to link this library with independent modules to produce an
17-
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1813
package com.xensource.xenapi;
1914

2015
import java.io.PrintWriter;

deps/XenServerJava/com/xensource/xenapi/Host.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
// limitations under the License.
1111
//
1212
// Automatically generated by addcopyright.py at 04/03/2012
13-
* follows:
14-
* Linking this library statically or dynamically with other modules is
15-
* making a combined work based on this library. Thus, the terms and
16-
* permission to link this library with independent modules to produce an
17-
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1813
package com.xensource.xenapi;
1914

2015
import com.xensource.xenapi.Types.BadServerResponse;

0 commit comments

Comments
 (0)