Elffuss BraidHub

kikocis/java-driver public

Add Clirr exceptions.
Changeset392aefac701ddd7e1cc9ffe2feb6852efb344b041ab6710a5837989b19bcfa73
Authorolim7t <omichallat+github@gmail.com> · 2015-06-20 19:26 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2015-06-22 10:24 +02:00
Parents65d9ae80ca1e

Browse the files at this changeset

3 files changed

modified clirr-ignores.xml +119 −1
@@ -6,7 +6,7 @@
66 To update this file:
77 * run `mvn clirr:clirr` at the root directory
88 * check the reports in `<module>/target/site/clirr-report.html`
9- * add new differences if needed. Difference types are explained at http://mojo.codehaus.org/clirr-maven-plugin/examples/ignored-differences.html
9+ * add new differences if needed. Difference types are explained at http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html
1010 -->
1111 <differences>
1212 <difference>
@@ -61,4 +61,122 @@
6161 <justification>A backward compatible version has been added to the parent class RegularStatement</justification>
6262 </difference>
6363
64+ <difference>
65+ <differenceType>7013</differenceType> <!-- abstract method added to class -->
66+ <className>com/datastax/driver/core/DataType</className>
67+ <method>boolean isFrozen()</method>
68+ <justification>Required for frozen type support. Clients do not create their own DataType subclasses</justification>
69+ </difference>
70+
71+ <difference>
72+ <differenceType>7012</differenceType> <!-- method added to interface -->
73+ <className>com/datastax/driver/core/GettableByIndexData</className>
74+ <method>java.util.List getList(int, com.google.common.reflect.TypeToken)</method>
75+ <justification>Breaking change, required for nested collection support</justification>
76+ </difference>
77+
78+ <difference>
79+ <differenceType>7012</differenceType> <!-- method added to interface -->
80+ <className>com/datastax/driver/core/GettableByIndexData</className>
81+ <method>java.util.Map getMap(int, com.google.common.reflect.TypeToken, com.google.common.reflect.TypeToken)</method>
82+ <justification>Breaking change, required for nested collection support</justification>
83+ </difference>
84+
85+ <difference>
86+ <differenceType>7012</differenceType> <!-- method added to interface -->
87+ <className>com/datastax/driver/core/GettableByIndexData</className>
88+ <method>java.util.Set getSet(int, com.google.common.reflect.TypeToken)</method>
89+ <justification>Breaking change, required for nested collection support</justification>
90+ </difference>
91+
92+ <difference>
93+ <differenceType>7012</differenceType> <!-- method added to interface -->
94+ <className>com/datastax/driver/core/GettableByNameData</className>
95+ <method>java.util.List getList(java.lang.String, com.google.common.reflect.TypeToken)</method>
96+ <justification>Breaking change, required for nested collection support</justification>
97+ </difference>
98+
99+ <difference>
100+ <differenceType>7012</differenceType> <!-- method added to interface -->
101+ <className>com/datastax/driver/core/GettableByNameData</className>
102+ <method>java.util.Map getMap(java.lang.String, com.google.common.reflect.TypeToken, com.google.common.reflect.TypeToken)</method>
103+ <justification>Breaking change, required for nested collection support</justification>
104+ </difference>
105+
106+ <difference>
107+ <differenceType>7012</differenceType> <!-- method added to interface -->
108+ <className>com/datastax/driver/core/GettableByNameData</className>
109+ <method>java.util.Set getSet(java.lang.String, com.google.common.reflect.TypeToken)</method>
110+ <justification>Breaking change, required for nested collection support</justification>
111+ </difference>
112+
113+ <difference>
114+ <differenceType>7012</differenceType> <!-- method added to interface -->
115+ <className>com/datastax/driver/core/GettableByIndexData</className>
116+ <method>java.lang.Object getObject(int)</method>
117+ <justification>Breaking change, requires update of potential client implementations</justification>
118+ </difference>
119+
120+ <difference>
121+ <differenceType>7012</differenceType> <!-- method added to interface -->
122+ <className>com/datastax/driver/core/GettableByNameData</className>
123+ <method>java.lang.Object getObject(java.lang.String)</method>
124+ <justification>Breaking change, requires update of potential client implementations</justification>
125+ </difference>
126+
127+ <difference>
128+ <differenceType>7004</differenceType> <!-- method argument count changed -->
129+ <className>com/datastax/driver/core/LatencyTracker</className>
130+ <method>void update(com.datastax.driver.core.Host, long)</method>
131+ <justification>Breaking change, requires update of client implementations</justification>
132+ </difference>
133+
134+ <difference>
135+ <differenceType>3005</differenceType> <!-- added abstract modifier to class -->
136+ <className>com/datastax/driver/core/ProtocolOptions$Compression</className>
137+ <justification>False positive because an abstract method was added. Since this is an enum there is no impact for clients</justification>
138+ </difference>
139+
140+ <difference>
141+ <differenceType>7012</differenceType> <!-- method added to interface -->
142+ <className>com/datastax/driver/core/Row</className>
143+ <method>com.datastax.driver.core.Token getPartitionKeyToken()</method>
144+ <justification>Breaking change required for token support. Requires update of potential client implementations</justification>
145+ </difference>
146+
147+ <difference>
148+ <differenceType>7012</differenceType> <!-- method added to interface -->
149+ <className>com/datastax/driver/core/Row</className>
150+ <method>com.datastax.driver.core.Token getToken(int)</method>
151+ <justification>Breaking change required for token support. Requires update of potential client implementations</justification>
152+ </difference>
153+
154+ <difference>
155+ <differenceType>7012</differenceType> <!-- method added to interface -->
156+ <className>com/datastax/driver/core/Row</className>
157+ <method>com.datastax.driver.core.Token getToken(java.lang.String)</method>
158+ <justification>Breaking change required for token support. Requires update of potential client implementations</justification>
159+ </difference>
160+
161+ <difference>
162+ <differenceType>7012</differenceType> <!-- method added to interface -->
163+ <className>com/datastax/driver/core/Session$State</className>
164+ <method>int getTrashedConnections(com.datastax.driver.core.Host)</method>
165+ <justification>It's very unlikely that client have their own implementation of this interface</justification>
166+ </difference>
167+
168+ <difference>
169+ <differenceType>1001</differenceType> <!-- decreased visibility of class -->
170+ <className>com/datastax/driver/core/Token$Factory</className>
171+ <justification>False positive: Token was package-private before, so Token$Factory was never visible</justification>
172+ </difference>
173+
174+ <difference>
175+ <differenceType>7006</differenceType> <!-- return type changed -->
176+ <className>com/datastax/driver/core/exceptions/DriverInternalError</className>
177+ <method>com.datastax.driver.core.exceptions.DriverException copy()</method>
178+ <to>com.datastax.driver.core.exceptions.DriverInternalError</to>
179+ <justification>Covariant return, would only break if a client extended the class, which is unlikely</justification>
180+ </difference>
181+
64182 </differences>
modified driver-core/src/main/java/com/datastax/driver/core/exceptions/DriverInternalError.java +1 −1
@@ -38,7 +38,7 @@
3838 }
3939
4040 @Override
41- public DriverInternalError copy() {
41+ public DriverException copy() {
4242 return new DriverInternalError(getMessage(), this);
4343 }
4444 }
modified pom.xml +1 −0
@@ -171,6 +171,7 @@
171171 <exclude>com/datastax/driver/core/Message$*</exclude>
172172 <exclude>com/datastax/driver/core/Requests$*</exclude>
173173 <exclude>com/datastax/driver/core/Responses$*</exclude>
174+ <exclude>com/datastax/driver/core/Connection$*</exclude>
174175 </excludes>
175176 </configuration>
176177 </plugin>