Drop unneeded generic type specifiers
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / ReplaceLeafCandidateNode.java
index 9b48744b7fadd0ccb089d02483cbd1407046f3fc..b264a20e1e150bd9b11ef7b808dcf9b36f27d139 100644 (file)
@@ -21,6 +21,6 @@ final class ReplaceLeafCandidateNode extends AbstractWriteCandidate {
 
     @Override
     public Optional<NormalizedNode<?, ?>> getDataBefore() {
-        return Optional.<NormalizedNode<?, ?>>of(oldData);
+        return Optional.of(oldData);
     }
 }
\ No newline at end of file