Skip to content

Commit 12c393e

Browse files
committed
Switched 'order' attributes across namespaces to 'xsd:token'
Issue: SPR-10886 Issue: SPR-7342
1 parent 3969467 commit 12c393e

File tree

7 files changed

+144
-147
lines changed

7 files changed

+144
-147
lines changed

spring-aop/src/main/resources/org/springframework/aop/config/spring-aop-4.0.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
]]></xsd:documentation>
198198
</xsd:annotation>
199199
</xsd:attribute>
200-
<xsd:attribute name="order" type="xsd:int">
200+
<xsd:attribute name="order" type="xsd:token">
201201
<xsd:annotation>
202202
<xsd:documentation source="java:org.springframework.core.Ordered"><![CDATA[
203203
Controls the ordering of the execution of this aspect when multiple
@@ -386,7 +386,7 @@
386386
]]></xsd:documentation>
387387
</xsd:annotation>
388388
</xsd:attribute>
389-
<xsd:attribute name="order" type="xsd:int">
389+
<xsd:attribute name="order" type="xsd:token">
390390
<xsd:annotation>
391391
<xsd:documentation source="java:org.springframework.core.Ordered"><![CDATA[
392392
Controls the ordering of the execution of this advice when multiple

spring-context/src/main/resources/org/springframework/cache/config/spring-cache-4.0.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
]]></xsd:documentation>
9797
</xsd:annotation>
9898
</xsd:attribute>
99-
<xsd:attribute name="order" type="xsd:int">
99+
<xsd:attribute name="order" type="xsd:token">
100100
<xsd:annotation>
101101
<xsd:documentation source="java:org.springframework.core.Ordered"><![CDATA[
102102
Controls the ordering of the execution of the cache advisor

spring-context/src/main/resources/org/springframework/context/config/spring-context-4.0.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
]]></xsd:documentation>
4848
</xsd:annotation>
4949
</xsd:attribute>
50-
<xsd:attribute name="order" type="xsd:integer">
50+
<xsd:attribute name="order" type="xsd:token">
5151
<xsd:annotation>
5252
<xsd:documentation><![CDATA[
5353
Specifies the order for this placeholder configurer. If more than one is present in a context

spring-tx/src/main/resources/org/springframework/transaction/config/spring-tx-4.0.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
]]></xsd:documentation>
132132
</xsd:annotation>
133133
</xsd:attribute>
134-
<xsd:attribute name="order" type="xsd:int">
134+
<xsd:attribute name="order" type="xsd:token">
135135
<xsd:annotation>
136136
<xsd:documentation source="java:org.springframework.core.Ordered"><![CDATA[
137137
Controls the ordering of the execution of the transaction advisor
@@ -209,7 +209,7 @@
209209
</xsd:restriction>
210210
</xsd:simpleType>
211211
</xsd:attribute>
212-
<xsd:attribute name="timeout" type="xsd:integer" default="-1">
212+
<xsd:attribute name="timeout" type="xsd:int" default="-1">
213213
<xsd:annotation>
214214
<xsd:documentation><![CDATA[
215215
The transaction timeout value (in seconds).

spring-tx/src/test/java/org/springframework/transaction/annotation/annotationTransactionNamespaceHandlerTests.xml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<beans xmlns="http://www.springframework.org/schema/beans"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xmlns:aop="http://www.springframework.org/schema/aop"
5-
xmlns:context="http://www.springframework.org/schema/context"
4+
xmlns:context="http://www.springframework.org/schema/context"
65
xmlns:tx="http://www.springframework.org/schema/tx"
7-
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
8-
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
9-
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
10-
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
6+
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
7+
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
8+
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd">
119

12-
<tx:annotation-driven/>
10+
<tx:annotation-driven order="#{ T(java.lang.Integer).MAX_VALUE }"/>
1311

1412
<bean id="transactionManager" class="org.springframework.tests.transaction.CallCountingTransactionManager"/>
1513

spring-webmvc/src/main/resources/org/springframework/web/servlet/config/spring-mvc-4.0.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@
354354
]]></xsd:documentation>
355355
</xsd:annotation>
356356
</xsd:attribute>
357-
<xsd:attribute name="order" type="xsd:int">
357+
<xsd:attribute name="order" type="xsd:token">
358358
<xsd:annotation>
359359
<xsd:documentation>
360360
<![CDATA[

0 commit comments

Comments
 (0)