Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Cleanup: remove redundant casts
[yangtools.git]
/
yang
/
yang-data-api
/
src
/
main
/
java
/
org
/
opendaylight
/
yangtools
/
yang
/
data
/
api
/
YangInstanceIdentifier.java
diff --git
a/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java
b/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java
index 127db2ddbf0f836ac20e88a92175baa8a7f0971f..dfe72da5912073837ddab275b5f74b93a936e953 100644
(file)
--- a/
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java
+++ b/
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java
@@
-467,7
+467,7
@@
public abstract class YangInstanceIdentifier implements Path<YangInstanceIdentif
@Override
public String toRelativeString(final PathArgument previous) {
if (previous instanceof AbstractPathArgument) {
@Override
public String toRelativeString(final PathArgument previous) {
if (previous instanceof AbstractPathArgument) {
- final QNameModule mod =
((AbstractPathArgument)previous)
.getNodeType().getModule();
+ final QNameModule mod =
previous
.getNodeType().getModule();
if (getNodeType().getModule().equals(mod)) {
return getNodeType().getLocalName();
}
if (getNodeType().getModule().equals(mod)) {
return getNodeType().getLocalName();
}