You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by rc...@apache.org on 2020/03/17 04:52:30 UTC
[james-project] 03/08: [Refactoring] unnecessary explicit generics
This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 019e29477ba75b5f68adb2f35d71ee0ee5bb449c
Author: Matthieu Baechler <ma...@apache.org>
AuthorDate: Fri Feb 28 17:59:02 2020 +0100
[Refactoring] unnecessary explicit generics
---
mailbox/api/src/main/java/org/apache/james/mailbox/model/Quota.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mailbox/api/src/main/java/org/apache/james/mailbox/model/Quota.java b/mailbox/api/src/main/java/org/apache/james/mailbox/model/Quota.java
index 565f12e..0a2c75c 100644
--- a/mailbox/api/src/main/java/org/apache/james/mailbox/model/Quota.java
+++ b/mailbox/api/src/main/java/org/apache/james/mailbox/model/Quota.java
@@ -78,7 +78,7 @@ public class Quota<T extends QuotaLimitValue<T>, U extends QuotaUsageValue<U, T>
public Quota<T, U> build() {
Preconditions.checkState(used != null);
Preconditions.checkState(computedLimit != null);
- return new Quota<T, U>(used, computedLimit, limitsByScope.build());
+ return new Quota<>(used, computedLimit, limitsByScope.build());
}
}
@@ -113,7 +113,7 @@ public class Quota<T extends QuotaLimitValue<T>, U extends QuotaUsageValue<U, T>
}
public Quota<T, U> addValueToQuota(U value) {
- return new Quota<T, U>(used.add(value), limit, limitByScope);
+ return new Quota<>(used.add(value), limit, limitByScope);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org