Code Review
/
mdsal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Binding generator v2 - uses statement - uses inner type #1
[mdsal.git]
/
binding2
/
mdsal-binding2-generator-impl
/
src
/
main
/
java
/
org
/
opendaylight
/
mdsal
/
binding
/
javav2
/
generator
/
yang
/
types
/
BaseYangTypes.java
diff --git
a/binding2/mdsal-binding2-generator-impl/src/main/java/org/opendaylight/mdsal/binding/javav2/generator/yang/types/BaseYangTypes.java
b/binding2/mdsal-binding2-generator-impl/src/main/java/org/opendaylight/mdsal/binding/javav2/generator/yang/types/BaseYangTypes.java
index f471a32d063bc366e31a9a9bb3144c4eeea8aba8..2866b182a91850bb49a8b36c0b0e4abc8c081c57 100644
(file)
--- a/
binding2/mdsal-binding2-generator-impl/src/main/java/org/opendaylight/mdsal/binding/javav2/generator/yang/types/BaseYangTypes.java
+++ b/
binding2/mdsal-binding2-generator-impl/src/main/java/org/opendaylight/mdsal/binding/javav2/generator/yang/types/BaseYangTypes.java
@@
-173,27
+173,27
@@
public final class BaseYangTypes {
case "binary":
return restrictions == null ? Types.BYTE_ARRAY : Types.primitiveType("byte[]", restrictions);
case "decimal64":
case "binary":
return restrictions == null ? Types.BYTE_ARRAY : Types.primitiveType("byte[]", restrictions);
case "decimal64":
- return Types.typeForClass(BigDecimal.class, restrictions);
+ return Types.typeForClass(BigDecimal.class, restrictions
, context
);
case "enumeration":
case "enumeration":
- return Types.typeForClass(Enum.class, restrictions);
+ return Types.typeForClass(Enum.class, restrictions
, context
);
case "int8":
case "int8":
- return Types.typeForClass(Byte.class, restrictions);
+ return Types.typeForClass(Byte.class, restrictions
, context
);
case "int16":
case "int16":
- return Types.typeForClass(Short.class, restrictions);
+ return Types.typeForClass(Short.class, restrictions
, context
);
case "int32":
case "int32":
- return Types.typeForClass(Integer.class, restrictions);
+ return Types.typeForClass(Integer.class, restrictions
, context
);
case "int64":
case "int64":
- return Types.typeForClass(Long.class, restrictions);
+ return Types.typeForClass(Long.class, restrictions
, context
);
case "string":
case "string":
- return Types.typeForClass(String.class, restrictions);
+ return Types.typeForClass(String.class, restrictions
, context
);
case "uint8":
case "uint8":
- return Types.typeForClass(Short.class, restrictions);
+ return Types.typeForClass(Short.class, restrictions
, context
);
case "uint16":
case "uint16":
- return Types.typeForClass(Integer.class, restrictions);
+ return Types.typeForClass(Integer.class, restrictions
, context
);
case "uint32":
case "uint32":
- return Types.typeForClass(Long.class, restrictions);
+ return Types.typeForClass(Long.class, restrictions
, context
);
case "uint64":
case "uint64":
- return Types.typeForClass(BigInteger.class, restrictions);
+ return Types.typeForClass(BigInteger.class, restrictions
, context
);
case "union" :
return UNION_TYPE;
default:
case "union" :
return UNION_TYPE;
default: