Update Gradle configuration
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user