You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by al...@apache.org on 2015/01/13 14:45:05 UTC

flink git commit: [scala] Disable Warning Message in TypeAnalyzer

Repository: flink
Updated Branches:
  refs/heads/master aba76171f -> cfa04aa52


[scala] Disable Warning Message in TypeAnalyzer

This would print a warning if a type could not be analyzed by the Scala
TypeAnalyzer. In such a case analysis is done using the Java
TypeExtractor but the warning seems to confuse people.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/cfa04aa5
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/cfa04aa5
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/cfa04aa5

Branch: refs/heads/master
Commit: cfa04aa5299f1d107e535c5aad163b4cf22bfa89
Parents: aba7617
Author: Aljoscha Krettek <al...@gmail.com>
Authored: Tue Jan 13 14:43:20 2015 +0100
Committer: Aljoscha Krettek <al...@gmail.com>
Committed: Tue Jan 13 14:43:20 2015 +0100

----------------------------------------------------------------------
 .../scala/org/apache/flink/api/scala/codegen/TypeAnalyzer.scala    | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/cfa04aa5/flink-scala/src/main/scala/org/apache/flink/api/scala/codegen/TypeAnalyzer.scala
----------------------------------------------------------------------
diff --git a/flink-scala/src/main/scala/org/apache/flink/api/scala/codegen/TypeAnalyzer.scala b/flink-scala/src/main/scala/org/apache/flink/api/scala/codegen/TypeAnalyzer.scala
index d75fe5c..c2e432f 100644
--- a/flink-scala/src/main/scala/org/apache/flink/api/scala/codegen/TypeAnalyzer.scala
+++ b/flink-scala/src/main/scala/org/apache/flink/api/scala/codegen/TypeAnalyzer.scala
@@ -81,8 +81,6 @@ private[flink] trait TypeAnalyzer[C <: Context] { this: MacroContextHolder[C]
 
           case JavaType() =>
             // It's a Java Class, let the TypeExtractor deal with it...
-            c.warning(c.enclosingPosition, s"Type $tpe is a java class. Will be analyzed by " +
-              s"TypeExtractor at runtime.")
             GenericClassDescriptor(id, tpe)
 
           case _ => analyzePojo(id, tpe)