Skip to content

Commit

Permalink
Blazebit#414 - Java 7 Compiler error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
beikov committed Nov 5, 2017
1 parent 19b3363 commit c2a565e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ private void update(UpdateContext context, Object entity, MutableStateTrackable
}

@SuppressWarnings("unchecked")
DirtyAttributeFlusher<?, Object, Object> flusher = getNestedDirtyFlusher(context, updatableProxy, null);
DirtyAttributeFlusher<?, Object, Object> flusher = (DirtyAttributeFlusher<?, Object, Object>) (DirtyAttributeFlusher) getNestedDirtyFlusher(context, updatableProxy, null);

// If nothing is dirty, we don't have to do anything
if (flusher == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ protected final boolean determineElementFlushers(UpdateContext context, TypeDesc
if (o instanceof MutableStateTrackable) {
MutableStateTrackable element = (MutableStateTrackable) o;
@SuppressWarnings("unchecked")
DirtyAttributeFlusher<?, E, V> flusher = (DirtyAttributeFlusher<?, E, V>) mapper.getNestedDirtyFlusher(context, element, null);
DirtyAttributeFlusher<?, E, V> flusher = (DirtyAttributeFlusher<?, E, V>) (DirtyAttributeFlusher) mapper.getNestedDirtyFlusher(context, element, null);
if (flusher != null) {
elementFlushers.add(new UpdateCollectionElementAttributeFlusher<E, V>(flusher, element, optimisticLockProtected, mapper));
}
Expand All @@ -319,7 +319,7 @@ protected final boolean determineElementFlushers(UpdateContext context, TypeDesc
if (o instanceof MutableStateTrackable) {
MutableStateTrackable element = (MutableStateTrackable) o;
@SuppressWarnings("unchecked")
DirtyAttributeFlusher<?, E, V> flusher = (DirtyAttributeFlusher<?, E, V>) mapper.getNestedDirtyFlusher(context, element, null);
DirtyAttributeFlusher<?, E, V> flusher = (DirtyAttributeFlusher<?, E, V>) (DirtyAttributeFlusher) mapper.getNestedDirtyFlusher(context, element, null);
if (flusher != null) {
// We can't merge flat view elements separately so we need to replace the element in the collection
// This is signalled by returning null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ private void visitInverseElementFlushersForActions(UpdateContext context, Iterab
if (o instanceof MutableStateTrackable) {
MutableStateTrackable element = (MutableStateTrackable) o;
@SuppressWarnings("unchecked")
DirtyAttributeFlusher<?, E, V> flusher = (DirtyAttributeFlusher<?, E, V>) mapper.getNestedDirtyFlusher(context, element, null);
DirtyAttributeFlusher<?, E, V> flusher = (DirtyAttributeFlusher<?, E, V>) (DirtyAttributeFlusher) mapper.getNestedDirtyFlusher(context, element, null);
if (flusher != null) {
Object addedElement = added.remove(element);
if (addedElement != null) {
Expand Down

0 comments on commit c2a565e

Please sign in to comment.