kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | f7b60ca29eb5a76f27d6707cdb9b38096f417559d384b0429993f3fa493391d4 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-06-26 19:55 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-06-26 19:58 +02:00 |
| Parents | c06dc4e78c85 |
3 files changed
modified clirr-ignores.xml +7 −163
| @@ -9,174 +9,18 @@ | ||
| 9 | 9 | * add new differences if needed. Difference types are explained at http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html |
| 10 | 10 | --> |
| 11 | 11 | <differences> |
| 12 | - <difference> | |
| 13 | - <differenceType>7006</differenceType> <!-- return type changed --> | |
| 14 | - <className>com/datastax/driver/core/BatchStatement</className> | |
| 15 | - <method>com.datastax.driver.core.Statement setSerialConsistencyLevel(com.datastax.driver.core.ConsistencyLevel)</method> | |
| 16 | - <to>com.datastax.driver.core.BatchStatement</to> | |
| 17 | - <justification>A covariant return makes the API more fluent. It's unlikely that any client has extended this class</justification> | |
| 18 | - </difference> | |
| 19 | - | |
| 20 | - <difference> | |
| 21 | - <differenceType>6002</differenceType> <!-- no longer a compile-time constant --> | |
| 22 | - <className>com/datastax/driver/core/ProtocolOptions</className> | |
| 23 | - <field>NEWEST_SUPPORTED_PROTOCOL_VERSION</field> | |
| 24 | - <justification>It calls an enum's method that is known to have a constant result</justification> | |
| 25 | - </difference> | |
| 26 | - | |
| 27 | - <difference> | |
| 28 | - <differenceType>7004</differenceType> <!-- argument count changed --> | |
| 29 | - <className>com/datastax/driver/core/exceptions/UnsupportedFeatureException</className> | |
| 30 | - <method>UnsupportedFeatureException(java.lang.String)</method> | |
| 31 | - <justification>A client has no reason to call this constructor</justification> | |
| 32 | - </difference> | |
| 33 | - | |
| 34 | - <difference> | |
| 35 | - <differenceType>7012</differenceType> <!-- method added to interface --> | |
| 36 | - <className>com/datastax/driver/core/ResultSet</className> | |
| 37 | - <method>boolean wasApplied()</method> | |
| 38 | - <justification>This interface is not meant to be extended by clients</justification> | |
| 39 | - </difference> | |
| 40 | - | |
| 41 | - <difference> | |
| 42 | - <differenceType>7013</differenceType> <!-- abstract method added --> | |
| 43 | - <className>com/datastax/driver/core/RegularStatement</className> | |
| 44 | - <method>java.nio.ByteBuffer[] getValues(com.datastax.driver.core.ProtocolVersion)</method> | |
| 45 | - <justification>Indeed a breaking change, but extending this class from a client should be rarely needed</justification> | |
| 46 | - </difference> | |
| 47 | - | |
| 48 | - <difference> | |
| 49 | - <differenceType>7005</differenceType> <!-- argument type changed --> | |
| 50 | - <className>com/datastax/driver/core/SimpleStatement</className> | |
| 51 | - <method>java.nio.ByteBuffer[] getValues(int)</method> | |
| 52 | - <to>java.nio.ByteBuffer[] getValues(com.datastax.driver.core.ProtocolVersion)</to> | |
| 53 | - <justification>A backward compatible version has been added to the parent class RegularStatement</justification> | |
| 54 | - </difference> | |
| 55 | - | |
| 56 | - <difference> | |
| 57 | - <differenceType>7005</differenceType> <!-- argument type changed --> | |
| 58 | - <className>com/datastax/driver/core/querybuilder/*</className> | |
| 59 | - <method>java.nio.ByteBuffer[] getValues(int)</method> | |
| 60 | - <to>java.nio.ByteBuffer[] getValues(com.datastax.driver.core.ProtocolVersion)</to> | |
| 61 | - <justification>A backward compatible version has been added to the parent class RegularStatement</justification> | |
| 62 | - </difference> | |
| 63 | - | |
| 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 | 12 | |
| 168 | 13 | <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> | |
| 14 | + <differenceType>6006</differenceType> <!-- field now final --> | |
| 15 | + <className>com/datastax/driver/core/ProtocolVersion</className> | |
| 16 | + <field>NEWEST_SUPPORTED</field> | |
| 17 | + <justification>This was an oversight, this field was never intended to be non final</justification> | |
| 172 | 18 | </difference> |
| 173 | 19 | |
| 174 | 20 | <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> | |
| 21 | + <differenceType>8001</differenceType> <!-- class removed --> | |
| 22 | + <className>com/datastax/driver/core/schemabuilder/ColumnType$NativeColumnType</className> | |
| 23 | + <justification>This class was accidentally exposed, it was meant to be package-private</justification> | |
| 180 | 24 | </difference> |
| 181 | 25 | |
| 182 | 26 | </differences> |
modified driver-core/src/main/java/com/datastax/driver/core/exceptions/DriverInternalError.java +1 −1
| @@ -38,7 +38,7 @@ | ||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | @Override |
| 41 | - public DriverException copy() { | |
| 41 | + public DriverInternalError copy() { | |
| 42 | 42 | return new DriverInternalError(getMessage(), this); |
| 43 | 43 | } |
| 44 | 44 | } |
modified pom.xml +1 −1
| @@ -162,7 +162,7 @@ | ||
| 162 | 162 | </execution> |
| 163 | 163 | </executions> |
| 164 | 164 | <configuration> |
| 165 | - <comparisonVersion>2.1.0</comparisonVersion> | |
| 165 | + <comparisonVersion>2.1.6</comparisonVersion> | |
| 166 | 166 | <ignoredDifferencesFile>../clirr-ignores.xml</ignoredDifferencesFile> |
| 167 | 167 | <excludes> |
| 168 | 168 | <!-- Package-private, internal classes --> |