Skip to content

Commit ab8d58b

Browse files
committedAug 16, 2017
AMBARI-21723. Redundant type arguments (Java 8)
1 parent 7879336 commit ab8d58b

File tree

353 files changed

+1690
-1791
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

353 files changed

+1690
-1791
lines changed
 

‎ambari-server/src/main/java/com/google/inject/persist/jpa/AmbariJpaPersistModule.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public AmbariJpaPersistModule(String jpaUnit) {
6969
if (null != properties) {
7070
bind(Properties.class).annotatedWith(Jpa.class).toInstance(properties);
7171
} else {
72-
bind(Properties.class).annotatedWith(Jpa.class).toProvider(Providers.<Properties> of(null));
72+
bind(Properties.class).annotatedWith(Jpa.class).toProvider(Providers.of(null));
7373
}
7474

7575
bind(AmbariJpaPersistService.class).in(Singleton.class);

‎ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public Map<Long, HostRoleCommand> getTasksMap(Collection<Long> taskIds) {
224224
public List<Long> getRequestsByStatus(RequestStatus status, int maxResults, boolean ascOrder) {
225225
List<Long> requests = db.getRequestsByStatus(status, maxResults, ascOrder);
226226

227-
for (Request logicalRequest : topologyManager.getRequests(Collections.<Long>emptySet())) {
227+
for (Request logicalRequest : topologyManager.getRequests(Collections.emptySet())) {
228228
//todo: Request.getStatus() returns HostRoleStatus and we are comparing to RequestStatus
229229
//todo: for now just compare the names as RequestStatus names are a subset of HostRoleStatus names
230230
HostRoleStatus logicalRequestStatus = logicalRequest.getStatus();

0 commit comments

Comments
 (0)