summaryrefslogtreecommitdiffstats
path: root/model/utilities/src/main
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2018-06-11 15:44:40 +0000
committerGerrit Code Review <gerrit@onap.org>2018-06-11 15:44:40 +0000
commit40f1df1cb571959d1d089ffe1d64b39041e3d634 (patch)
treef00c3b87a6916f0475565ad9e60b05da29738eac /model/utilities/src/main
parent275a9d6e8c8caa883a119339926fba475969b8d5 (diff)
parent56112164b8a3b48989eb3fdae2baa2d906e3ced0 (diff)
Merge "Remove warnings from code"
Diffstat (limited to 'model/utilities/src/main')
-rw-r--r--model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/TypeBuilder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/TypeBuilder.java b/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/TypeBuilder.java
index a3f22a446..0e3851519 100644
--- a/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/TypeBuilder.java
+++ b/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/TypeBuilder.java
@@ -23,14 +23,14 @@ package org.onap.policy.apex.model.utilities.typeutils;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
-import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.BailErrorStrategy;
import org.antlr.v4.runtime.CharStream;
+import org.antlr.v4.runtime.CharStreams;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.TokenStream;
/**
- * This class .
+ * This class builds a type from a grammar using ANTLR.
*/
public final class TypeBuilder {
/**
@@ -51,7 +51,7 @@ public final class TypeBuilder {
}
try {
- final CharStream stream = new ANTLRInputStream(type);
+ final CharStream stream = CharStreams.fromString(type);
final TokenStream tokenStream = new CommonTokenStream(new ParametrizedTypeLexer(stream));
final ParametrizedTypeParser parser = new ParametrizedTypeParser(tokenStream);