]> source.dussan.org Git - sonarqube.git/commit
SONAR-2386 Define contract for lineId in Violation
authorEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 27 Apr 2011 16:29:11 +0000 (20:29 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 27 Apr 2011 18:10:58 +0000 (22:10 +0400)
commit25f963bfb953346ee85337009b1af7d665494aa0
treef1ae028f197e0538460c5d3e349832915bf49bdb
parent70c03e6ac1e0f24277655f9e7666142d9418d270
SONAR-2386 Define contract for lineId in Violation

Value can be null or greater than zero, so setter must log warning if
not null and less than 1. It will throw an exception in future releases.
sonar-plugin-api/src/main/java/org/sonar/api/rules/Violation.java
sonar-plugin-api/src/test/java/org/sonar/api/rules/ViolationTest.java [new file with mode: 0644]
sonar-ws-client/src/main/java/org/sonar/wsclient/services/Violation.java
sonar-ws-client/src/test/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshallerTest.java
sonar-ws-client/src/test/resources/violations/violation-with-incorrect-line.json [new file with mode: 0644]