Update Gradle configuration

This commit is contained in:
Sergey Solovyev
2018-04-29 19:04:13 +02:00
parent f41a37fe31
commit 68cded37d9
29 changed files with 180 additions and 188 deletions

View File

@@ -23,13 +23,12 @@
apply plugin: 'java'
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.google.code.findbugs:annotations:2.0.1'
compile 'xerces:xercesImpl:2.8.0'
compile 'com.google.guava:guava:20.0'
implementation 'com.google.code.findbugs:jsr305:2.0.3'
implementation 'xerces:xercesImpl:2.8.0'
implementation 'com.google.guava:guava:20.0'
testCompile 'junit:junit:4.12'
testCompile 'net.sf.opencsv:opencsv:2.0'
testImplementation 'junit:junit:4.12'
testImplementation 'net.sf.opencsv:opencsv:2.0'
}
sourceSets {

View File

@@ -24,7 +24,6 @@ public class FixedCapacityListMessageRegistry implements MessageRegistry {
this.messages = new ArrayList<Message>(capacity);
}
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = {"VO_VOLATILE_INCREMENT"}, justification = "NotThreadSafe - outer synchronization")
public void addMessage(@Nonnull Message message) {
if (!this.messages.contains(message)) {
if (this.size <= this.capacity) {
@@ -37,7 +36,6 @@ public class FixedCapacityListMessageRegistry implements MessageRegistry {
}
}
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = {"VO_VOLATILE_INCREMENT"}, justification = "NotThreadSafe - outer synchronization")
@Nonnull
public Message getMessage() {
if (hasMessage()) {